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

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

Issue 423953003: Oilpan: Replace Node* pointers with Member<Node>s (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/css/SelectorChecker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/SelectorChecker.h
diff --git a/Source/core/css/SelectorChecker.h b/Source/core/css/SelectorChecker.h
index a22cb00d0744a0841a85ddb39a99be43c4ab30bf..2ca27e237fadeb59ee3aa3c90a72a2c303693832 100644
--- a/Source/core/css/SelectorChecker.h
+++ b/Source/core/css/SelectorChecker.h
@@ -55,12 +55,14 @@ public:
};
struct SelectorCheckingContext {
+ STACK_ALLOCATED();
+ public:
// Initial selector constructor
SelectorCheckingContext(const CSSSelector& selector, Element* element, VisitedMatchType visitedMatchType)
: selector(&selector)
, element(element)
- , previousElement(0)
- , scope(0)
+ , previousElement(nullptr)
+ , scope(nullptr)
, visitedMatchType(visitedMatchType)
, pseudoId(NOPSEUDO)
, elementStyle(0)
@@ -71,12 +73,13 @@ public:
, hasSelectionPseudo(false)
, isUARule(false)
, contextFlags(DefaultBehavior)
- { }
+ {
+ }
const CSSSelector* selector;
- Element* element;
- Element* previousElement;
- const ContainerNode* scope;
+ RawPtrWillBeMember<Element> element;
+ RawPtrWillBeMember<Element> previousElement;
+ RawPtrWillBeMember<const ContainerNode> scope;
VisitedMatchType visitedMatchType;
PseudoId pseudoId;
RenderStyle* elementStyle;
« no previous file with comments | « no previous file | Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698