summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/xml/xpath_functions_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/xml/xpath_functions_test.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/xml/xpath_functions_test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/xml/xpath_functions_test.cc b/chromium/third_party/blink/renderer/core/xml/xpath_functions_test.cc
index 575ff415c52..dfed2c080b9 100644
--- a/chromium/third_party/blink/renderer/core/xml/xpath_functions_test.cc
+++ b/chromium/third_party/blink/renderer/core/xml/xpath_functions_test.cc
@@ -25,13 +25,15 @@ class XPathContext {
public:
XPathContext()
- : document_(MakeGarbageCollected<Document>()), context_(*document_) {}
+ : document_(MakeGarbageCollected<Document>()),
+ context_(*document_, had_type_conversion_error_) {}
xpath::EvaluationContext& Context() { return context_; }
Document& GetDocument() { return *document_; }
private:
- const Member<Document> document_;
+ Document* const document_;
+ bool had_type_conversion_error_ = false;
xpath::EvaluationContext context_;
};