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

Unified Diff: Source/core/rendering/LayoutRectRecorder.cpp

Issue 208103002: [repaint-after-layout] Only repaint SVG root element when needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/rendering/LayoutRectRecorder.h ('k') | Source/core/rendering/RenderBlockLineLayout.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/LayoutRectRecorder.cpp
diff --git a/Source/core/rendering/LayoutRectRecorder.cpp b/Source/core/rendering/LayoutRectRecorder.cpp
index c2a13bb4eac14c7f712fac2d670aa28a39e87246..b62eef753d1bf39ac02a26ac6bfb58301d3efc42 100644
--- a/Source/core/rendering/LayoutRectRecorder.cpp
+++ b/Source/core/rendering/LayoutRectRecorder.cpp
@@ -42,13 +42,13 @@ bool LayoutRectRecorder::shouldRecordLayoutRects()
return RuntimeEnabledFeatures::repaintAfterLayoutEnabled() || isTracing;
}
-LayoutRectRecorder::LayoutRectRecorder(RenderObject& object, bool skipRecording)
+LayoutRectRecorder::LayoutRectRecorder(RenderObject& object, bool record)
: m_object(object)
- , m_skipRecording(skipRecording)
+ , m_record(record)
{
if (!shouldRecordLayoutRects())
return;
- if (m_skipRecording)
+ if (!m_record)
return;
if (!m_object.layoutDidGetCalled()) {
@@ -72,7 +72,7 @@ LayoutRectRecorder::~LayoutRectRecorder()
{
if (!shouldRecordLayoutRects())
return;
- if (m_skipRecording)
+ if (!m_record)
return;
// Note, we don't store the repaint container because it can change during layout.
« no previous file with comments | « Source/core/rendering/LayoutRectRecorder.h ('k') | Source/core/rendering/RenderBlockLineLayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698