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

Issue 2275323003: Fix position of dictionary pop-up for <iframe>. (Closed)

Created:
4 years, 3 months ago by EhsanK
Modified:
4 years, 3 months ago
Reviewers:
bokan, dcheng
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix position of dictionary pop-up for <iframe>. In blink, we convert the string position to root frame and then convert to AppKit coordinates by inverting y-axis. To do so, we must always use FrameView::height() of the root frame rather than that of the LocalFrame. BUG=640353 Committed: https://crrev.com/cf7f50ad0c94d0c134c3b6e975c5b217ac4ace30 Cr-Commit-Position: refs/heads/master@{#414814}

Patch Set 1 #

Patch Set 2 : Added a WebViewTest #

Total comments: 5

Patch Set 3 : Addressing bokan@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -1 line) Patch
M third_party/WebKit/Source/web/mac/WebSubstringUtil.mm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (20 generated)
EhsanK
Please take a look.
4 years, 3 months ago (2016-08-25 19:27:26 UTC) #9
sky
I'm not a good reviewer for blink code. Please pick a more local owner.
4 years, 3 months ago (2016-08-25 20:23:49 UTC) #10
EhsanK
Daniel, could you please take a look, or suggest a different reviewer? Thanks.
4 years, 3 months ago (2016-08-25 20:28:38 UTC) #12
dcheng
bokan@ might be a good reviewer =)
4 years, 3 months ago (2016-08-25 20:41:39 UTC) #14
bokan
Change looks fine, can we add a test?
4 years, 3 months ago (2016-08-26 15:31:01 UTC) #15
EhsanK
Thanks David! I figured adding a test to WebViewTest right next to the original test ...
4 years, 3 months ago (2016-08-26 19:00:26 UTC) #18
bokan
Thanks, lgtm % nits https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode3205 third_party/WebKit/Source/web/tests/WebViewTest.cpp:3205: URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL.c_str()), WebString::fromUTF8("visible_iframe.html")); I don't think ...
4 years, 3 months ago (2016-08-26 19:10:31 UTC) #19
EhsanK
Thanks David for the reviews! I will CQ after dry-run. https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode3205 ...
4 years, 3 months ago (2016-08-26 20:14:49 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2275323003/40001
4 years, 3 months ago (2016-08-26 20:16:07 UTC) #27
bokan
https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode3205 third_party/WebKit/Source/web/tests/WebViewTest.cpp:3205: URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL.c_str()), WebString::fromUTF8("visible_iframe.html")); On 2016/08/26 20:14:48, EhsanK wrote: > On ...
4 years, 3 months ago (2016-08-26 20:23:19 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-26 21:35:41 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 21:38:26 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cf7f50ad0c94d0c134c3b6e975c5b217ac4ace30
Cr-Commit-Position: refs/heads/master@{#414814}

Powered by Google App Engine
This is Rietveld 408576698