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

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

Issue 2312953002: Store a single inspector stylesheet hidden from CSSOM. (Closed)
Patch Set: Incorrect removal. 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 06626e74740d8588c5b96140d9365df88381da33..d688365b1c57bcec60a65a5693c5407bbd6aa5ad 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -80,6 +80,7 @@ public:
const HeapVector<Member<StyleSheet>>& styleSheetsForStyleSheetList(TreeScope&);
const HeapVector<Member<CSSStyleSheet>>& injectedAuthorStyleSheets() const { return m_injectedAuthorStyleSheets; }
+ CSSStyleSheet* inspectorStyleSheet() const { return m_inspectorStyleSheet; }
const HeapVector<Member<CSSStyleSheet>> activeStyleSheetsForInspector() const;
@@ -91,6 +92,7 @@ public:
void watchedSelectorsChanged();
void injectAuthorSheet(StyleSheetContents* authorSheet);
+ CSSStyleSheet& ensureInspectorStyleSheet();
void clearMediaQueryRuleSetStyleSheets();
void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector);
@@ -240,6 +242,7 @@ private:
int m_pendingRenderBlockingStylesheets = 0;
HeapVector<Member<CSSStyleSheet>> m_injectedAuthorStyleSheets;
+ Member<CSSStyleSheet> m_inspectorStyleSheet;
Member<DocumentStyleSheetCollection> m_documentStyleSheetCollection;

Powered by Google App Engine
This is Rietveld 408576698