| Index: third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| index 8920eabe57c990ce87f7fb7ec84b112a32f82385..5b8de4d5aca83c20aaefd844e32be4bea10545f3 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| @@ -755,6 +755,9 @@ LayoutRect LayoutText::localCaretRect(InlineBox* inlineBox,
|
| // Get caret height from a font of character.
|
| const ComputedStyle* styleToUse =
|
| caretBox->getLineLayoutItem().style(caretBox->isFirstLineStyle());
|
| + if (!styleToUse->font().primaryFont())
|
| + return LayoutRect();
|
| +
|
| int height = styleToUse->font().primaryFont()->getFontMetrics().height();
|
| int top = caretBox->logicalTop().toInt();
|
|
|
|
|