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

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

Issue 2131303003: Do not use the fixed height for HTML select element if appearance is none. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 3rd rebase Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/select/menulist-appearance-none.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
index af5a325320d06d0f4df1d2dccd644c7f838f081e..842318f5db836237b6569f3b770afbefdf36a431 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
@@ -263,7 +263,8 @@ void LayoutMenuList::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth,
void LayoutMenuList::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop,
LogicalExtentComputedValues& computedValues) const
{
- logicalHeight = m_innerBlockHeight + borderAndPaddingHeight();
+ if (style()->hasAppearance())
+ logicalHeight = m_innerBlockHeight + borderAndPaddingHeight();
LayoutBox::computeLogicalHeight(logicalHeight, logicalTop, computedValues);
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/select/menulist-appearance-none.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698