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

Issue 2070563002: Seperate DOMVisualViewport from Blink's VisualViewport class (Closed)

Created:
4 years, 6 months ago by ymalik
Modified:
4 years, 5 months ago
Reviewers:
bokan, bashi
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Seperate DOMVisualViewport from Blink's VisualViewport class DOMVisualViewport represents the things exposed via the VisualViewportAPI. This is what's returned from window.visualViewport. It queries the Blink's VisualViewport for the main frame and returns sane values for iframes. BUG=604928 Committed: https://crrev.com/81dd83a5bae93da969e909c58ed3ecb50d50100c Cr-Commit-Position: refs/heads/master@{#401616}

Patch Set 1 #

Total comments: 14

Patch Set 2 : address review comments #

Total comments: 1

Patch Set 3 : nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -65 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/resources/window-property-collector.js View 1 chunk +0 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/frame/DOMVisualViewport.h View 1 2 chunks +20 lines, -18 lines 0 comments Download
A third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp View 1 1 chunk +140 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindow.h View 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.h View 1 2 4 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 8 chunks +18 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Window.idl View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 24 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2070563002/1
4 years, 6 months ago (2016-06-15 14:25:59 UTC) #2
ymalik
4 years, 6 months ago (2016-06-15 14:26:29 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/246851)
4 years, 6 months ago (2016-06-15 15:57:55 UTC) #7
bokan
https://codereview.chromium.org/2070563002/diff/1/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt File third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt (right): https://codereview.chromium.org/2070563002/diff/1/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt#newcode107 third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt:107: FAIL window.cached_visualViewport.pageScale should be 0. Was 1. Lets just ...
4 years, 6 months ago (2016-06-16 07:22:44 UTC) #8
ymalik
PTAL :) https://codereview.chromium.org/2070563002/diff/1/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt File third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt (right): https://codereview.chromium.org/2070563002/diff/1/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt#newcode107 third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt:107: FAIL window.cached_visualViewport.pageScale should be 0. Was 1. ...
4 years, 6 months ago (2016-06-20 15:52:56 UTC) #9
bokan
lgtm! (% comment nit) https://codereview.chromium.org/2070563002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html File third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html (right): https://codereview.chromium.org/2070563002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html#newcode26 third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html:26: // verify visualViewport dimensions on ...
4 years, 6 months ago (2016-06-22 18:29:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2070563002/40001
4 years, 6 months ago (2016-06-22 19:52:41 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/243673)
4 years, 6 months ago (2016-06-22 23:03:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2070563002/40001
4 years, 6 months ago (2016-06-23 15:55:06 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-23 15:59:31 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/81dd83a5bae93da969e909c58ed3ecb50d50100c Cr-Commit-Position: refs/heads/master@{#401616}
4 years, 6 months ago (2016-06-23 16:00:58 UTC) #21
bashi
https://codereview.chromium.org/2070563002/diff/40001/third_party/WebKit/Source/core/frame/Window.idl File third_party/WebKit/Source/core/frame/Window.idl (right): https://codereview.chromium.org/2070563002/diff/40001/third_party/WebKit/Source/core/frame/Window.idl#newcode132 third_party/WebKit/Source/core/frame/Window.idl:132: [RuntimeEnabled=VisualViewportAPI] readonly attribute DOMVisualViewport? visualViewport; s/DOMVisualViewport/VisualViewport/ ? "[ImplementedAs=FooBar] interface ...
4 years, 5 months ago (2016-07-11 09:17:35 UTC) #23
ymalik
4 years, 5 months ago (2016-07-11 17:14:56 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2070563002/diff/40001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/frame/Window.idl (right):

https://codereview.chromium.org/2070563002/diff/40001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/frame/Window.idl:132:
[RuntimeEnabled=VisualViewportAPI] readonly attribute DOMVisualViewport?
visualViewport;
On 2016/07/11 09:17:35, bashi1 wrote:
> s/DOMVisualViewport/VisualViewport/ ?
> 
> "[ImplementedAs=FooBar] interface Foo {}" means the name of the interface is
> "Foo" but its implementation inside Blink is "FooBar".
> 
> If this is correct, core/frame/VisualViewport.idl should be
> core/frame/DOMVisualViewport.idl ?

Thanks. It should be VisualViewport.

Fix here: https://codereview.chromium.org/2136113002/

Powered by Google App Engine
This is Rietveld 408576698