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 04b1aec36161d85c16773f5a20dd9be33fd77105..a5e44c0a31269e73925e2c9a32f5cb23dcb53564 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp |
@@ -80,8 +80,6 @@ void LayoutMenuList::createInnerBlock() |
adjustInnerStyle(); |
LayoutFlexibleBox::addChild(m_innerBlock); |
- |
- m_innerBlockHeight = style()->getFontMetrics().height() + m_innerBlock->borderAndPaddingHeight(); |
} |
void LayoutMenuList::adjustInnerStyle() |
@@ -147,6 +145,12 @@ void LayoutMenuList::styleDidChange(StyleDifference diff, const ComputedStyle* o |
m_buttonText->setStyle(mutableStyle()); |
adjustInnerStyle(); |
+ updateInnerBlockHeight(); |
+} |
+ |
+void LayoutMenuList::updateInnerBlockHeight() |
+{ |
+ m_innerBlockHeight = style()->getFontMetrics().height() + m_innerBlock->borderAndPaddingHeight(); |
} |
void LayoutMenuList::updateOptionsWidth() const |