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

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

Issue 332543002: Rename Repaint to Paint Invalidation Part 4 (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/RenderTableCell.h ('k') | Source/core/rendering/RenderTableCol.h » ('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 7c9ef6e0edc5faa223d9263e3a6a178410699b6f..f99a7b59bf339c47026527b1bebc45661b3f33a6 100644
--- a/Source/core/rendering/RenderTableCell.cpp
+++ b/Source/core/rendering/RenderTableCell.cpp
@@ -104,7 +104,7 @@ void RenderTableCell::colSpanOrRowSpanChanged()
// FIXME: I suspect that we could return early here if !m_hasColSpan && !m_hasRowSpan.
- setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint();
+ setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
if (parent() && section())
section()->setNeedsCellRecalc();
}
@@ -225,7 +225,7 @@ void RenderTableCell::setCellLogicalWidth(int tableLayoutLogicalWidth, SubtreeLa
layouter.setNeedsLayout(this);
- if (!table()->selfNeedsLayout() && checkForRepaintDuringLayout())
+ if (!table()->selfNeedsLayout() && checkForPaintInvalidationDuringLayout())
paintInvalidationForWholeRenderer();
setLogicalWidth(tableLayoutLogicalWidth);
@@ -319,14 +319,14 @@ LayoutSize RenderTableCell::offsetFromContainer(const RenderObject* o, const Lay
return offset;
}
-LayoutRect RenderTableCell::clippedOverflowRectForRepaint(const RenderLayerModelObject* repaintContainer) const
+LayoutRect RenderTableCell::clippedOverflowRectForPaintInvalidation(const RenderLayerModelObject* paintInvalidationContainer) const
{
// If the table grid is dirty, we cannot get reliable information about adjoining cells,
// so we ignore outside borders. This should not be a problem because it means that
// the table is going to recalculate the grid, relayout and repaint its current rect, which
// includes any outside borders of this cell.
if (!table()->collapseBorders() || table()->needsSectionRecalc())
- return RenderBlockFlow::clippedOverflowRectForRepaint(repaintContainer);
+ return RenderBlockFlow::clippedOverflowRectForPaintInvalidation(paintInvalidationContainer);
bool rtl = !styleForCellFlow()->isLeftToRightDirection();
int outlineSize = style()->outlineSize();
@@ -368,19 +368,19 @@ LayoutRect RenderTableCell::clippedOverflowRectForRepaint(const RenderLayerModel
r.move(v->layoutDelta());
}
}
- mapRectToRepaintBacking(repaintContainer, r);
+ mapRectToPaintInvalidationBacking(paintInvalidationContainer, r);
return r;
}
-void RenderTableCell::mapRectToRepaintBacking(const RenderLayerModelObject* repaintContainer, LayoutRect& r, bool fixed) const
+void RenderTableCell::mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect& r, bool fixed) const
{
- if (repaintContainer == this)
+ if (paintInvalidationContainer == this)
return;
r.setY(r.y());
RenderView* v = view();
- if ((!v || !v->canUseLayoutStateForContainer(repaintContainer)) && parent())
+ if ((!v || !v->canUseLayoutStateForContainer(paintInvalidationContainer)) && parent())
r.moveBy(-parentBox()->location()); // Rows are in the same coordinate space, so don't add their offset in.
- RenderBlockFlow::mapRectToRepaintBacking(repaintContainer, r, fixed);
+ RenderBlockFlow::mapRectToPaintInvalidationBacking(paintInvalidationContainer, r, fixed);
}
LayoutUnit RenderTableCell::cellBaselinePosition() const
« no previous file with comments | « Source/core/rendering/RenderTableCell.h ('k') | Source/core/rendering/RenderTableCol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698