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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp

Issue 2536453002: Rename some functions about layout locations (Closed)
Patch Set: Add test Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
index e022e8a84501f01afb4ba306a574abc37eb805cd..9c81ced36c501b6519ad5a6e46cc37e97a742721 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
@@ -439,7 +439,7 @@ static void writeTextRun(TextStream& ts,
// conversion to floating point. :(
int x = run.x().toInt();
int y = run.y().toInt();
- int logicalWidth = (run.left() + run.logicalWidth()).ceil() - x;
+ int logicalWidth = (run.x() + run.logicalWidth()).ceil() - x;
// FIXME: Table cell adjustment is temporary until results can be updated.
if (o.containingBlock()->isTableCell())

Powered by Google App Engine
This is Rietveld 408576698