|
|
DescriptionFix 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 #
Messages
Total messages: 32 (20 generated)
Description was changed from ========== t cl try Fix position of dictionary pop-up for <iframe>. When blink converts coordinates to AppKit coordinates it changes the point's y-coordinate to FrameView::height() - y which is correct for root frame. For <iframe> we should still use the root frame's FrameView::height() rather than using the <iframe>'s FrameView. BUG=640353 ========== to ========== Fix position of dictionary pop-up for <iframe>. When blink converts coordinates to AppKit coordinates it changes the point's y-coordinate to FrameView::height() - y which is correct for root frame. For <iframe> we should still use the root frame's FrameView::height() rather than using the <iframe>'s FrameView. BUG=640353 ==========
The CQ bit was checked by ekaramad@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Fix position of dictionary pop-up for <iframe>. When blink converts coordinates to AppKit coordinates it changes the point's y-coordinate to FrameView::height() - y which is correct for root frame. For <iframe> we should still use the root frame's FrameView::height() rather than using the <iframe>'s FrameView. BUG=640353 ========== to ========== 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 ==========
Description was changed from ========== 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 ========== to ========== 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 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
ekaramad@chromium.org changed reviewers: + sky@chromium.org
Please take a look.
I'm not a good reviewer for blink code. Please pick a more local owner.
ekaramad@chromium.org changed reviewers: + dcheng@chromium.org - sky@chromium.org
Daniel, could you please take a look, or suggest a different reviewer? Thanks.
dcheng@chromium.org changed reviewers: + bokan@chromium.org
bokan@ might be a good reviewer =)
Change looks fine, can we add a test?
The CQ bit was checked by ekaramad@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thanks David! I figured adding a test to WebViewTest right next to the original test for WebSubstringUtil should be a good idea. This one tests for <iframe> and will fail without the fix. PTAL
Thanks, lgtm % nits https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Sour... 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 you have to register iframe loads but I could be wrong. See if it works without this line. https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/web/tests/WebViewTest.cpp:3215: ASSERT_TRUE(!!result); Nit: no double-bang needed. Even better: ASSERT_NE(result, nullptr)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Thanks David for the reviews! I will CQ after dry-run. https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Sour... 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 19:10:31, bokan wrote: > I don't think you have to register iframe loads but I could be wrong. See if it > works without this line. Unfortunately, I can't remove it since this CHECK will fire if I do: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/testi... https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/web/tests/WebViewTest.cpp:3215: ASSERT_TRUE(!!result); On 2016/08/26 19:10:31, bokan wrote: > Nit: no double-bang needed. Even better: ASSERT_NE(result, nullptr) Thanks! Done.
The CQ bit was checked by ekaramad@chromium.org to run a CQ dry run
The CQ bit was unchecked by ekaramad@chromium.org
The CQ bit was checked by ekaramad@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from bokan@chromium.org Link to the patchset: https://codereview.chromium.org/2275323003/#ps40001 (title: "Addressing bokan@'s comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2275323003/diff/20001/third_party/WebKit/Sour... 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 2016/08/26 19:10:31, bokan wrote: > > I don't think you have to register iframe loads but I could be wrong. See if > it > > works without this line. > > Unfortunately, I can't remove it since this CHECK will fire if I do: > https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/testi... Ok, it's fine as-is, thanks for trying.
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/cf7f50ad0c94d0c134c3b6e975c5b217ac4ace30 Cr-Commit-Position: refs/heads/master@{#414814} |