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

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

Issue 301843002: Store repaint rects in the coordinate space of their backing GraphicsLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more fix. Created 6 years, 7 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/RenderTableCell.cpp
diff --git a/Source/core/rendering/RenderTableCell.cpp b/Source/core/rendering/RenderTableCell.cpp
index 8bb375f11607c7dbfca675145c9a4ce6524e2240..d6bffd743e0dc9a6973b7f5d2861c730b4fc1cfb 100644
--- a/Source/core/rendering/RenderTableCell.cpp
+++ b/Source/core/rendering/RenderTableCell.cpp
@@ -368,11 +368,11 @@ LayoutRect RenderTableCell::clippedOverflowRectForRepaint(const RenderLayerModel
r.move(v->layoutDelta());
}
}
- computeRectForRepaint(repaintContainer, r);
+ adjustRectToRepaintBackingCoords(repaintContainer, r);
return r;
}
-void RenderTableCell::computeRectForRepaint(const RenderLayerModelObject* repaintContainer, LayoutRect& r, bool fixed) const
+void RenderTableCell::adjustRectToRepaintBackingCoords(const RenderLayerModelObject* repaintContainer, LayoutRect& r, bool fixed) const
{
if (repaintContainer == this)
return;
@@ -380,7 +380,7 @@ void RenderTableCell::computeRectForRepaint(const RenderLayerModelObject* repain
RenderView* v = view();
if ((!v || !v->canUseLayoutStateForContainer(repaintContainer)) && parent())
r.moveBy(-parentBox()->location()); // Rows are in the same coordinate space, so don't add their offset in.
- RenderBlockFlow::computeRectForRepaint(repaintContainer, r, fixed);
+ RenderBlockFlow::adjustRectToRepaintBackingCoords(repaintContainer, r, fixed);
}
LayoutUnit RenderTableCell::cellBaselinePosition() const

Powered by Google App Engine
This is Rietveld 408576698