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

Unified Diff: sky/engine/core/html/HTMLStyleElement.cpp

Issue 852703002: Merge StyleSheetCollection into ScopedStyleResolver. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/dom/TreeScope.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLStyleElement.cpp
diff --git a/sky/engine/core/html/HTMLStyleElement.cpp b/sky/engine/core/html/HTMLStyleElement.cpp
index aade005816b0d463801dc18061c0d30d644a7b00..d915dcfe3c93c43b714c31bf7002bddbb45ce11b 100644
--- a/sky/engine/core/html/HTMLStyleElement.cpp
+++ b/sky/engine/core/html/HTMLStyleElement.cpp
@@ -30,7 +30,6 @@
#include "sky/engine/core/dom/Document.h"
#include "sky/engine/core/dom/Element.h"
#include "sky/engine/core/dom/StyleEngine.h"
-#include "sky/engine/core/dom/StyleSheetCollection.h"
#include "sky/engine/core/dom/shadow/ShadowRoot.h"
#include "sky/engine/core/frame/LocalFrame.h"
#include "sky/engine/platform/TraceEvent.h"
@@ -70,7 +69,7 @@ void HTMLStyleElement::insertedInto(ContainerNode* insertionPoint)
HTMLElement::insertedInto(insertionPoint);
if (!inActiveDocument())
return;
- treeScope().styleSheets().addStyleSheetCandidateNode(*this);
+ treeScope().scopedStyleResolver().addStyleSheetCandidateNode(*this);
process();
}
@@ -84,7 +83,7 @@ void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint)
TreeScope* containingScope = containingShadowRoot();
TreeScope& scope = containingScope ? *containingScope : insertionPoint->treeScope();
- scope.styleSheets().removeStyleSheetCandidateNode(*this);
+ scope.scopedStyleResolver().removeStyleSheetCandidateNode(*this);
RefPtr<CSSStyleSheet> removedSheet = m_sheet.get();
« no previous file with comments | « sky/engine/core/dom/TreeScope.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698