| Index: Source/core/dom/StyleSheetCollection.cpp
|
| diff --git a/Source/core/dom/StyleSheetCollection.cpp b/Source/core/dom/StyleSheetCollection.cpp
|
| index 6f807b9e2776bd899fe310a3862d9146d17c9142..242ccf6de6323bbf40aeae38fc8e11c2f5db57f6 100644
|
| --- a/Source/core/dom/StyleSheetCollection.cpp
|
| +++ b/Source/core/dom/StyleSheetCollection.cpp
|
| @@ -139,6 +139,9 @@ void StyleSheetCollection::analyzeStyleSheetChange(StyleResolverUpdateMode updat
|
| Vector<StyleSheetContents*> addedSheets;
|
| styleResolverUpdateType = compareStyleSheets(oldStyleSheets, newStyleSheets, addedSheets);
|
|
|
| + // FIXME: If styleResolverUpdateType is still Reconstruct, we could return early here
|
| + // as destroying the StyleResolver will recalc the whole document anyway?
|
| +
|
| // If we are already parsing the body and so may have significant amount of elements, put some effort into trying to avoid style recalcs.
|
| if (!document()->body() || document()->hasNodesWithPlaceholderStyle())
|
| return;
|
|
|