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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.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/StyleEngine.h
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.h b/third_party/WebKit/Source/core/dom/StyleEngine.h
index 2e037b04b05a506737658a611e7244c750dd4131..38b60b01132229f8ac3aa283a21d3fa73a0f5555 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -85,10 +85,10 @@ public:
const HeapVector<Member<CSSStyleSheet>> activeStyleSheetsForInspector() const;
void setNeedsActiveStyleUpdate(StyleSheet*, StyleResolverUpdateMode);
- void addStyleSheetCandidateNode(Node*);
- void removeStyleSheetCandidateNode(Node*);
- void removeStyleSheetCandidateNode(Node*, TreeScope&);
- void modifiedStyleSheetCandidateNode(Node*);
+ void addStyleSheetCandidateNode(Node&);
+ void removeStyleSheetCandidateNode(Node&);
+ void removeStyleSheetCandidateNode(Node&, TreeScope&);
+ void modifiedStyleSheetCandidateNode(Node&);
void watchedSelectorsChanged();
void injectAuthorSheet(StyleSheetContents* authorSheet);
@@ -106,7 +106,7 @@ public:
void setHttpDefaultStyle(const String&);
void addPendingSheet(StyleEngineContext&);
- void removePendingSheet(Node* styleSheetCandidateNode, const StyleEngineContext&);
+ void removePendingSheet(Node& styleSheetCandidateNode, const StyleEngineContext&);
bool hasPendingScriptBlockingSheets() const { return m_pendingScriptBlockingStylesheets > 0; }
bool hasPendingRenderBlockingSheets() const { return m_pendingRenderBlockingStylesheets > 0; }
@@ -164,7 +164,7 @@ public:
bool shouldClearResolver() const;
void resolverChanged(StyleResolverUpdateMode);
- CSSStyleSheet* createSheet(Element*, const String& text, TextPosition startPosition, StyleEngineContext&);
+ CSSStyleSheet* createSheet(Element&, const String& text, TextPosition startPosition, StyleEngineContext&);
void collectScopedStyleFeaturesTo(RuleFeatureSet&) const;
void ensureFullscreenUAStyle();
@@ -216,7 +216,7 @@ private:
void createResolver();
- static CSSStyleSheet* parseSheet(Element*, const String& text, TextPosition startPosition);
+ CSSStyleSheet* parseSheet(Element&, const String& text, TextPosition startPosition);
const DocumentStyleSheetCollection* documentStyleSheetCollection() const
{
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleElement.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698