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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextControl.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/LayoutTextControl.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextControl.cpp b/third_party/WebKit/Source/core/layout/LayoutTextControl.cpp
index decfe8c978bfd09b614088d0c611e6a6fa3575c9..2ea7fdd791a91b9d5012a6c0114b86f9ab797807 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextControl.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextControl.cpp
@@ -242,8 +242,8 @@ void LayoutTextControl::computePreferredLogicalWidths()
{
ASSERT(preferredLogicalWidthsDirty());
- m_minPreferredLogicalWidth = 0;
- m_maxPreferredLogicalWidth = 0;
+ m_minPreferredLogicalWidth = LayoutUnit();
+ m_maxPreferredLogicalWidth = LayoutUnit();
const ComputedStyle& styleToUse = styleRef();
if (styleToUse.logicalWidth().isFixed() && styleToUse.logicalWidth().value() >= 0)

Powered by Google App Engine
This is Rietveld 408576698