| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index 6c86ce92d863e140f42445988c3325b06ed7d0c0..f105edc2825663bfd538fe22d6e9d6e55f7c2184 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -4531,7 +4531,9 @@ LayoutRect LayoutBox::localCaretRect(InlineBox* box,
|
| // giant tall-as-window insertion point
|
| //
|
| // FIXME: ignoring :first-line, missing good reason to take care of
|
| - LayoutUnit fontHeight = LayoutUnit(style()->getFontMetrics().height());
|
| + const SimpleFontData* fontData = style()->font().primaryFont();
|
| + LayoutUnit fontHeight =
|
| + LayoutUnit(fontData ? fontData->getFontMetrics().height() : 0);
|
| if (fontHeight > rect.height() || (!isAtomicInlineLevel() && !isTable()))
|
| rect.setHeight(fontHeight);
|
|
|
|
|