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

Unified Diff: Source/core/dom/StyleEngine.cpp

Issue 290563007: Defer style recalc when inserting extension stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Avoid Android crash Created 6 years, 7 months 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
« no previous file with comments | « no previous file | Source/web/tests/WebDocumentTest.cpp » ('j') | Source/web/tests/WebDocumentTest.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleEngine.cpp
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
index 41e41f211d32bd840127f931a7b7eecfb4d9ae93..95affb95dcfc13cd03fbce03ee468d3b681973d5 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -231,7 +231,7 @@ void StyleEngine::invalidateInjectedStyleSheetCache()
void StyleEngine::addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet)
{
m_authorStyleSheets.append(CSSStyleSheet::create(authorSheet, m_document));
- document().addedStyleSheet(m_authorStyleSheets.last().get(), RecalcStyleImmediately);
+ document().addedStyleSheet(m_authorStyleSheets.last().get(), RecalcStyleDeferred);
markDocumentDirty();
}
« no previous file with comments | « no previous file | Source/web/tests/WebDocumentTest.cpp » ('j') | Source/web/tests/WebDocumentTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698