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

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

Issue 1660863002: Force all LayoutUnit construction to be explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also fix LayoutRectTest.cpp Created 4 years, 10 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/LineWidth.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/LineWidth.cpp b/third_party/WebKit/Source/core/layout/line/LineWidth.cpp
index ce039c944ea3d090f84cd15c4e2b345d5a671c92..c69d9e493406a3d82dfb41b85c40ebaf4d94feef 100644
--- a/third_party/WebKit/Source/core/layout/line/LineWidth.cpp
+++ b/third_party/WebKit/Source/core/layout/line/LineWidth.cpp
@@ -157,7 +157,7 @@ void LineWidth::wrapNextToShapeOutside(bool isFirstLine)
newLineTop++;
}
- updateLineDimension(newLineTop, newLineWidth, newLineLeft, newLineRight);
+ updateLineDimension(newLineTop, LayoutUnit(newLineWidth), newLineLeft, newLineRight);
}
void LineWidth::fitBelowFloats(bool isFirstLine)
@@ -187,7 +187,7 @@ void LineWidth::fitBelowFloats(bool isFirstLine)
if (newLineWidth >= m_uncommittedWidth)
break;
}
- updateLineDimension(lastFloatLogicalBottom, newLineWidth, newLineLeft, newLineRight);
+ updateLineDimension(lastFloatLogicalBottom, LayoutUnit(newLineWidth), newLineLeft, newLineRight);
}
void LineWidth::computeAvailableWidthFromLeftAndRight()

Powered by Google App Engine
This is Rietveld 408576698