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

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

Issue 166033009: *** FOR PROTOTYPE PURPOSES ONLY! NOT INTENDED FOR COMMIT! *** (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
Index: Source/core/rendering/LayoutRepainter.cpp
diff --git a/Source/core/rendering/LayoutRepainter.cpp b/Source/core/rendering/LayoutRepainter.cpp
index fc06e0b3b2176fbbbe35076eae926ecd23fd03e0..44957aa8ae14fdbbd26eb806457f72313201fb3e 100644
--- a/Source/core/rendering/LayoutRepainter.cpp
+++ b/Source/core/rendering/LayoutRepainter.cpp
@@ -30,6 +30,22 @@
namespace WebCore {
+LayoutRepainter::LayoutRepainter(RenderObject& object, bool checkForRepaint,
+ const LayoutRect& oldBounds, const LayoutRect& oldOutlineBox)
+ : m_object(object)
+ , m_repaintContainer(0)
+ , m_checkForRepaint(checkForRepaint)
+{
+ if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
+ return;
+
+ if (m_checkForRepaint) {
+ m_repaintContainer = m_object.containerForRepaint();
+ m_oldBounds = oldBounds;
+ m_oldOutlineBox = oldOutlineBox;
+ }
+}
+
LayoutRepainter::LayoutRepainter(RenderObject& object, bool checkForRepaint)
: m_object(object)
, m_repaintContainer(0)

Powered by Google App Engine
This is Rietveld 408576698