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

Unified Diff: Source/core/layout/LayoutAnalyzer.cpp

Issue 1120833003: Put LayoutAnalyzer back behind disabled-by-default-blink.debug.layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: thinger Created 5 years, 8 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 | « Source/core/layout/LayoutAnalyzer.h ('k') | Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutAnalyzer.cpp
diff --git a/Source/core/layout/LayoutAnalyzer.cpp b/Source/core/layout/LayoutAnalyzer.cpp
index 49cfb5f50cea932a1f49f88f00fe58c082cb47e6..d02b62c35842ef8baacd6ce2786029ccf3f936a6 100644
--- a/Source/core/layout/LayoutAnalyzer.cpp
+++ b/Source/core/layout/LayoutAnalyzer.cpp
@@ -17,12 +17,14 @@ LayoutAnalyzer::Scope::Scope(const LayoutObject& o)
: m_layoutObject(o)
, m_analyzer(o.frameView()->layoutAnalyzer())
{
- m_analyzer.push(o);
+ if (m_analyzer)
+ m_analyzer->push(o);
}
LayoutAnalyzer::Scope::~Scope()
{
- m_analyzer.pop(m_layoutObject);
+ if (m_analyzer)
+ m_analyzer->pop(m_layoutObject);
}
void LayoutAnalyzer::reset()
« no previous file with comments | « Source/core/layout/LayoutAnalyzer.h ('k') | Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698