| 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 8b068389d51c4468a3f3f8db93f26d2423c406eb..8feeee53fb3e494eacaec4917001027c689eaf51 100644
|
| --- a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| @@ -50,14 +50,7 @@ void TreeScopeStyleSheetCollection::addStyleSheetCandidateNode(Node* node, bool
|
| if (!node->inDocument())
|
| return;
|
|
|
| - // Until the <body> exists, we have no choice but to compare document positions,
|
| - // since styles outside of the body and head continue to be shunted into the head
|
| - // (and thus can shift to end up before dynamically added DOM content that is also
|
| - // outside the body).
|
| - if (createdByParser && document().body() && !node->nextSibling())
|
| - m_styleSheetCandidateNodes.parserAdd(node);
|
| - else
|
| - m_styleSheetCandidateNodes.add(node);
|
| + m_styleSheetCandidateNodes.add(node);
|
| }
|
|
|
| TreeScopeStyleSheetCollection::StyleResolverUpdateType TreeScopeStyleSheetCollection::compareStyleSheets(const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& oldStyleSheets, const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& newStylesheets, WillBeHeapVector<RawPtrWillBeMember<StyleSheetContents>>& addedSheets)
|
|
|