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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSelectElement.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/html/HTMLSelectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
index cb2276bd0603e68a3d13dfbb0b2d1ba905d4d488..fec711eb6ea20d6377546c6fd7cf5ed63f9bfbb1 100644
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
@@ -1919,14 +1919,14 @@ LayoutUnit HTMLSelectElement::clientPaddingLeft() const
{
if (layoutObject() && layoutObject()->isMenuList())
return toLayoutMenuList(layoutObject())->clientPaddingLeft();
- return 0;
+ return LayoutUnit();
}
LayoutUnit HTMLSelectElement::clientPaddingRight() const
{
if (layoutObject() && layoutObject()->isMenuList())
return toLayoutMenuList(layoutObject())->clientPaddingRight();
- return 0;
+ return LayoutUnit();
}
void HTMLSelectElement::popupDidHide()
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698