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

Unified Diff: Source/core/xml/XPathPath.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 | « Source/core/xml/XPathParser.cpp ('k') | Source/core/xml/XPathPredicate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathPath.h
diff --git a/Source/core/xml/XPathPath.h b/Source/core/xml/XPathPath.h
index 108c642c891f416f156b78a931fad620dcd67769..12b2b2638fe9e52b38f1b4e1e12712fdb01010f8 100644
--- a/Source/core/xml/XPathPath.h
+++ b/Source/core/xml/XPathPath.h
@@ -32,62 +32,61 @@
namespace WebCore {
- namespace XPath {
+namespace XPath {
- class Predicate;
- class Step;
+class Predicate;
+class Step;
- class Filter FINAL : public Expression {
- public:
- Filter(PassOwnPtrWillBeRawPtr<Expression>, WillBeHeapVector<OwnPtrWillBeMember<Predicate> >&);
- virtual ~Filter();
- virtual void trace(Visitor*) OVERRIDE;
+class Filter FINAL : public Expression {
+public:
+ Filter(PassOwnPtrWillBeRawPtr<Expression>, WillBeHeapVector<OwnPtrWillBeMember<Predicate> >&);
+ virtual ~Filter();
+ virtual void trace(Visitor*) OVERRIDE;
- virtual Value evaluate() const OVERRIDE;
+ virtual Value evaluate() const OVERRIDE;
- private:
- virtual Value::Type resultType() const OVERRIDE { return Value::NodeSetValue; }
+private:
+ virtual Value::Type resultType() const OVERRIDE { return Value::NodeSetValue; }
- OwnPtrWillBeMember<Expression> m_expr;
- WillBeHeapVector<OwnPtrWillBeMember<Predicate> > m_predicates;
- };
+ OwnPtrWillBeMember<Expression> m_expr;
+ WillBeHeapVector<OwnPtrWillBeMember<Predicate> > m_predicates;
+};
- class LocationPath FINAL : public Expression {
- public:
- LocationPath();
- virtual ~LocationPath();
- virtual void trace(Visitor*) OVERRIDE;
- void setAbsolute(bool value) { m_absolute = value; setIsContextNodeSensitive(!m_absolute); }
+class LocationPath FINAL : public Expression {
+public:
+ LocationPath();
+ virtual ~LocationPath();
+ virtual void trace(Visitor*) OVERRIDE;
- virtual Value evaluate() const OVERRIDE;
- void evaluate(NodeSet& nodes) const; // nodes is an input/output parameter
+ virtual Value evaluate() const OVERRIDE;
+ void setAbsolute(bool value) { m_absolute = value; setIsContextNodeSensitive(!m_absolute); }
+ void evaluate(NodeSet&) const; // nodes is an input/output parameter
+ void appendStep(Step*);
+ void insertFirstStep(Step*);
- void appendStep(Step* step);
- void insertFirstStep(Step* step);
+private:
+ virtual Value::Type resultType() const OVERRIDE { return Value::NodeSetValue; }
- private:
- virtual Value::Type resultType() const OVERRIDE { return Value::NodeSetValue; }
+ WillBeHeapVector<RawPtrWillBeMember<Step> > m_steps;
+ bool m_absolute;
+};
- WillBeHeapVector<RawPtrWillBeMember<Step> > m_steps;
- bool m_absolute;
- };
+class Path FINAL : public Expression {
+public:
+ Path(Expression*, LocationPath*);
+ virtual ~Path();
+ virtual void trace(Visitor*) OVERRIDE;
- class Path FINAL : public Expression {
- public:
- Path(Expression*, LocationPath*);
- virtual ~Path();
- virtual void trace(Visitor*) OVERRIDE;
+ virtual Value evaluate() const OVERRIDE;
- virtual Value evaluate() const OVERRIDE;
+private:
+ virtual Value::Type resultType() const OVERRIDE { return Value::NodeSetValue; }
- private:
- virtual Value::Type resultType() const OVERRIDE { return Value::NodeSetValue; }
+ OwnPtrWillBeMember<Expression> m_filter;
+ OwnPtrWillBeMember<LocationPath> m_path;
+};
- OwnPtrWillBeMember<Expression> m_filter;
- OwnPtrWillBeMember<LocationPath> m_path;
- };
-
- }
}
-#endif // XPath_Path_H
+}
+#endif // XPathPath_h
« no previous file with comments | « Source/core/xml/XPathParser.cpp ('k') | Source/core/xml/XPathPredicate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698