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

Unified Diff: Source/core/rendering/FastTextAutosizer.h

Issue 176433002: Always initialize LayoutScope::m_block. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/rendering/FastTextAutosizer.h
diff --git a/Source/core/rendering/FastTextAutosizer.h b/Source/core/rendering/FastTextAutosizer.h
index ae5d93ff7080ca130f3617ebf51a52e0627e41cc..31c0e284772baecbae91724152adc95fc2fac8d6 100644
--- a/Source/core/rendering/FastTextAutosizer.h
+++ b/Source/core/rendering/FastTextAutosizer.h
@@ -67,6 +67,7 @@ public:
class LayoutScope {
public:
explicit LayoutScope(Document& document, RenderBlock* block)
+ : m_block(0)
{
m_textAutosizer = document.fastTextAutosizer();
if (m_textAutosizer) {
@@ -76,8 +77,6 @@ public:
}
m_block = block;
m_textAutosizer->beginLayout(m_block);
- } else {
- m_block = 0;
}
}
« 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