Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: third_party/WebKit/Source/web/mac/WebSubstringUtil.mm

Issue 2275323003: Fix position of dictionary pop-up for <iframe>. (Closed)
Patch Set: Addressing bokan@'s comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698