| 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 1bf8f99383b4750b86423529cb475880d4a7d2ab..76de7672f6fa11cd5ce43a18ecb88cb44087ff18 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
|
| @@ -155,7 +155,9 @@ void LayoutMenuList::styleDidChange(StyleDifference diff,
|
| }
|
|
|
| void LayoutMenuList::updateInnerBlockHeight() {
|
| - m_innerBlockHeight = style()->getFontMetrics().height() +
|
| + const SimpleFontData* fontData = style()->font().primaryFont();
|
| + DCHECK(fontData);
|
| + m_innerBlockHeight = (fontData ? fontData->getFontMetrics().height() : 0) +
|
| m_innerBlock->borderAndPaddingHeight();
|
| }
|
|
|
|
|