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

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

Issue 1651703002: More explicit LayoutUnit conversions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@evenMoarConstructors
Patch Set: Traits vs Properties vs Pandas Created 4 years, 11 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
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 9cf1038f4d9f51404dae61d7b0b12da10d07589f..238d82d44373be06752d70f6f059cd5b64daab71 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
@@ -215,8 +215,8 @@ void LayoutTreeAsText::writeLayoutObject(TextStream& ts, const LayoutObject& o,
r.move(0, -toLayoutTableCell(o.containingBlock())->intrinsicPaddingBefore());
if (o.isLayoutView()) {
- r.setWidth(toLayoutView(o).viewWidth(IncludeScrollbars));
- r.setHeight(toLayoutView(o).viewHeight(IncludeScrollbars));
+ r.setWidth(LayoutUnit(toLayoutView(o).viewWidth(IncludeScrollbars)));
+ r.setHeight(LayoutUnit(toLayoutView(o).viewHeight(IncludeScrollbars)));
}
ts << " " << r;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextControl.cpp ('k') | third_party/WebKit/Source/core/layout/line/EllipsisBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698