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

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

Issue 2766373002: Notify inspector of stylesheet changes when removing tree scopes. (Closed)
Patch Set: Created 3 years, 9 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 | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index 0de4d370c2af5743d772ebe7c7caf3c472557be8..b22c20b3fad7e96c3fd844d1221f4bc834d810ae 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -345,6 +345,7 @@ void StyleEngine::updateActiveStyleSheets() {
m_dirtyTreeScopes.clear();
m_documentScopeDirty = false;
m_allTreeScopesDirty = false;
+ m_treeScopesRemoved = false;
}
void StyleEngine::updateViewport() {
@@ -391,6 +392,7 @@ void StyleEngine::shadowRootRemovedFromDocument(ShadowRoot* shadowRoot) {
m_styleSheetCollectionMap.erase(shadowRoot);
m_activeTreeScopes.erase(shadowRoot);
m_dirtyTreeScopes.erase(shadowRoot);
+ m_treeScopesRemoved = true;
resetAuthorStyle(*shadowRoot);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698