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); |
} |