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

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

Issue 1656743002: Removing more implicit LayoutUnit construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/LayoutListBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutListBox.cpp b/third_party/WebKit/Source/core/layout/LayoutListBox.cpp
index 7d4a09b205f2bd9fce82466576bdc6bfb04c36a1..13548dbbca62a7a61840c24f7da4b12ba5918e8b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutListBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutListBox.cpp
@@ -140,7 +140,7 @@ void LayoutListBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, L
{
LayoutBlockFlow::computeIntrinsicLogicalWidths(minLogicalWidth, maxLogicalWidth);
if (style()->width().hasPercent())
- minLogicalWidth = 0;
+ minLogicalWidth = LayoutUnit();
}
void LayoutListBox::scrollToRect(const LayoutRect& rect)

Powered by Google App Engine
This is Rietveld 408576698