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

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

Issue 2261663002: Disallow cast/implicit conversion from LayoutUnit to int/unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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/LayoutFieldset.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp b/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
index 1af7515adb104d99aa17dda22498d3289939bd56..93b43a8cf4a1d18ce98c3a02bc47b474edc5acb4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFieldset.cpp
@@ -43,7 +43,7 @@ void LayoutFieldset::computePreferredLogicalWidths()
{
LayoutBlockFlow::computePreferredLogicalWidths();
if (LayoutBox* legend = findInFlowLegend()) {
- int legendMinWidth = legend->minPreferredLogicalWidth();
+ int legendMinWidth = legend->minPreferredLogicalWidth().toInt();
Length legendMarginLeft = legend->style()->marginLeft();
Length legendMarginRight = legend->style()->marginRight();

Powered by Google App Engine
This is Rietveld 408576698