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

Unified Diff: third_party/WebKit/Source/core/dom/Document.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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 3ae652d4a77fd109b1f91e9e93388b5ee049fd44..d7c9fb00b0e94ef75cdebb2f677ef3d0a7b8723e 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5762,26 +5762,6 @@ float Document::devicePixelRatio() const
return m_frame ? m_frame->devicePixelRatio() : 1.0;
}
-void Document::removedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode updateMode)
-{
- // If we're in document teardown, then we don't need this notification of our sheet's removal.
- // resolverChanged() is needed even when the document is inactive so that imported documents
- // (which are inactive) notify the change to the master document.
- if (isActive())
- styleEngine().modifiedStyleSheet(sheet);
- styleEngine().resolverChanged(updateMode);
-}
-
-void Document::modifiedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode updateMode)
-{
- // If we're in document teardown, then we don't need this notification of our sheet's removal.
- // resolverChanged() is needed even when the document is inactive so that imported documents
- // (which are inactive) notify the change to the master document.
- if (isActive())
- styleEngine().modifiedStyleSheet(sheet);
- styleEngine().resolverChanged(updateMode);
-}
-
TextAutosizer* Document::textAutosizer()
{
if (!m_textAutosizer)
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698