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

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: Changed name. 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
« no previous file with comments | « Source/core/rendering/RenderTableCell.h ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTableCell.cpp
diff --git a/Source/core/rendering/RenderTableCell.cpp b/Source/core/rendering/RenderTableCell.cpp
index 8bb375f11607c7dbfca675145c9a4ce6524e2240..b6d5e857713dd6d3efe332673ebf3f73a9c572ae 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);
+ mapRectToRepaintBacking(repaintContainer, r);
return r;
}
-void RenderTableCell::computeRectForRepaint(const RenderLayerModelObject* repaintContainer, LayoutRect& r, bool fixed) const
+void RenderTableCell::mapRectToRepaintBacking(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::mapRectToRepaintBacking(repaintContainer, r, fixed);
}
LayoutUnit RenderTableCell::cellBaselinePosition() const
« no previous file with comments | « Source/core/rendering/RenderTableCell.h ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698