Index: Source/core/editing/FrameSelection.cpp |
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp |
index 8863a3c8ef46838b472d7fd36c17b21516712458..68a830f352cda03541b0d79c02da19dea8160fba 100644 |
--- a/Source/core/editing/FrameSelection.cpp |
+++ b/Source/core/editing/FrameSelection.cpp |
@@ -1095,7 +1095,7 @@ bool FrameSelection::modify(EAlteration alter, SelectionDirection direction, Tex |
// FIXME: Maybe baseline would be better? |
static bool absoluteCaretY(const VisiblePosition &c, int &y) |
{ |
- IntRect rect = c.absoluteCaretBounds(); |
+ IntRect rect = absoluteCaretBoundsOf(c); |
if (rect.isEmpty()) |
return false; |
y = rect.y() + rect.height() / 2; |
@@ -1861,7 +1861,7 @@ void FrameSelection::revealSelection(const ScrollAlignment& alignment, RevealExt |
rect = LayoutRect(absoluteCaretBounds()); |
break; |
case RangeSelection: |
- rect = LayoutRect(revealExtentOption == RevealExtent ? VisiblePosition(extent()).absoluteCaretBounds() : enclosingIntRect(unclippedBounds())); |
+ rect = LayoutRect(revealExtentOption == RevealExtent ? absoluteCaretBoundsOf(VisiblePosition(extent())) : enclosingIntRect(unclippedBounds())); |
break; |
} |