Chromium Code Reviews

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

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.
Jump to:
View side-by-side diff with in-line comments
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 0df63e6cdb15f220fc62f5b20ede9afbd66d5255..c2105dd97aa01167236a33ca939a020e39f5f2b9 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -267,8 +267,8 @@ class CORE_EXPORT StyleEngine final
private:
StyleEngine(Document&);
bool needsActiveStyleSheetUpdate() const {
- return m_allTreeScopesDirty || m_documentScopeDirty ||
- m_dirtyTreeScopes.size();
+ return m_allTreeScopesDirty || m_treeScopesRemoved ||
+ m_documentScopeDirty || m_dirtyTreeScopes.size();
}
TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
@@ -353,6 +353,7 @@ class CORE_EXPORT StyleEngine final
bool m_documentScopeDirty = true;
bool m_allTreeScopesDirty = false;
+ bool m_treeScopesRemoved = false;
UnorderedTreeScopeSet m_dirtyTreeScopes;
UnorderedTreeScopeSet m_activeTreeScopes;
DocumentOrderedList m_treeBoundaryCrossingScopes;

Powered by Google App Engine