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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutMeter.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/LayoutMeter.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutMeter.cpp b/third_party/WebKit/Source/core/layout/LayoutMeter.cpp
index 209e03109da2a9d152a1c11b6655833baa145183..8cf7a3dffedd7d2dfc490da62e5ff712ff126390 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMeter.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutMeter.cpp
@@ -52,7 +52,7 @@ void LayoutMeter::updateLogicalWidth()
LayoutBox::updateLogicalWidth();
IntSize frameSize = LayoutTheme::theme().meterSizeForBounds(*this, pixelSnappedIntRect(frameRect()));
- setLogicalWidth(isHorizontalWritingMode() ? frameSize.width() : frameSize.height());
+ setLogicalWidth(LayoutUnit(isHorizontalWritingMode() ? frameSize.width() : frameSize.height()));
}
void LayoutMeter::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const
@@ -65,7 +65,7 @@ void LayoutMeter::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logi
else
frame.setWidth(computedValues.m_extent);
IntSize frameSize = LayoutTheme::theme().meterSizeForBounds(*this, pixelSnappedIntRect(frame));
- computedValues.m_extent = isHorizontalWritingMode() ? frameSize.height() : frameSize.width();
+ computedValues.m_extent = LayoutUnit(isHorizontalWritingMode() ? frameSize.height() : frameSize.width());
}
void LayoutMeter::updateFromElement()

Powered by Google App Engine
This is Rietveld 408576698