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

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

Issue 42543007: StyleResolver should update RuleSets lazily. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 years, 1 month 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
Index: Source/core/dom/StyleEngine.h
diff --git a/Source/core/dom/StyleEngine.h b/Source/core/dom/StyleEngine.h
index 0912ff8dc0ce7fb2473507117956c6d76854a080..5f6e0e14c6eed29b93abae050ec7b1ee5b500c65 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -28,6 +28,7 @@
#ifndef StyleEngine_h
#define StyleEngine_h
+#include "core/css/resolver/StyleResolver.h"
#include "core/dom/Document.h"
#include "core/dom/DocumentOrderedList.h"
#include "core/dom/DocumentStyleSheetCollection.h"
@@ -140,8 +141,11 @@ public:
StyleResolver* resolver()
{
- if (!m_resolver)
+ if (!m_resolver) {
createResolver();
+ } else if (m_resolver->hasPendingAuthorStyleSheets()) {
+ m_resolver->appendPendingAuthorStyleSheets();
+ }
return m_resolver.get();
}

Powered by Google App Engine
This is Rietveld 408576698