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

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

Issue 166903010: Oilpan: Move core/xml/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
Index: Source/core/xml/XPathParser.h
diff --git a/Source/core/xml/XPathParser.h b/Source/core/xml/XPathParser.h
index e3f4cf05925b7664a6dc6a84a229143ee2895e5e..16d0fac05a7e61d2d69cfd015ddbaf56bb7dd017 100644
--- a/Source/core/xml/XPathParser.h
+++ b/Source/core/xml/XPathParser.h
@@ -64,6 +64,8 @@ struct Token {
class Parser {
WTF_MAKE_NONCOPYABLE(Parser);
+ // FIXME: oilpan: This should be STACK_ALLOCATED.
+ DISALLOW_ALLOCATION();
public:
Parser();
~Parser();
@@ -71,7 +73,7 @@ public:
XPathNSResolver* resolver() const { return m_resolver.get(); }
bool expandQName(const String& qName, AtomicString& localName, AtomicString& namespaceURI);
- Expression* parseStatement(const String& statement, PassRefPtr<XPathNSResolver>, ExceptionState&);
+ Expression* parseStatement(const String& statement, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&);
static Parser* current() { return currentParser; }
@@ -120,7 +122,7 @@ private:
unsigned m_nextPos;
String m_data;
int m_lastTokenType;
- RefPtr<XPathNSResolver> m_resolver;
+ RefPtrWillBeRawPtr<XPathNSResolver> m_resolver;
HashSet<ParseNode*> m_parseNodes;
HashSet<Vector<OwnPtr<Predicate> >*> m_predicateVectors;

Powered by Google App Engine
This is Rietveld 408576698