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

Unified Diff: Source/core/html/HTMLStyleElement.cpp

Issue 23516012: Rename StyleSheetCollections to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | « Source/core/html/HTMLQuoteElement.cpp ('k') | Source/core/html/HTMLViewSourceDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLStyleElement.cpp
diff --git a/Source/core/html/HTMLStyleElement.cpp b/Source/core/html/HTMLStyleElement.cpp
index ee324da9cbf40f5d70db0f40e3f5662d86262d78..259ddc34827a8ddef049e6ffddf8a500e6edc272 100644
--- a/Source/core/html/HTMLStyleElement.cpp
+++ b/Source/core/html/HTMLStyleElement.cpp
@@ -31,7 +31,7 @@
#include "core/dom/Document.h"
#include "core/dom/Event.h"
#include "core/dom/EventSender.h"
-#include "core/dom/StyleSheetCollections.h"
+#include "core/dom/StyleEngine.h"
#include "core/dom/shadow/ShadowRoot.h"
namespace WebCore {
@@ -102,10 +102,10 @@ void HTMLStyleElement::scopedAttributeChanged(bool scoped)
scopingNode = containingShadowRoot();
unregisterWithScopingNode(scopingNode);
}
- document().styleSheetCollections()->removeStyleSheetCandidateNode(this, scopingNode);
+ document().styleEngine()->removeStyleSheetCandidateNode(this, scopingNode);
registerWithScopingNode(true);
- document().styleSheetCollections()->addStyleSheetCandidateNode(this, false);
+ document().styleEngine()->addStyleSheetCandidateNode(this, false);
document().modifiedStyleSheet(sheet());
return;
}
@@ -115,7 +115,7 @@ void HTMLStyleElement::scopedAttributeChanged(bool scoped)
if (m_scopedStyleRegistrationState != RegisteredAsScoped)
return;
- document().styleSheetCollections()->removeStyleSheetCandidateNode(this, parentNode());
+ document().styleEngine()->removeStyleSheetCandidateNode(this, parentNode());
unregisterWithScopingNode(parentNode());
// As any <style> in a shadow tree is treated as "scoped",
@@ -123,7 +123,7 @@ void HTMLStyleElement::scopedAttributeChanged(bool scoped)
if (isInShadowTree())
registerWithScopingNode(false);
- document().styleSheetCollections()->addStyleSheetCandidateNode(this, false);
+ document().styleEngine()->addStyleSheetCandidateNode(this, false);
document().modifiedStyleSheet(sheet());
}
« no previous file with comments | « Source/core/html/HTMLQuoteElement.cpp ('k') | Source/core/html/HTMLViewSourceDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698