| Index: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| index cfff0c100a87c1ba436ba985e4855b3e9541c43f..a562dad86fa54b77d28064b2e85b79ec0e9ab35d 100644
|
| --- a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| @@ -79,6 +79,21 @@ bool TreeScopeStyleSheetCollection::HasStyleSheets() const {
|
| return false;
|
| }
|
|
|
| +void TreeScopeStyleSheetCollection::CollectStyleSheetsForList() {
|
| + HeapVector<Member<StyleSheet>> new_list;
|
| + for (Node* node : style_sheet_candidate_nodes_) {
|
| + StyleSheetCandidate candidate(*node);
|
| + DCHECK(!candidate.IsXSL());
|
| + if (candidate.IsImport())
|
| + continue;
|
| + if (candidate.IsEnabledAndLoading())
|
| + continue;
|
| + if (StyleSheet* sheet = candidate.Sheet())
|
| + new_list.push_back(sheet);
|
| + }
|
| + SwapSheetsForSheetList(new_list);
|
| +}
|
| +
|
| DEFINE_TRACE(TreeScopeStyleSheetCollection) {
|
| visitor->Trace(tree_scope_);
|
| visitor->Trace(style_sheet_candidate_nodes_);
|
|
|