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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.h

Issue 2354773003: Make stylesheet owner node a reference instead of pointer. (Closed)
Patch Set: const Created 4 years, 3 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: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.h
diff --git a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.h b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.h
index 1703f120a1f204ebd8d3222e3d786bf8cfb049e1..5d27f0683f783529bc6b6e86f589741bb08daa03 100644
--- a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.h
+++ b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.h
@@ -46,8 +46,8 @@ class StyleRuleFontFace;
class CORE_EXPORT TreeScopeStyleSheetCollection : public StyleSheetCollection {
public:
- void addStyleSheetCandidateNode(Node*);
- void removeStyleSheetCandidateNode(Node* node) { m_styleSheetCandidateNodes.remove(node); }
+ void addStyleSheetCandidateNode(Node&);
+ void removeStyleSheetCandidateNode(Node& node) { m_styleSheetCandidateNodes.remove(&node); }
bool hasStyleSheetCandidateNodes() const { return !m_styleSheetCandidateNodes.isEmpty(); }
void clearMediaQueryRuleSetStyleSheets();

Powered by Google App Engine
This is Rietveld 408576698