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

Issue 146003002: Bindings for CSSOM View smooth scroll API (Closed)

Created:
6 years, 11 months ago by ajuma
Modified:
6 years, 6 months ago
CC:
blink-reviews, kojih, arv+blink, jsbell+bindings_chromium.org, sof, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive, Ian Vollick
Visibility:
Public.

Description

Bindings for CSSOM View smooth scroll API This adds custom bindings for Window.scroll, Window.scrollTo Window.scrollBy, Element.scrollLeft, and Element.scrollTop, needed for the CSSOM View smooth scroll API. More specifically: 1) An optional ScrollOptions argument is added to Window.scroll, Window.scrollTo, and Window.scrollBy. 2) The setter for Element.scrollLeft can now take a ScrollOptionsHorizontal dictionary instead of an int. 3) The setter for Element.scrollRight can now take a ScrollOptionsVertical dictionary instead of an int. These behavior changes are protected by a runtime flag. Spec: http://www.w3.org/TR/cssom-view/ Intent-to-implement: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/YLWs9N46XjQ/mK7rCJ26BqAJ BUG=243871 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166322

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -41 lines) Patch
A LayoutTests/fast/dom/Element/scrollTop-scrollLeft-setters.html View 1 1 chunk +76 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Element/scrollTop-scrollLeft-setters-expected.txt View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/window-scroll-arguments.html View 1 2 3 4 chunks +32 lines, -16 lines 0 comments Download
M LayoutTests/fast/dom/Window/window-scroll-arguments-expected.txt View 1 2 3 4 chunks +28 lines, -10 lines 0 comments Download
M LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/bindings.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8ElementCustom.cpp View 1 2 3 1 chunk +75 lines, -0 lines 0 comments Download
M Source/core/dom/Element.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 4 chunks +44 lines, -0 lines 0 comments Download
M Source/core/dom/Element.idl View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M Source/core/frame/DOMWindow.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/frame/DOMWindow.cpp View 1 2 3 3 chunks +27 lines, -3 lines 0 comments Download
M Source/core/frame/Window.idl View 1 2 3 1 chunk +11 lines, -3 lines 0 comments Download
M Source/platform/scroll/ScrollableArea.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollableArea.cpp View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
ajuma
6 years, 11 months ago (2014-01-27 01:39:28 UTC) #1
haraken
https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8ElementCustom.cpp File Source/bindings/v8/custom/V8ElementCustom.cpp (right): https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8ElementCustom.cpp#newcode43 Source/bindings/v8/custom/V8ElementCustom.cpp:43: void V8Element::scrollLeftAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) Why do you ...
6 years, 11 months ago (2014-01-27 01:44:12 UTC) #2
ajuma
https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8ElementCustom.cpp File Source/bindings/v8/custom/V8ElementCustom.cpp (right): https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8ElementCustom.cpp#newcode43 Source/bindings/v8/custom/V8ElementCustom.cpp:43: void V8Element::scrollLeftAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) On 2014/01/27 01:44:13, ...
6 years, 11 months ago (2014-01-27 02:07:00 UTC) #3
haraken
https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8ElementCustom.cpp File Source/bindings/v8/custom/V8ElementCustom.cpp (right): https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8ElementCustom.cpp#newcode43 Source/bindings/v8/custom/V8ElementCustom.cpp:43: void V8Element::scrollLeftAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) On 2014/01/27 02:07:00, ...
6 years, 11 months ago (2014-01-27 02:30:48 UTC) #4
Nils Barth (inactive)
https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8ElementCustom.cpp File Source/bindings/v8/custom/V8ElementCustom.cpp (right): https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8ElementCustom.cpp#newcode43 Source/bindings/v8/custom/V8ElementCustom.cpp:43: void V8Element::scrollLeftAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) > On 2014/01/27 ...
6 years, 11 months ago (2014-01-27 02:38:23 UTC) #5
ajuma
Thanks for the comments! Note that scrollLeft is an attribute, not a method, so we'd ...
6 years, 11 months ago (2014-01-27 02:52:15 UTC) #6
Nils Barth (inactive)
On 2014/01/27 02:52:15, ajuma wrote: > Thanks for the comments! > > Note that scrollLeft ...
6 years, 11 months ago (2014-01-27 05:03:49 UTC) #7
Nils Barth (inactive)
https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8WindowCustom.cpp File Source/bindings/v8/custom/V8WindowCustom.cpp (right): https://codereview.chromium.org/146003002/diff/70001/Source/bindings/v8/custom/V8WindowCustom.cpp#newcode390 Source/bindings/v8/custom/V8WindowCustom.cpp:390: void V8Window::scrollByMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) On 2014/01/27 02:30:48, haraken wrote: ...
6 years, 11 months ago (2014-01-27 05:23:44 UTC) #8
ajuma
On 2014/01/27 05:03:49, Nils Barth wrote: > On 2014/01/27 02:52:15, ajuma wrote: > > Thanks ...
6 years, 11 months ago (2014-01-27 16:30:52 UTC) #9
Nils Barth (inactive)
On 2014/01/27 16:30:52, ajuma wrote: > On 2014/01/27 05:03:49, Nils Barth wrote: > > On ...
6 years, 10 months ago (2014-01-29 06:54:41 UTC) #10
ajuma
On 2014/01/29 06:54:41, Nils Barth wrote: > Best would be: > // FIXME: should be: ...
6 years, 10 months ago (2014-01-29 16:52:17 UTC) #11
ajuma
On 2014/01/29 16:52:17, ajuma wrote: > On 2014/01/29 06:54:41, Nils Barth wrote: > > > ...
6 years, 10 months ago (2014-01-29 16:53:20 UTC) #12
Nils Barth (inactive)
On 2014/01/29 16:52:17, ajuma wrote: > > For now, easiest is probably: > > // ...
6 years, 10 months ago (2014-01-30 00:57:48 UTC) #13
haraken
> Your analysis looks spot-on. > I don't know which is preferable: haraken?, jochen? > ...
6 years, 10 months ago (2014-01-30 01:14:01 UTC) #14
Nils Barth (inactive)
On 2014/01/30 01:14:01, haraken wrote: > I'm still not that happy about the custom bindings ...
6 years, 10 months ago (2014-01-30 01:23:20 UTC) #15
haraken
On 2014/01/30 01:23:20, Nils Barth wrote: > On 2014/01/30 01:14:01, haraken wrote: > > I'm ...
6 years, 10 months ago (2014-01-30 01:26:58 UTC) #16
Nils Barth (inactive)
On 2014/01/30 01:26:58, haraken wrote: > OK, then LGTM for bindings/. Shall we add a ...
6 years, 10 months ago (2014-01-30 01:54:24 UTC) #17
ajuma
jochen, please have a look at core/ and platform/. nbarth and haraken, thanks for the ...
6 years, 10 months ago (2014-01-30 02:51:08 UTC) #18
ajuma
On 2014/01/30 02:51:08, ajuma wrote: > jochen, please have a look at core/ and platform/. ...
6 years, 10 months ago (2014-02-03 14:31:33 UTC) #19
jochen (gone - plz use gerrit)
lgtm
6 years, 10 months ago (2014-02-03 14:42:44 UTC) #20
ajuma
The CQ bit was checked by ajuma@chromium.org
6 years, 10 months ago (2014-02-03 15:53:02 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/146003002/270001
6 years, 10 months ago (2014-02-03 15:53:19 UTC) #22
commit-bot: I haz the power
Change committed as 166322
6 years, 10 months ago (2014-02-03 17:15:18 UTC) #23
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 17:15:19 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 17:15:19 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 17:15:20 UTC) #26
Nils Barth (inactive)
6 years, 6 months ago (2014-06-13 04:50:20 UTC) #27
Message was sent while issue was closed.
BTW, the FIXME/cruft this CL introduced is fixed in:
Cleanup [RuntimeEnabled] use in Window
https://codereview.chromium.org/329303009/
...which we can do now that [RuntimeEnabled] works on overloaded methods!

Powered by Google App Engine
This is Rietveld 408576698