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

Unified Diff: sky/engine/core/dom/StyleEngine.cpp

Issue 803673003: Delete StyleSheetList and support code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
Index: sky/engine/core/dom/StyleEngine.cpp
diff --git a/sky/engine/core/dom/StyleEngine.cpp b/sky/engine/core/dom/StyleEngine.cpp
index ee38518b7963a002fa26bf4f053d639a7e632434..7cfb8f1ea877eed481b284d1b3ac8a78eb1dc966 100644
--- a/sky/engine/core/dom/StyleEngine.cpp
+++ b/sky/engine/core/dom/StyleEngine.cpp
@@ -32,7 +32,6 @@
#include "sky/engine/core/css/CSSStyleSheet.h"
#include "sky/engine/core/css/FontFaceCache.h"
#include "sky/engine/core/css/StyleSheetContents.h"
-#include "sky/engine/core/dom/DocumentStyleSheetCollector.h"
#include "sky/engine/core/dom/Element.h"
#include "sky/engine/core/dom/ShadowTreeStyleSheetCollection.h"
#include "sky/engine/core/dom/shadow/ShadowRoot.h"
@@ -96,6 +95,13 @@ inline Document* StyleEngine::master()
return import->master();
}
+const Vector<RefPtr<CSSStyleSheet>>& StyleEngine::activeAuthorStyleSheetsFor(TreeScope& treeScope)
+{
+ if (treeScope == m_document)
+ return documentStyleSheetCollection()->activeAuthorStyleSheets();
+ return ensureStyleSheetCollectionFor(treeScope)->activeAuthorStyleSheets();
+}
+
void StyleEngine::insertTreeScopeInDocumentOrder(TreeScopeSet& treeScopes, TreeScope* treeScope)
{
if (treeScopes.isEmpty()) {
@@ -145,14 +151,6 @@ TreeScopeStyleSheetCollection* StyleEngine::styleSheetCollectionFor(TreeScope& t
return it->value.get();
}
-const Vector<RefPtr<CSSStyleSheet> >& StyleEngine::styleSheetsForStyleSheetList(TreeScope& treeScope)
-{
- if (treeScope == m_document)
- return documentStyleSheetCollection()->styleSheetsForStyleSheetList();
-
- return ensureStyleSheetCollectionFor(treeScope)->styleSheetsForStyleSheetList();
-}
-
void StyleEngine::modifiedStyleSheet(CSSStyleSheet* sheet)
{
if (!sheet)

Powered by Google App Engine
This is Rietveld 408576698