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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.cpp

Issue 2559613002: Removed resolverChanged(). (Closed)
Patch Set: Rebased Created 4 years 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/css/CSSStyleSheet.h ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
index 1051ee1a1846066553fb5a60c2351866bca701f6..e5e5dc84357043e408ec8001f61fc90af40bff80 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
@@ -159,25 +159,15 @@ void CSSStyleSheet::didMutateRules() {
DCHECK(m_contents->isMutable());
DCHECK_LE(m_contents->clientSize(), 1u);
- didMutate(PartialRuleUpdate);
+ didMutate();
}
-void CSSStyleSheet::didMutate(StyleSheetUpdateType updateType) {
+void CSSStyleSheet::didMutate() {
Document* owner = ownerDocument();
if (!owner)
return;
if (ownerNode() && ownerNode()->isConnected())
owner->styleEngine().setNeedsActiveStyleUpdate(ownerNode()->treeScope());
-
- // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet
- // updates are async. https://crbug.com/567021
-
- // Need FullStyleUpdate when insertRule or deleteRule,
- // because StyleSheetCollection::analyzeStyleSheetChange cannot detect partial
- // rule update.
- StyleResolverUpdateMode updateMode =
- updateType != PartialRuleUpdate ? AnalyzedStyleUpdate : FullStyleUpdate;
- owner->styleEngine().resolverChanged(updateMode);
}
void CSSStyleSheet::reattachChildRuleCSSOMWrappers() {
@@ -232,7 +222,7 @@ CSSRule* CSSStyleSheet::item(unsigned index) {
}
void CSSStyleSheet::clearOwnerNode() {
- didMutate(EntireStyleSheetUpdate);
+ didMutate();
if (m_ownerNode)
m_contents->unregisterClient(this);
m_ownerNode = nullptr;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.h ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698