Index: third_party/WebKit/Source/web/mac/WebSubstringUtil.mm |
diff --git a/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm b/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm |
index aee528403806d9ba04e35ccc39f86ea209b24889..c32db74669ef2c763a1399629e7f4166298cc9fb 100644 |
--- a/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm |
+++ b/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm |
@@ -123,7 +123,7 @@ WebPoint getBaselinePoint(FrameView* frameView, const EphemeralRange& range, NSA |
// TODO(shuchen): Support page-zoom for getting the baseline point. |
IntRect stringRect = frameView->contentsToRootFrame(createRange(range)->boundingBox()); |
IntPoint stringPoint = stringRect.minXMaxYCorner(); |
- stringPoint.setY(frameView->height() - stringPoint.y()); |
+ stringPoint.setY(frameView->root()->height() - stringPoint.y()); |
// Adjust for the font's descender. AppKit wants the baseline point. |
if ([string length]) { |