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

Issue 26472003: Fix improper scrollTop/Left usage in LayoutTests/ (Closed)

Created:
7 years, 2 months ago by tonikitoo_
Modified:
7 years, 2 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@issue_304768
Visibility:
Public.

Description

Fix improper scrollTop/Left usage in LayoutTests/ Rule of thumb here is: if in strict mode, documentElement element should be used to operate over scrollTop/Left properties. When in quirks mode, use 'body' element. CL fixes many layout tests caught by an UseCount/Console warning being added by https://codereview.chromium.org/26489005/ that were abusing the relaxed body.scrollTop/Left support Blink currently has. The exception is LayoutTests/jquery/offset.html, where jQuery on purpose uses both documentElement and body elements, for cross engine support. R=Julien Chaffraix, Dan Beam Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159195

Patch Set 1 : Fix improper scrollTop/Left usage in LayoutTests/ #

Total comments: 9

Patch Set 2 : Fix improper scrollTop/Left usage in LayoutTests/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -23 lines) Patch
M LayoutTests/editing/input/resources/reveal-utilities.js View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/resources/check-scroll-position-onload.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/mouse-cursor-multiframecur.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/events/touch/gesture/touch-gesture-noscroll-body.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/touch/gesture/touch-gesture-noscroll-body-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/http/tests/navigation/anchor-frames-cross-origin-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/navigation/anchor-frames-gbk-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/navigation/resources/frame-with-anchor-cross-origin.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/navigation/resources/frame-with-anchor-gbk.html View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
tonikitoo_
7 years, 2 months ago (2013-10-08 19:25:12 UTC) #1
Dan Beam
https://codereview.chromium.org/26472003/diff/3001/LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html File LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html (left): https://codereview.chromium.org/26472003/diff/3001/LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html#oldcode18 LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html:18: document.body.scrollLeft = 1; ^ i would maybe leave these ...
7 years, 2 months ago (2013-10-08 19:25:30 UTC) #2
tonikitoo_
https://codereview.chromium.org/26472003/diff/3001/LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html File LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html (left): https://codereview.chromium.org/26472003/diff/3001/LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html#oldcode18 LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html:18: document.body.scrollLeft = 1; On 2013/10/08 19:25:30, Dan Beam wrote: ...
7 years, 2 months ago (2013-10-08 19:52:32 UTC) #3
tonikitoo_
https://codereview.chromium.org/26472003/diff/3001/LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes-expected.txt File LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes-expected.txt (right): https://codereview.chromium.org/26472003/diff/3001/LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes-expected.txt#newcode9 LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes-expected.txt:9: PASS iframeStrict.contentDocument.body.scrollLeft is 4000 On 2013/10/08 19:52:32, tonikitoo_ wrote: ...
7 years, 2 months ago (2013-10-08 20:17:43 UTC) #4
Julien - ping for review
description: "jQuery on propose" (purpose I suppose) lgtm
7 years, 2 months ago (2013-10-08 23:47:25 UTC) #5
Dan Beam
lgtm
7 years, 2 months ago (2013-10-08 23:50:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/a1.gomes@sisa.samsung.com/26472003/11001
7 years, 2 months ago (2013-10-09 00:38:16 UTC) #7
commit-bot: I haz the power
7 years, 2 months ago (2013-10-09 04:51:26 UTC) #8
Message was sent while issue was closed.
Change committed as 159195

Powered by Google App Engine
This is Rietveld 408576698