diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/xml/XPathFunctions.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/xml/XPathFunctions.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/chromium/third_party/WebKit/Source/core/xml/XPathFunctions.h b/chromium/third_party/WebKit/Source/core/xml/XPathFunctions.h index 1e2ee4de5bf..e39632c73e0 100644 --- a/chromium/third_party/WebKit/Source/core/xml/XPathFunctions.h +++ b/chromium/third_party/WebKit/Source/core/xml/XPathFunctions.h @@ -31,26 +31,27 @@ namespace WebCore { - namespace XPath { - - class Function : public Expression { - public: - void setArguments(Vector<OwnPtr<Expression> >&); - void setName(const String& name) { m_name = name; } - protected: - Expression* arg(int pos) { return subExpr(pos); } - const Expression* arg(int pos) const { return subExpr(pos); } - unsigned int argCount() const { return subExprCount(); } - String name() const { return m_name; } - - private: - String m_name; - }; - - Function* createFunction(const String& name); - Function* createFunction(const String& name, Vector<OwnPtr<Expression> >&); - - } // namespace XPath +namespace XPath { + +class Function : public Expression { +public: + void setArguments(WillBeHeapVector<OwnPtrWillBeMember<Expression> >&); + void setName(const String& name) { m_name = name; } + +protected: + Expression* arg(int pos) { return subExpr(pos); } + const Expression* arg(int pos) const { return subExpr(pos); } + unsigned argCount() const { return subExprCount(); } + String name() const { return m_name; } + +private: + String m_name; +}; + +Function* createFunction(const String& name); +Function* createFunction(const String& name, WillBeHeapVector<OwnPtrWillBeMember<Expression> >&); + +} // namespace XPath } // namespace WebCore |