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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp

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/DocumentStyleSheetCollection.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
index 9d59800ba3bf1ce82cbecff834257383aca38b1c..f4d0351c74a0ffd39abe65610b8452442d0640ae 100644
--- a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
@@ -78,6 +78,8 @@ void DocumentStyleSheetCollection::collectStyleSheets(StyleEngine& engine, Docum
DCHECK_EQ(&document().styleEngine(), &engine);
collector.appendActiveStyleSheets(engine.injectedAuthorStyleSheets());
collectStyleSheetsFromCandidates(engine, collector);
+ if (engine.inspectorStyleSheet())
+ collector.appendActiveStyleSheet(engine.inspectorStyleSheet());
}
void DocumentStyleSheetCollection::updateActiveStyleSheets(StyleEngine& engine, StyleResolverUpdateMode updateMode)

Powered by Google App Engine
This is Rietveld 408576698