Index: Source/core/editing/Editor.cpp |
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp |
index a042c8226e69d676663fb34245f313ea36c33576..97587162aaced7ef78b733da6f35638cd6f89ab3 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()) { |