| Index: Source/core/editing/Editor.cpp
|
| diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
|
| index 2414b6525e8db3143cbade4554f5c20f031421a3..41c48c5c1f82c348a6982729c357d9ebf2e45db7 100644
|
| --- a/Source/core/editing/Editor.cpp
|
| +++ b/Source/core/editing/Editor.cpp
|
| @@ -1086,11 +1086,11 @@ IntRect Editor::firstRectForRange(const EphemeralRange& range) const
|
| ASSERT(range.isNotNull());
|
|
|
| IntRect startCaretRect = RenderedPosition(VisiblePosition(range.startPosition()).deepEquivalent(), TextAffinity::Downstream).absoluteRect(&extraWidthToEndOfLine);
|
| - if (startCaretRect == LayoutRect())
|
| + if (startCaretRect.isEmpty())
|
| return IntRect();
|
|
|
| IntRect endCaretRect = RenderedPosition(VisiblePosition(range.endPosition()).deepEquivalent(), TextAffinity::Upstream).absoluteRect();
|
| - if (endCaretRect == LayoutRect())
|
| + if (endCaretRect.isEmpty())
|
| return IntRect();
|
|
|
| if (startCaretRect.y() == endCaretRect.y()) {
|
|
|