Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / xml / XPathVariableReference.cpp
index 8eb35c7..abca69f 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "core/xml/XPathValue.h"
 
-namespace WebCore {
+namespace blink {
 namespace XPath {
 
 VariableReference::VariableReference(const String& name)
@@ -37,9 +37,9 @@ VariableReference::VariableReference(const String& name)
 {
 }
 
-Value VariableReference::evaluate() const
+Value VariableReference::evaluate(EvaluationContext& context) const
 {
-    HashMap<String, String>& bindings = evaluationContext().variableBindings;
+    HashMap<String, String>& bindings = context.variableBindings;
     if (!bindings.contains(m_name)) {
         // FIXME: Is this the right thing to do if an unknown variable is
         // referenced?