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

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

Issue 1322493004: Trace StyleEngine::clearResolver (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Frame pointers Created 5 years, 4 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 | no next file » | no next file with comments »
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 ac5e5483b9738c51603dde1240db6929fcf893c5..8f61504461b5ddd1396365e116888792f32fd843 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -394,7 +394,7 @@ void StyleEngine::appendActiveAuthorStyleSheets()
void StyleEngine::createResolver()
{
- TRACE_EVENT0("blink", "StyleEngine::createResolver");
+ TRACE_EVENT1("blink", "StyleEngine::createResolver", "frame", document().frame());
// It is a programming error to attempt to resolve style on a Document
// which is not in a frame. Code which hits this should have checked
// Document::isActive() before calling into code which could get here.
@@ -425,7 +425,10 @@ void StyleEngine::clearResolver()
for (TreeScope* treeScope : m_activeTreeScopes)
treeScope->clearScopedStyleResolver();
- m_resolver.clear();
+ if (m_resolver) {
+ TRACE_EVENT1("blink", "StyleEngine::clearResolver", "frame", document().frame());
+ m_resolver.clear();
+ }
}
void StyleEngine::clearMasterResolver()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698