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

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

Issue 1656743002: Removing more implicit LayoutUnit construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix additional test 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/LayoutSlider.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutSlider.cpp b/third_party/WebKit/Source/core/layout/LayoutSlider.cpp
index b6d305f479729b991885a282a55b0a0b6df37bf1..de888c90a4d56e5311ff922d922cff0891988ba1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutSlider.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutSlider.cpp
@@ -54,7 +54,7 @@ int LayoutSlider::baselinePosition(FontBaseline, bool /*firstLine*/, LineDirecti
void LayoutSlider::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const
{
- maxLogicalWidth = defaultTrackLength * style()->effectiveZoom();
+ maxLogicalWidth = LayoutUnit(defaultTrackLength * style()->effectiveZoom());
if (!style()->width().hasPercent())
minLogicalWidth = maxLogicalWidth;
}

Powered by Google App Engine
This is Rietveld 408576698