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

Issue 1416283006: Make window.scroll properties relative to the layout viewport by default. (Closed)

Created:
5 years, 1 month ago by ymalik
Modified:
5 years, 1 month ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make window.scroll properties relative to the layout viewport by default. This CL sets the inert-visual-viewport flag to true by default. The following APIs in the CSSOM spec are affected: scrollTo, scrollBy, innerWidth, innerHeight, scrollX, scrollY, element.scrollTop, element.scrollLeft, element.scrollIntoView. Intent-to-ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/mt1uciFuvWQ/ecQi0f8kCQAJ BUG=489206 Committed: https://crrev.com/f75faf53de4a5c59269143b6edbfc6dc40c7fb33 Cr-Commit-Position: refs/heads/master@{#358117}

Patch Set 1 #

Total comments: 15

Patch Set 2 : worked on review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -283 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/window-scaled-viewport-properties.html View 2 chunks +68 lines, -90 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/window-scaled-viewport-properties-expected.txt View 2 chunks +43 lines, -25 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/dom/window-inner-size-scaling.html View 1 chunk +0 lines, -16 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/dom/window-inner-size-scaling-expected.txt View 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html View 1 1 chunk +2 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html View 1 1 chunk +63 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 2 chunks +0 lines, -136 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
ymalik
@bokan Note that you've already LGTM-ed the layout tests here: https://codereview.chromium.org/1415513002/#ps200001
5 years, 1 month ago (2015-11-05 00:42:01 UTC) #3
ymalik
+aelias for content/public/android/javatests Please see the inline comment explaining the reason for the change.
5 years, 1 month ago (2015-11-05 00:43:41 UTC) #5
ymalik
https://codereview.chromium.org/1416283006/diff/1/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java File content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java (right): https://codereview.chromium.org/1416283006/diff/1/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#newcode50 content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java:50: + "<br/><p><span id=\"plain_text\">This is Plain Text One</span></p>" @aelias Making ...
5 years, 1 month ago (2015-11-05 00:49:08 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/1416283006/diff/1/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java File content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java (right): https://codereview.chromium.org/1416283006/diff/1/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#newcode50 content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java:50: + "<br/><p><span id=\"plain_text\">This is Plain Text One</span></p>" On 2015/11/05 ...
5 years, 1 month ago (2015-11-05 01:08:29 UTC) #7
ymalik
https://codereview.chromium.org/1416283006/diff/1/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java File content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java (right): https://codereview.chromium.org/1416283006/diff/1/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#newcode50 content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java:50: + "<br/><p><span id=\"plain_text\">This is Plain Text One</span></p>" On 2015/11/05 ...
5 years, 1 month ago (2015-11-05 02:12:06 UTC) #8
aelias_OOO_until_Jul13
Yes, I think I prefer it. These tests shouldn't have anything to do with pinch ...
5 years, 1 month ago (2015-11-05 03:26:24 UTC) #9
bokan
https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html File third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html (right): https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html#newcode33 third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html:33: <div style="position: fixed; bottom: 400px; right: 500px; z-index: 1"> ...
5 years, 1 month ago (2015-11-05 14:43:52 UTC) #10
ymalik
https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html File third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html (right): https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html#newcode33 third_party/WebKit/LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html:33: <div style="position: fixed; bottom: 400px; right: 500px; z-index: 1"> ...
5 years, 1 month ago (2015-11-05 15:57:02 UTC) #11
bokan
https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html File third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html (right): https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html#newcode42 third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html:42: eventSender.mouseScrollBy(0, -10); On 2015/11/05 15:57:01, ymalik1 wrote: > On ...
5 years, 1 month ago (2015-11-05 16:35:48 UTC) #12
ymalik
https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html File third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html (right): https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html#newcode51 third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html:51: finishJSTest(); On 2015/11/05 16:35:48, bokan wrote: > On 2015/11/05 ...
5 years, 1 month ago (2015-11-05 16:40:26 UTC) #13
bokan
lgtm, thanks. https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html File third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html (right): https://codereview.chromium.org/1416283006/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html#newcode51 third_party/WebKit/LayoutTests/fast/scroll-behavior/visual-viewport-scroll-no-onscroll-event.html:51: finishJSTest(); On 2015/11/05 16:40:26, ymalik1 wrote: > ...
5 years, 1 month ago (2015-11-05 17:02:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416283006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416283006/20001
5 years, 1 month ago (2015-11-05 17:50:28 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-05 20:15:54 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 20:16:30 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f75faf53de4a5c59269143b6edbfc6dc40c7fb33
Cr-Commit-Position: refs/heads/master@{#358117}

Powered by Google App Engine
This is Rietveld 408576698