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

Unified Diff: Source/core/css/SelectorFilter.h

Issue 54543011: Have StyleResolverParentPusher / SelectorFilter deal with references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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/css/SelectorFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/SelectorFilter.h
diff --git a/Source/core/css/SelectorFilter.h b/Source/core/css/SelectorFilter.h
index 4ffde10719ed132921a35781c96c21d962b680f5..905edb6dd3026c3b2a6cd628700c9d4d4bd9b1de 100644
--- a/Source/core/css/SelectorFilter.h
+++ b/Source/core/css/SelectorFilter.h
@@ -39,11 +39,11 @@ class CSSSelector;
class SelectorFilter {
public:
- void pushParentStackFrame(Element* parent);
+ void pushParentStackFrame(Element& parent);
void popParentStackFrame();
- void setupParentStack(Element* parent);
- void pushParent(Element* parent);
+ void setupParentStack(Element& parent);
+ void pushParent(Element& parent);
void popParent() { popParentStackFrame(); }
bool parentStackIsEmpty() const { return m_parentStack.isEmpty(); }
bool parentStackIsConsistent(const ContainerNode* parentNode) const { return !m_parentStack.isEmpty() && m_parentStack.last().element == parentNode; }
@@ -55,7 +55,7 @@ public:
private:
struct ParentStackFrame {
ParentStackFrame() : element(0) { }
- ParentStackFrame(Element* element) : element(element) { }
+ ParentStackFrame(Element& element) : element(&element) { }
Element* element;
Vector<unsigned, 4> identifierHashes;
};
« no previous file with comments | « no previous file | Source/core/css/SelectorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698