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

Issue 12226129: Updating Element.scrollIntoView to be platform independent. (Closed)

Created:
7 years, 10 months ago by blois
Modified:
7 years, 10 months ago
Reviewers:
Jacob
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Updating Element.scrollIntoView to be platform independent. BUG= Committed: https://code.google.com/p/dart/source/detail?r=18498

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -4 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 3 chunks +59 lines, -1 line 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 3 chunks +69 lines, -1 line 1 comment Download
M tests/html/element_test.dart View 1 1 chunk +12 lines, -0 lines 0 comments Download
M tools/dom/scripts/htmlrenamer.py View 1 3 chunks +3 lines, -2 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Element.darttemplate View 1 2 2 chunks +55 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
blois
7 years, 10 months ago (2013-02-12 22:34:04 UTC) #1
Jacob
https://codereview.chromium.org/12226129/diff/1/tools/dom/templates/html/impl/impl_Element.darttemplate File tools/dom/templates/html/impl/impl_Element.darttemplate (right): https://codereview.chromium.org/12226129/diff/1/tools/dom/templates/html/impl/impl_Element.darttemplate#newcode789 tools/dom/templates/html/impl/impl_Element.darttemplate:789: void scrollIntoView({bool alignCenter, bool alignTop, bool alignBottom}) { shouldn't ...
7 years, 10 months ago (2013-02-12 23:12:33 UTC) #2
blois
Now with enums. One note is that this still prefers scrollIntoViewIfNeeded over scrollIntoView, when available, ...
7 years, 10 months ago (2013-02-13 01:37:42 UTC) #3
blois
On 2013/02/13 01:37:42, blois wrote: > Now with enums. > > One note is that ...
7 years, 10 months ago (2013-02-13 20:57:01 UTC) #4
Jacob
https://codereview.chromium.org/12226129/diff/8001/sdk/lib/html/dartium/html_dartium.dart File sdk/lib/html/dartium/html_dartium.dart (right): https://codereview.chromium.org/12226129/diff/8001/sdk/lib/html/dartium/html_dartium.dart#newcode9747 sdk/lib/html/dartium/html_dartium.dart:9747: + void scrollIntoView([ScrollIntoViewAlignment alignment]) { Why not call ScrollIntoViewAlignment ...
7 years, 10 months ago (2013-02-13 21:08:19 UTC) #5
blois
On 2013/02/13 21:08:19, Jacob wrote: > https://codereview.chromium.org/12226129/diff/8001/sdk/lib/html/dartium/html_dartium.dart > File sdk/lib/html/dartium/html_dartium.dart (right): > > https://codereview.chromium.org/12226129/diff/8001/sdk/lib/html/dartium/html_dartium.dart#newcode9747 > ...
7 years, 10 months ago (2013-02-13 21:14:22 UTC) #6
Jacob
The problem is any time a user calls this method they will have to type ...
7 years, 10 months ago (2013-02-13 22:08:14 UTC) #7
Jacob
7 years, 10 months ago (2013-02-13 23:11:30 UTC) #8
ScrollAlignment sounds good.
lgtm

Powered by Google App Engine
This is Rietveld 408576698