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

Unified Diff: Source/core/layout/svg/line/SVGRootInlineBox.cpp

Issue 1043643002: Switch line layout to LayoutUnit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More TestExpectations tweaks Created 5 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/layout/svg/line/SVGRootInlineBox.h ('k') | Source/core/paint/EllipsisBoxPainter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/line/SVGRootInlineBox.cpp
diff --git a/Source/core/layout/svg/line/SVGRootInlineBox.cpp b/Source/core/layout/svg/line/SVGRootInlineBox.cpp
index c532e01c6df70851759f2001b94bcde705283060..b0fb639cb685c752133b2e5dd934d0e1cca0a1e0 100644
--- a/Source/core/layout/svg/line/SVGRootInlineBox.cpp
+++ b/Source/core/layout/svg/line/SVGRootInlineBox.cpp
@@ -65,15 +65,15 @@ void SVGRootInlineBox::computePerCharacterLayoutInformation()
// Perform SVG text layout phase four
// Position & resize all SVGInlineText/FlowBoxes in the inline box tree, resize the root box as well as the LayoutSVGText parent block.
- FloatRectWillBeLayoutRect childRect;
+ LayoutRect childRect;
layoutChildBoxes(this, &childRect);
layoutRootBox(childRect);
}
-void SVGRootInlineBox::layoutChildBoxes(InlineFlowBox* start, FloatRectWillBeLayoutRect* childRect)
+void SVGRootInlineBox::layoutChildBoxes(InlineFlowBox* start, LayoutRect* childRect)
{
for (InlineBox* child = start->firstChild(); child; child = child->nextOnLine()) {
- FloatRectWillBeLayoutRect boxRect;
+ LayoutRect boxRect;
if (child->isSVGInlineTextBox()) {
ASSERT(child->layoutObject().isSVGInlineText());
@@ -102,14 +102,14 @@ void SVGRootInlineBox::layoutChildBoxes(InlineFlowBox* start, FloatRectWillBeLay
}
}
-void SVGRootInlineBox::layoutRootBox(const FloatRectWillBeLayoutRect& childRect)
+void SVGRootInlineBox::layoutRootBox(const LayoutRect& childRect)
{
LayoutBlockFlow& parentBlock = block();
// Finally, assign the root block position, now that all content is laid out.
// FIXME: the call to enclosingLayoutRect() below is temporary and should be removed once
// the transition to LayoutUnit-based types is complete (crbug.com/321237)
- LayoutRect boundingRect = childRect.enclosingLayoutRect();
+ LayoutRect boundingRect = enclosingLayoutRect(childRect);
parentBlock.setLocation(boundingRect.location());
parentBlock.setSize(boundingRect.size());
« no previous file with comments | « Source/core/layout/svg/line/SVGRootInlineBox.h ('k') | Source/core/paint/EllipsisBoxPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698