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

Unified Diff: Source/core/layout/LayoutTreeAsText.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/LayoutThemeDefault.cpp ('k') | Source/core/layout/MultiColumnFragmentainerGroup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTreeAsText.cpp
diff --git a/Source/core/layout/LayoutTreeAsText.cpp b/Source/core/layout/LayoutTreeAsText.cpp
index de3f219d340412870c89c9d92741e3e14bdd75c6..990cafa62da78e7608436309bb3d58df06074b92 100644
--- a/Source/core/layout/LayoutTreeAsText.cpp
+++ b/Source/core/layout/LayoutTreeAsText.cpp
@@ -206,7 +206,7 @@ void LayoutTreeAsText::writeLayoutObject(TextStream& ts, const LayoutObject& o,
const LayoutTableCell& cell = toLayoutTableCell(o);
r = LayoutRect(cell.location().x(), cell.location().y() + cell.intrinsicPaddingBefore(), cell.size().width(), cell.size().height() - cell.intrinsicPaddingBefore() - cell.intrinsicPaddingAfter());
} else if (o.isBox()) {
- r = toRenderBox(&o)->frameRect();
+ r = toLayoutBox(&o)->frameRect();
}
// FIXME: Temporary in order to ensure compatibility with existing layout test results.
@@ -559,10 +559,10 @@ static void write(TextStream& ts, Layer& layer,
ts << " scrollX " << adjustedScrollOffset.x();
if (adjustedScrollOffset.y())
ts << " scrollY " << adjustedScrollOffset.y();
- if (layer.renderBox() && layer.renderBox()->pixelSnappedClientWidth() != layer.renderBox()->pixelSnappedScrollWidth())
- ts << " scrollWidth " << layer.renderBox()->pixelSnappedScrollWidth();
- if (layer.renderBox() && layer.renderBox()->pixelSnappedClientHeight() != layer.renderBox()->pixelSnappedScrollHeight())
- ts << " scrollHeight " << layer.renderBox()->pixelSnappedScrollHeight();
+ if (layer.layoutBox() && layer.layoutBox()->pixelSnappedClientWidth() != layer.layoutBox()->pixelSnappedScrollWidth())
+ ts << " scrollWidth " << layer.layoutBox()->pixelSnappedScrollWidth();
+ if (layer.layoutBox() && layer.layoutBox()->pixelSnappedClientHeight() != layer.layoutBox()->pixelSnappedScrollHeight())
+ ts << " scrollHeight " << layer.layoutBox()->pixelSnappedScrollHeight();
}
if (paintPhase == LayerPaintPhaseBackground)
@@ -703,7 +703,7 @@ static void writeSelection(TextStream& ts, const LayoutObject* o)
}
}
-static String externalRepresentation(RenderBox* renderer, LayoutAsTextBehavior behavior)
+static String externalRepresentation(LayoutBox* renderer, LayoutAsTextBehavior behavior)
{
TextStream ts;
if (!renderer->hasLayer())
@@ -726,9 +726,9 @@ String externalRepresentation(LocalFrame* frame, LayoutAsTextBehavior behavior)
PrintContext printContext(frame);
if (behavior & LayoutAsTextPrintingMode)
- printContext.begin(toRenderBox(renderer)->size().width().toFloat());
+ printContext.begin(toLayoutBox(renderer)->size().width().toFloat());
- return externalRepresentation(toRenderBox(renderer), behavior);
+ return externalRepresentation(toLayoutBox(renderer), behavior);
}
String externalRepresentation(Element* element, LayoutAsTextBehavior behavior)
@@ -742,7 +742,7 @@ String externalRepresentation(Element* element, LayoutAsTextBehavior behavior)
if (!renderer || !renderer->isBox())
return String();
- return externalRepresentation(toRenderBox(renderer), behavior | LayoutAsTextShowAllLayers);
+ return externalRepresentation(toLayoutBox(renderer), behavior | LayoutAsTextShowAllLayers);
}
static void writeCounterValuesFromChildren(TextStream& stream, LayoutObject* parent, bool& isFirstCounter)
« no previous file with comments | « Source/core/layout/LayoutThemeDefault.cpp ('k') | Source/core/layout/MultiColumnFragmentainerGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698