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

Unified Diff: Source/core/layout/LayoutFieldset.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/LayoutFieldset.h ('k') | Source/core/layout/LayoutFlowThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutFieldset.cpp
diff --git a/Source/core/layout/LayoutFieldset.cpp b/Source/core/layout/LayoutFieldset.cpp
index f4638f16b3a25a1d4a265ccafd40b79f2ad9d452..2e76a872ab47e428898b4e343bbffbc5d13a40a6 100644
--- a/Source/core/layout/LayoutFieldset.cpp
+++ b/Source/core/layout/LayoutFieldset.cpp
@@ -46,7 +46,7 @@ LayoutFieldset::LayoutFieldset(Element* element)
void LayoutFieldset::computePreferredLogicalWidths()
{
RenderBlockFlow::computePreferredLogicalWidths();
- if (RenderBox* legend = findLegend()) {
+ if (LayoutBox* legend = findLegend()) {
int legendMinWidth = legend->minPreferredLogicalWidth();
Length legendMarginLeft = legend->style()->marginLeft();
@@ -64,7 +64,7 @@ void LayoutFieldset::computePreferredLogicalWidths()
LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope&)
{
- RenderBox* legend = findLegend();
+ LayoutBox* legend = findLegend();
if (legend) {
if (relayoutChildren)
legend->setNeedsLayoutAndFullPaintInvalidation();
@@ -126,14 +126,14 @@ LayoutObject* LayoutFieldset::layoutSpecialExcludedChild(bool relayoutChildren,
return legend;
}
-RenderBox* LayoutFieldset::findLegend(FindLegendOption option) const
+LayoutBox* LayoutFieldset::findLegend(FindLegendOption option) const
{
for (LayoutObject* legend = firstChild(); legend; legend = legend->nextSibling()) {
if (option == IgnoreFloatingOrOutOfFlow && legend->isFloatingOrOutOfFlowPositioned())
continue;
if (isHTMLLegendElement(legend->node()))
- return toRenderBox(legend);
+ return toLayoutBox(legend);
}
return 0;
}
« no previous file with comments | « Source/core/layout/LayoutFieldset.h ('k') | Source/core/layout/LayoutFlowThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698