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

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

Issue 1843693002: Introduce setNeedsActiveStyleUpdate for adding/removing stylesheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/dom/StyleElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleElement.cpp b/third_party/WebKit/Source/core/dom/StyleElement.cpp
index 690d9d17d1fc08b0adf602928f5f6f8d63f8ceaa..400dbe256db13e82e1e9d9b2efd5338961b30a23 100644
--- a/third_party/WebKit/Source/core/dom/StyleElement.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleElement.cpp
@@ -106,7 +106,7 @@ void StyleElement::removedFrom(Element* element, ContainerNode* insertionPoint)
if (m_sheet)
clearSheet(element);
if (removedSheet)
- document.removedStyleSheet(removedSheet.get(), AnalyzedStyleUpdate);
+ document.styleEngine().setNeedsActiveStyleUpdate(removedSheet.get(), AnalyzedStyleUpdate);
}
void StyleElement::clearDocumentData(Document& document, Element* element)
« no previous file with comments | « third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698