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

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

Issue 160903002: Move RenderLayer repainting to repaint-after-layout framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Rebase to master 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/RenderObject.h
diff --git a/Source/core/rendering/RenderObject.h b/Source/core/rendering/RenderObject.h
index 29efffa7cdcd14912dfe459f0561d24425fd2ab2..c484f09e2074d5af0a6db9acdaf2f9fe36990766 100644
--- a/Source/core/rendering/RenderObject.h
+++ b/Source/core/rendering/RenderObject.h
@@ -976,19 +976,24 @@ public:
const LayoutRect& oldRepaintRect() const { return m_oldRepaintRect; }
void setOldRepaintRect(const LayoutRect& rect) { m_oldRepaintRect = rect; }
+ LayoutRect newOutlineRect();
+ void setNewOutlineRect(const LayoutRect&);
+
+ LayoutRect oldOutlineRect();
+ void setOldOutlineRect(const LayoutRect&);
+
bool shouldDoFullRepaintAfterLayout() const { return m_bitfields.shouldDoFullRepaintAfterLayout(); }
void setShouldDoFullRepaintAfterLayout(bool b) { m_bitfields.setShouldDoFullRepaintAfterLayout(b); }
- bool shouldRepaintOverflowIfNeeded() const { return m_bitfields.shouldRepaintOverflowIfNeeded(); }
- void clearRepaintRects()
- {
- setNewRepaintRect(LayoutRect());
- setOldRepaintRect(LayoutRect());
+ bool shouldDoFullRepaintIfSelfPaintingLayer() const { return m_bitfields.shouldDoFullRepaintIfSelfPaintingLayer(); }
+ void setShouldDoFullRepaintIfSelfPaintingLayer(bool b) { m_bitfields.setShouldDoFullRepaintIfSelfPaintingLayer(b); }
- setShouldDoFullRepaintAfterLayout(false);
- setShouldRepaintOverflowIfNeeded(false);
- setLayoutDidGetCalled(false);
- }
+ bool shouldDoFullRepaintIfNotComposited() const { return m_bitfields.shouldDoFullRepaintIfNotComposited(); }
+ void setShouldDoFullRepaintIfNotComposited(bool b) { m_bitfields.setShouldDoFullRepaintIfNotComposited(b); }
+
+ bool shouldRepaintOverflowIfNeeded() const { return m_bitfields.shouldRepaintOverflowIfNeeded(); }
+
+ void clearRepaintState();
// layoutDidGetCalled indicates whether this render object was re-laid-out
// since the last call to setLayoutDidGetCalled(false) on this object.
@@ -1106,6 +1111,8 @@ private:
// Holding the layout bits until after repaint would remove the need
// for this flag.
, m_shouldDoFullRepaintAfterLayout(false)
+ , m_shouldDoFullRepaintIfSelfPaintingLayer(false)
+ , m_shouldDoFullRepaintIfNotComposited(false)
Julien - ping for review 2014/03/07 18:26:38 The second boolean is not needed if we clear the n
dsinclair 2014/03/07 19:29:48 I'm not sure if m_shouldDoFullRepaintIfNotComposi
Julien - ping for review 2014/03/13 22:26:50 I wasn't too stressed out about this one. It would
, m_shouldRepaintOverflowIfNeeded(false)
, m_needsPositionedMovementLayout(false)
, m_normalChildNeedsLayout(false)
@@ -1138,9 +1145,11 @@ private:
{
}
- // 32 bits have been used in the first word, and 3 in the second.
+ // 32 bits have been used in the first word, and 5 in the second.
ADD_BOOLEAN_BITFIELD(selfNeedsLayout, SelfNeedsLayout);
ADD_BOOLEAN_BITFIELD(shouldDoFullRepaintAfterLayout, ShouldDoFullRepaintAfterLayout);
+ ADD_BOOLEAN_BITFIELD(shouldDoFullRepaintIfSelfPaintingLayer, ShouldDoFullRepaintIfSelfPaintingLayer);
+ ADD_BOOLEAN_BITFIELD(shouldDoFullRepaintIfNotComposited, ShouldDoFullRepaintIfNotComposited);
ADD_BOOLEAN_BITFIELD(shouldRepaintOverflowIfNeeded, ShouldRepaintOverflowIfNeeded);
ADD_BOOLEAN_BITFIELD(needsPositionedMovementLayout, NeedsPositionedMovementLayout);
ADD_BOOLEAN_BITFIELD(normalChildNeedsLayout, NormalChildNeedsLayout);

Powered by Google App Engine
This is Rietveld 408576698