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

Unified Diff: Source/core/layout/LayoutTable.cpp

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/layout/LayoutTable.h ('k') | Source/core/layout/LayoutTableAlgorithmFixed.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTable.cpp
diff --git a/Source/core/layout/LayoutTable.cpp b/Source/core/layout/LayoutTable.cpp
index 3aa3d767d2569784c09b7d4efeeb31992c4fb972..60ec68d0b34c5148d74916b1a6276407eba96c48 100644
--- a/Source/core/layout/LayoutTable.cpp
+++ b/Source/core/layout/LayoutTable.cpp
@@ -172,7 +172,7 @@ void LayoutTable::addChild(LayoutObject* child, LayoutObject* beforeChild)
if (beforeChild && beforeChild->parent() != this)
beforeChild = splitAnonymousBoxesAroundChild(beforeChild);
- RenderBox::addChild(child, beforeChild);
+ LayoutBox::addChild(child, beforeChild);
return;
}
@@ -461,7 +461,7 @@ void LayoutTable::layout()
for (LayoutObject* child = firstChild(); child; child = child->nextSibling()) {
if (!child->needsLayout() && child->isBox())
- toRenderBox(child)->markForPaginationRelayoutIfNeeded(layouter);
+ toLayoutBox(child)->markForPaginationRelayoutIfNeeded(layouter);
if (child->isTableSection()) {
LayoutTableSection* section = toLayoutTableSection(child);
if (m_columnLogicalWidthChanged)
@@ -1252,7 +1252,7 @@ int LayoutTable::baselinePosition(FontBaseline baselineType, bool firstLine, Lin
return baseline;
}
- return RenderBox::baselinePosition(baselineType, firstLine, direction, linePositionMode);
+ return LayoutBox::baselinePosition(baselineType, firstLine, direction, linePositionMode);
}
int LayoutTable::inlineBlockBaseline(LineDirectionMode) const
@@ -1314,8 +1314,8 @@ bool LayoutTable::nodeAtPoint(const HitTestRequest& request, HitTestResult& resu
// Check kids first.
if (!hasOverflowClip() || locationInContainer.intersects(overflowClipRect(adjustedLocation))) {
for (LayoutObject* child = lastChild(); child; child = child->previousSibling()) {
- if (child->isBox() && !toRenderBox(child)->hasSelfPaintingLayer() && (child->isTableSection() || child->isTableCaption())) {
- LayoutPoint childPoint = flipForWritingModeForChild(toRenderBox(child), adjustedLocation);
+ if (child->isBox() && !toLayoutBox(child)->hasSelfPaintingLayer() && (child->isTableSection() || child->isTableCaption())) {
+ LayoutPoint childPoint = flipForWritingModeForChild(toLayoutBox(child), adjustedLocation);
if (child->nodeAtPoint(request, result, locationInContainer, childPoint, action)) {
updateHitTestResult(result, toLayoutPoint(locationInContainer.point() - childPoint));
return true;
« no previous file with comments | « Source/core/layout/LayoutTable.h ('k') | Source/core/layout/LayoutTableAlgorithmFixed.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698