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

Issue 1424593002: Update layout tests to use internals.visualViewport APIs. (Closed)

Created:
5 years, 2 months ago by ymalik
Modified:
5 years, 1 month ago
Reviewers:
bokan, Rick Byers
CC:
chromium-reviews, caseq+blink_chromium.org, vivekg, vivekg_samsung, yurys+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, Inactive, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update layout tests to use inernals.visualViewport APIs. This CL adds the following methods to Internals.cpp for tests that need the visual viewport scroll position and dimensions: visualViewportHeight, visualViewportWidth, visualViewportScrollX, visualViewportScrollY. This is the initial CL to fix the LayoutTests that would break if the corresponding window properties were relative to the visual viewport. This CL branched from another CL to make shipping this window API change easier. Original review CL: https://codereview.chromium.org/1415513002 TBR=rbyers@chromium.org BUG=489206 Committed: https://crrev.com/8e61efca851565188257eb9f547d601f8d90e938 Cr-Commit-Position: refs/heads/master@{#355926}

Patch Set 1 #

Patch Set 2 : undo delete test that depends on "inert-visual-viewport" flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -353 lines) Patch
M third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom.html View 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom-scroll-bubble.html View 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom-scroll-bubble-expected.txt View 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/scroll-in-scaled-page-with-overflow-hidden.html View 1 chunk +5 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/scroll-in-scaled-page-with-overflow-hidden-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-fling-with-page-scale.html View 8 chunks +1 line, -62 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/touch/gesture/touch-gesture-fling-with-page-scale-expected.txt View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/history/scroll-restoration/scroll-restoration-scale-not-impacted.html View 3 chunks +5 lines, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/scroll-behavior/main-frame-pinch-scrollBy.html View 1 chunk +0 lines, -90 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/scroll-behavior/main-frame-pinch-scrollBy-expected.txt View 1 chunk +0 lines, -9 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/scroll-behavior/main-frame-pinch-scrollTo.html View 1 chunk +0 lines, -90 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/scroll-behavior/main-frame-pinch-scrollTo-expected.txt View 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/scrolling/editor-command-scroll-page-scale.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/scrolling/editor-command-scroll-page-scale-expected.txt View 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/scrolling/keyboard-scroll-page-scale.html View 1 chunk +17 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/scrolling/keyboard-scroll-page-scale-expected.txt View 1 chunk +13 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/highlight/highlight-node-scaled-and-scrolled.html View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
ymalik
Hey David, just need your stamp here. You already reviewed these changes in the original ...
5 years, 2 months ago (2015-10-23 18:49:54 UTC) #3
ymalik
+Rick I decided to break my original CL to make shipping it easier. These changes ...
5 years, 2 months ago (2015-10-23 18:52:31 UTC) #5
bokan
lgtm I think if these changes have already been stamped, it's ok to use TBR= ...
5 years, 2 months ago (2015-10-23 19:25:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424593002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424593002/20001
5 years, 2 months ago (2015-10-23 20:28:35 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-23 23:44:50 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/8e61efca851565188257eb9f547d601f8d90e938 Cr-Commit-Position: refs/heads/master@{#355926}
5 years, 2 months ago (2015-10-23 23:45:27 UTC) #11
Rick Byers
5 years, 1 month ago (2015-10-26 14:04:10 UTC) #12
Message was sent while issue was closed.
LGTM.

And yes, TBR was fine IMHO given there was no real change to this code after I
reviewed it.

Powered by Google App Engine
This is Rietveld 408576698