summaryrefslogtreecommitdiffstats
path: root/WebCore/xml/XPathPath.h
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-06-18 18:20:56 -0700
committerFeng Qian <fqian@google.com>2009-06-18 18:20:56 -0700
commit1edef79f87f9c52c21d69c87c19f8e2b140a9119 (patch)
treecad337ef493b0d9710bf3ae478cb87cb534f598d /WebCore/xml/XPathPath.h
parentb83fc086000e27bc227580bd0e35b9d7bee1179a (diff)
parentc9c4d65c1547996ed3748026904d6e7f09aec2b4 (diff)
downloadexternal_webkit-1edef79f87f9c52c21d69c87c19f8e2b140a9119.zip
external_webkit-1edef79f87f9c52c21d69c87c19f8e2b140a9119.tar.gz
external_webkit-1edef79f87f9c52c21d69c87c19f8e2b140a9119.tar.bz2
Merge commit 'goog/master-webkit-merge' into webkit-merge-44544
Diffstat (limited to 'WebCore/xml/XPathPath.h')
-rw-r--r--WebCore/xml/XPathPath.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/WebCore/xml/XPathPath.h b/WebCore/xml/XPathPath.h
index 46e57ff..dc77971 100644
--- a/WebCore/xml/XPathPath.h
+++ b/WebCore/xml/XPathPath.h
@@ -1,6 +1,6 @@
/*
- * path.h - Copyright 2005 Frerich Raabe <raabe@kde.org>
- * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2005 Frerich Raabe <raabe@kde.org>
+ * Copyright (C) 2006, 2009 Apple Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -47,6 +47,8 @@ namespace WebCore {
virtual Value evaluate() const;
private:
+ virtual Value::Type resultType() const { return Value::NodeSetValue; }
+
Expression* m_expr;
Vector<Predicate*> m_predicates;
};
@@ -55,7 +57,7 @@ namespace WebCore {
public:
LocationPath();
virtual ~LocationPath();
- void setAbsolute(bool value) { m_absolute = value; }
+ void setAbsolute(bool value) { m_absolute = value; setIsContextNodeSensitive(!m_absolute); }
virtual Value evaluate() const;
void evaluate(NodeSet& nodes) const; // nodes is an input/output parameter
@@ -64,7 +66,7 @@ namespace WebCore {
void insertFirstStep(Step* step);
private:
- void optimizeStepPair(unsigned index);
+ virtual Value::Type resultType() const { return Value::NodeSetValue; }
Vector<Step*> m_steps;
bool m_absolute;
@@ -79,6 +81,8 @@ namespace WebCore {
virtual Value evaluate() const;
private:
+ virtual Value::Type resultType() const { return Value::NodeSetValue; }
+
Filter* m_filter;
LocationPath* m_path;
};