| 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)
|
|
|