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

Unified Diff: Source/core/layout/LayoutTreeAsText.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/LayoutTextCombine.cpp ('k') | Source/core/layout/line/AbstractInlineTextBox.h » ('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 b5a2d739b448e67ab5c2627039c72e48e3c7c3ee..8dc7c93b5ae6a51a6900a890fdca7c108dc7b303 100644
--- a/Source/core/layout/LayoutTreeAsText.cpp
+++ b/Source/core/layout/LayoutTreeAsText.cpp
@@ -410,7 +410,7 @@ static void writeTextRun(TextStream& ts, const LayoutText& o, const InlineTextBo
// to detect any changes caused by the conversion to floating point. :(
int x = run.x();
int y = run.y();
- int logicalWidth = ceilf(run.left() + run.logicalWidth()) - x;
+ int logicalWidth = (run.left() + run.logicalWidth()).ceil() - x;
// FIXME: Table cell adjustment is temporary until results can be updated.
if (o.containingBlock()->isTableCell())
« no previous file with comments | « Source/core/layout/LayoutTextCombine.cpp ('k') | Source/core/layout/line/AbstractInlineTextBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698