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

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

Issue 1721673002: Removed Document::addedStyleSheet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index a40a5160670c89680f21ecd02f3c312a3af17490..6cf9cd236d7a53413edec0707930ae2be58ab390 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -157,7 +157,7 @@ void StyleEngine::injectAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> a
{
m_injectedAuthorStyleSheets.append(CSSStyleSheet::create(authorSheet, m_document));
markDocumentDirty();
- document().addedStyleSheet(m_injectedAuthorStyleSheets.last().get());
+ resolverChanged(FullStyleUpdate);
}
void StyleEngine::addPendingSheet()
@@ -180,8 +180,6 @@ void StyleEngine::removePendingSheet(Node* styleSheetCandidateNode)
if (m_pendingStylesheets)
return;
- // FIXME: We can't call addedStyleSheet or removedStyleSheet here because we don't know
- // what's new. We should track that to tell the style system what changed.
document().didRemoveAllPendingStylesheet();
}
@@ -245,6 +243,7 @@ void StyleEngine::modifiedStyleSheetCandidateNode(Node* node)
TreeScope& treeScope = isStyleElement(*node) ? node->treeScope() : *m_document;
ASSERT(isStyleElement(*node) || treeScope == m_document);
markTreeScopeDirty(treeScope);
+ resolverChanged(FullStyleUpdate);
}
bool StyleEngine::shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode updateMode) const
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698