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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineBox.cpp

Issue 1647313003: Continue converting to explicit LayoutUnit constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicitContstructors
Patch Set: Add TODO 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/line/InlineBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
index fceffdfd42f60992b4c009c0ef6e49f2ee05ca4d..d07c203204359f08a871b8f826515b7569cea595 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
@@ -150,7 +150,7 @@ LayoutUnit InlineBox::logicalHeight() const
ASSERT(isInlineFlowBox());
LineLayoutBoxModel flowObject = boxModelObject();
const FontMetrics& fontMetrics = lineLayoutItem().style(isFirstLineStyle())->fontMetrics();
- LayoutUnit result = fontMetrics.height();
+ LayoutUnit result(fontMetrics.height());
if (parent())
result += flowObject.borderAndPaddingLogicalHeight();
return result;
@@ -320,7 +320,7 @@ LayoutUnit InlineBox::placeEllipsisBox(bool, LayoutUnit, LayoutUnit, LayoutUnit,
{
// Use -1 to mean "we didn't set the position."
truncatedWidth += logicalWidth();
- return -1;
+ return LayoutUnit(-1);
}
void InlineBox::clearKnownToHaveNoOverflow()

Powered by Google App Engine
This is Rietveld 408576698