summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/xml/xpath_functions.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-13 16:23:34 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-14 10:37:21 +0000
commit38a9a29f4f9436cace7f0e7abf9c586057df8a4e (patch)
treec4e8c458dc595bc0ddb435708fa2229edfd00bd4 /chromium/third_party/blink/renderer/core/xml/xpath_functions.cc
parente684a3455bcc29a6e3e66a004e352dea4e1141e7 (diff)
downloadqtwebengine-chromium-38a9a29f4f9436cace7f0e7abf9c586057df8a4e.tar.gz
BASELINE: Update Chromium to 73.0.3683.37
Change-Id: I08c9af2948b645f671e5d933aca1f7a90ea372f2 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/xml/xpath_functions.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/xml/xpath_functions.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/xml/xpath_functions.cc b/chromium/third_party/blink/renderer/core/xml/xpath_functions.cc
index 833388cd3f1..136776dd0c3 100644
--- a/chromium/third_party/blink/renderer/core/xml/xpath_functions.cc
+++ b/chromium/third_party/blink/renderer/core/xml/xpath_functions.cc
@@ -27,6 +27,7 @@
#include "third_party/blink/renderer/core/xml/xpath_functions.h"
+#include "base/stl_util.h"
#include "third_party/blink/renderer/core/dom/attr.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/processing_instruction.h"
@@ -48,7 +49,7 @@ static inline bool IsWhitespace(UChar c) {
}
#define DEFINE_FUNCTION_CREATOR(Class) \
- static Function* Create##Class() { return new Class; }
+ static Function* Create##Class() { return MakeGarbageCollected<Class>(); }
class Interval {
public:
@@ -742,7 +743,7 @@ static void CreateFunctionMap() {
};
g_function_map = new HashMap<String, FunctionRec>;
- for (size_t i = 0; i < arraysize(functions); ++i)
+ for (size_t i = 0; i < base::size(functions); ++i)
g_function_map->Set(functions[i].name, functions[i].function);
}