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

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

Issue 42543007: StyleResolver should update RuleSets lazily. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: modify Document::styleResolver 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/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 302502907a99b1da2c6c3b7bbfa06c02ee341fb7..4d447e20d281c1547cef08c77e31a22367bb13b9 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -393,12 +393,7 @@ public:
bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNamespaces; }
- StyleResolver* styleResolver()
- {
- if (!m_styleResolver)
- createStyleResolver();
- return m_styleResolver.get();
- }
+ StyleResolver* styleResolver();
void notifyRemovePendingSheetIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698