Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1433)

Unified Diff: Source/core/xml/XPathExpressionNode.h

Issue 344553002: Fix style erros in XPath-related files. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/xml/XPathFunctions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathExpressionNode.h
diff --git a/Source/core/xml/XPathExpressionNode.h b/Source/core/xml/XPathExpressionNode.h
index 959c88411c696efbefd2eb4b2954a99693392fa6..76fa1120f83d18601a0fcaef4f3163f655dd8895 100644
--- a/Source/core/xml/XPathExpressionNode.h
+++ b/Source/core/xml/XPathExpressionNode.h
@@ -35,69 +35,69 @@
namespace WebCore {
- namespace XPath {
-
- struct EvaluationContext {
- WTF_MAKE_FAST_ALLOCATED;
- public:
- RefPtrWillBePersistent<Node> node;
- unsigned long size;
- unsigned long position;
- HashMap<String, String> variableBindings;
-
- bool hadTypeConversionError;
- };
-
- class ParseNode : public NoBaseWillBeGarbageCollectedFinalized<ParseNode> {
- public:
- virtual ~ParseNode() { }
- virtual void trace(Visitor*) { }
- };
-
- class Expression : public ParseNode {
- WTF_MAKE_NONCOPYABLE(Expression); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
- public:
- static EvaluationContext& evaluationContext();
-
- Expression();
- virtual ~Expression();
- virtual void trace(Visitor*) OVERRIDE;
-
- virtual Value evaluate() const = 0;
-
- void addSubExpression(PassOwnPtrWillBeRawPtr<Expression> expr)
- {
- m_isContextNodeSensitive |= expr->m_isContextNodeSensitive;
- m_isContextPositionSensitive |= expr->m_isContextPositionSensitive;
- m_isContextSizeSensitive |= expr->m_isContextSizeSensitive;
- m_subExpressions.append(expr);
- }
-
- bool isContextNodeSensitive() const { return m_isContextNodeSensitive; }
- bool isContextPositionSensitive() const { return m_isContextPositionSensitive; }
- bool isContextSizeSensitive() const { return m_isContextSizeSensitive; }
- void setIsContextNodeSensitive(bool value) { m_isContextNodeSensitive = value; }
- void setIsContextPositionSensitive(bool value) { m_isContextPositionSensitive = value; }
- void setIsContextSizeSensitive(bool value) { m_isContextSizeSensitive = value; }
-
- virtual Value::Type resultType() const = 0;
-
- protected:
- unsigned subExprCount() const { return m_subExpressions.size(); }
- Expression* subExpr(unsigned i) { return m_subExpressions[i].get(); }
- const Expression* subExpr(unsigned i) const { return m_subExpressions[i].get(); }
-
- private:
- WillBeHeapVector<OwnPtrWillBeMember<Expression> > m_subExpressions;
-
- // Evaluation details that can be used for optimization.
- bool m_isContextNodeSensitive;
- bool m_isContextPositionSensitive;
- bool m_isContextSizeSensitive;
- };
-
+namespace XPath {
+
+struct EvaluationContext {
+ WTF_MAKE_FAST_ALLOCATED;
+public:
+ RefPtrWillBePersistent<Node> node;
+ unsigned long size;
+ unsigned long position;
+ HashMap<String, String> variableBindings;
+
+ bool hadTypeConversionError;
+};
+
+class ParseNode : public NoBaseWillBeGarbageCollectedFinalized<ParseNode> {
+public:
+ virtual ~ParseNode() { }
+ virtual void trace(Visitor*) { }
+};
+
+class Expression : public ParseNode {
+ WTF_MAKE_NONCOPYABLE(Expression); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
+public:
+ static EvaluationContext& evaluationContext();
+
+ Expression();
+ virtual ~Expression();
+ virtual void trace(Visitor*) OVERRIDE;
+
+ virtual Value evaluate() const = 0;
+
+ void addSubExpression(PassOwnPtrWillBeRawPtr<Expression> expr)
+ {
+ m_isContextNodeSensitive |= expr->m_isContextNodeSensitive;
+ m_isContextPositionSensitive |= expr->m_isContextPositionSensitive;
+ m_isContextSizeSensitive |= expr->m_isContextSizeSensitive;
+ m_subExpressions.append(expr);
}
+ bool isContextNodeSensitive() const { return m_isContextNodeSensitive; }
+ bool isContextPositionSensitive() const { return m_isContextPositionSensitive; }
+ bool isContextSizeSensitive() const { return m_isContextSizeSensitive; }
+ void setIsContextNodeSensitive(bool value) { m_isContextNodeSensitive = value; }
+ void setIsContextPositionSensitive(bool value) { m_isContextPositionSensitive = value; }
+ void setIsContextSizeSensitive(bool value) { m_isContextSizeSensitive = value; }
+
+ virtual Value::Type resultType() const = 0;
+
+protected:
+ unsigned subExprCount() const { return m_subExpressions.size(); }
+ Expression* subExpr(unsigned i) { return m_subExpressions[i].get(); }
+ const Expression* subExpr(unsigned i) const { return m_subExpressions[i].get(); }
+
+private:
+ WillBeHeapVector<OwnPtrWillBeMember<Expression> > m_subExpressions;
+
+ // Evaluation details that can be used for optimization.
+ bool m_isContextNodeSensitive;
+ bool m_isContextPositionSensitive;
+ bool m_isContextSizeSensitive;
+};
+
+}
+
}
-#endif // EXPRESSION_H
+#endif // XPathExpressionNode_h
« no previous file with comments | « no previous file | Source/core/xml/XPathFunctions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698