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

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

Issue 318803002: Rename Repaint to Paint Invalidation part 3 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/RenderBlockFlow.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/RenderBlockFlow.cpp
diff --git a/Source/core/rendering/RenderBlockFlow.cpp b/Source/core/rendering/RenderBlockFlow.cpp
index 62270f05fd1a750c63c7e82889e73293a863493b..0bc97403bfdced8c7169039cadf37690343d6841 100644
--- a/Source/core/rendering/RenderBlockFlow.cpp
+++ b/Source/core/rendering/RenderBlockFlow.cpp
@@ -330,7 +330,7 @@ void RenderBlockFlow::layoutBlock(bool relayoutChildren)
if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
setShouldInvalidateOverflowForPaint(true);
else
- repaintOverflow();
+ invalidatePaintForOverflow();
}
clearNeedsLayout();
}
@@ -638,7 +638,7 @@ void RenderBlockFlow::layoutBlockChild(RenderBox* child, MarginInfo& marginInfo,
if (!childHadLayout && child->checkForRepaint()) {
if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
- child->repaint();
+ child->paintInvalidationForWholeRenderer();
child->repaintOverhangingFloats(true);
}
@@ -1953,14 +1953,14 @@ void RenderBlockFlow::repaintOverhangingFloats(bool paintAllDescendants)
if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
floatingRenderer->setShouldDoFullPaintInvalidationAfterLayout(true);
else
- floatingRenderer->repaint();
+ floatingRenderer->paintInvalidationForWholeRenderer();
floatingRenderer->repaintOverhangingFloats(false);
}
}
}
-void RenderBlockFlow::repaintOverflow()
+void RenderBlockFlow::invalidatePaintForOverflow()
{
// FIXME: We could tighten up the left and right invalidation points if we let layoutInlineChildren fill them in based off the particular lines
// it had to lay out. We wouldn't need the hasOverflowClip() hack in that case either.
@@ -1996,9 +1996,9 @@ void RenderBlockFlow::repaintOverflow()
// Hits in media/event-attributes.html
DisableCompositingQueryAsserts disabler;
- repaintRectangle(repaintRect); // We need to do a partial repaint of our content.
+ invalidatePaintRectangle(repaintRect); // We need to do a partial repaint of our content.
if (hasReflection())
- repaintRectangle(reflectedRect(repaintRect));
+ invalidatePaintRectangle(reflectedRect(repaintRect));
}
m_repaintLogicalTop = 0;
« no previous file with comments | « Source/core/rendering/RenderBlockFlow.h ('k') | Source/core/rendering/RenderBlockLineLayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698