Stephen Adams
c9c3c203c1
Minor tweaks to dart:html for better dart2js codegen
...
- Allow 'document' to be reused (GVN-ed).
- Allow inlining of 'new Comment'.
- 'new Text' and 'new Comment' have no effects.
BUG=
R=alanknight@google.com , sigmund@google.com
Review URL: https://codereview.chromium.org/2422293002 .
2016-10-17 13:35:17 -07:00
Alan Knight
42f8ab2d6a
Fix dataTransferItemList indexing
...
BUG=
Review URL: https://codereview.chromium.org/2326113002 .
2016-09-09 12:28:59 -07:00
Alan Knight
43cb6a4c59
Replace Maps library tour link in Storage template with current URL.
...
BUG=#27150
R=alanknight@google.com
Review URL: https://codereview.chromium.org/2277103002 .
2016-08-26 12:34:53 -07:00
Harry Terkelsen
1d749a2fec
record that Gamepad.buttons creates GamepadButtons
...
This also extends the html generator to be able to generate List implementations with nullable element types
Fixes https://github.com/dart-lang/sdk/issues/27073
R=sra@google.com , terry@google.com
Review URL: https://codereview.chromium.org/2242203002 .
2016-08-16 13:56:32 -07:00
Jacob Richman
36c9514f04
Use Point<num> in dart:html for strong mode
...
Strong mode is (as of recently) inferring a stricter type (e.g., Point<double>) and causing breaking changes.
patch from issue 2211493003 at patchset 1 (http://crrev.com/2211493003#ps1 )
BUG=
Review URL: https://codereview.chromium.org/2211563002 .
2016-08-03 14:09:10 -07:00
Harry Terkelsen
faaff39aa9
Record that MediaStream creates MediaStreamTracks
...
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/2168473002 .
2016-07-19 17:00:04 -07:00
William Hesse
bde8d3efc6
Revert "Don't call _ensureRequestAnimationFrame in Dartium."
...
This reverts commit bf8eeef6a0
.
Revert "Fix animationFrameRequest for dartium."
This reverts commit 3daaf3849f
.
BUG=https://github.com/dart-lang/sdk/issues/26906
Review URL: https://codereview.chromium.org/2159183003 .
2016-07-19 13:56:36 +02:00
Alan Knight
30b489578d
Revert "Reapply zone tasks."
...
This reverts commit 6a7c037aa6
.
BUG=
Review URL: https://codereview.chromium.org/2162643002 .
2016-07-18 13:12:36 -07:00
Florian Loitsch
bf8eeef6a0
Don't call _ensureRequestAnimationFrame in Dartium.
...
Review URL: https://codereview.chromium.org/2117103004 .
2016-07-05 19:50:49 +02:00
Florian Loitsch
3daaf3849f
Fix animationFrameRequest for dartium.
...
Review URL: https://codereview.chromium.org/2124863002 .
2016-07-05 19:22:27 +02:00
Florian Loitsch
6a7c037aa6
Reapply zone tasks.
...
This reverts commit 34d3c37233
.
Committed: f746f8f77e
R=lrn@google.com
Review URL: https://codereview.chromium.org/2119243002 .
Reverted: dae3922915
2016-07-05 17:33:09 +02:00
Florian Loitsch
dae3922915
Revert "Reapply zone tasks."
...
This reverts commit f746f8f77e
.
Review URL: https://codereview.chromium.org/2123593002 .
2016-07-04 21:58:15 +02:00
Florian Loitsch
f746f8f77e
Reapply zone tasks.
...
This reverts commit 34d3c37233
.
Review URL: https://codereview.chromium.org/2119243002 .
2016-07-04 19:55:58 +02:00
Florian Loitsch
34d3c37233
Revert zone tasks.
...
Revert "Add tasks to zones."
This reverts commit 85cccde717
.
Revert "Make Dom events run through zone tasks."
This reverts commit 6d1f6b2af6
.
Revert "Add zone task support for request-anim."
This reverts commit 726b9f8dc7
.
Revert "Add zone task support to http-requests."
This reverts commit b40cfcb57f
.
Revert "Update status file for jsshell."
This reverts commit 5e05ee9b5f
.
Review URL: https://codereview.chromium.org/2120063002 .
2016-07-01 22:36:52 -07:00
Florian Loitsch
b40cfcb57f
Add zone task support to http-requests.
...
R=alanknight@google.com , lrn@google.com
Review URL: https://codereview.chromium.org/2042033002 .
2016-07-01 19:44:19 -07:00
Florian Loitsch
726b9f8dc7
Add zone task support for request-anim.
...
R=lrn@google.com
Review URL: https://codereview.chromium.org/2039963003 .
2016-07-01 19:43:36 -07:00
Florian Loitsch
6d1f6b2af6
Make Dom events run through zone tasks.
...
R=jacobr@google.com , lrn@google.com
Review URL: https://codereview.chromium.org/2022263002 .
2016-07-01 19:43:06 -07:00
Jacob Richman
f26e522f84
Strip unused functionality from dart:html and fix strong mode errors. Switch from blacklisting pure interfaces to determining pure interfaces from the idl and whitelisting impure interfaces we need for dart2js.
...
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1987073002 .
2016-05-18 12:49:09 -07:00
Alan Knight
c5acca2ff0
Check for the case where previousNode fails in sanitization. Can happen with object tags
...
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org/1825373004 .
2016-04-28 12:51:40 -07:00
Jacob Richman
6ef4eae35f
Remove as checks bloating sample dart apps by 4K
...
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org/1923143002 .
2016-04-27 08:53:48 -07:00
Alan Knight
dad1a74d2e
Oops, movementX/Y are private. Fix template
...
BUG=
Review URL: https://codereview.chromium.org/1916203002 .
2016-04-25 13:26:14 -07:00
Alan Knight
5542568adc
Fix MouseEvent.movement to not use old webkit prefix
...
BUG=
Review URL: https://codereview.chromium.org/1921823002 .
2016-04-25 12:35:03 -07:00
Alan Knight
290a250be3
Move annotation_Creates_SerializedScriptValue into dart2js-specific code
...
BUG=
Review URL: https://codereview.chromium.org/1918963002 .
2016-04-25 10:52:02 -07:00
Terry Lucas
8f7b8a9d87
Update to new Webkit additions for custom elements
...
TBR=jacobr@google.com ,alanknight@google.com
Review URL: https://codereview.chromium.org/1914643002 .
2016-04-22 12:53:36 -07:00
Jacob Richman
7fdce7a2f0
Use _downcast and _cast instead of "as" to reduce dart2js output size.
...
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org/1914583002 .
2016-04-22 11:09:01 -07:00
Jacob Richman
819ed4bb60
Fix strong mode errors in SVG
...
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1903893003 .
2016-04-21 12:45:08 -07:00
Jacob Richman
9ffe1c2450
Make querySelectorAll a generic method so that checked mode behavior is consistent with existing behavior and strong mode behavior is strong for the case of List<InputElement> elems = document.querySelector("input");
...
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org/1904903003 .
2016-04-21 09:54:18 -07:00
Jacob Richman
777e1a386e
Revert "Remove the generics from _FrozenElementList: causes checked mode failures"
...
This reverts commit 7824ac771b
.
BUG=
Review URL: https://codereview.chromium.org/1909613003 .
2016-04-20 18:50:11 -07:00
Jacob Richman
b546d05362
TBR. Add back fix to the misleading types for onError. Otherwise, html/worker_test/functional fails due to the browser itself throwing an event of type Error that is not an ErrorEvent.
...
BUG=
Review URL: https://codereview.chromium.org/1908603002 .
2016-04-20 10:41:56 -07:00
Jacob Richman
068252e721
Revert changes to event signatures as they broke one co19 test and this change isn't required due to relaxation in types in EventStreamProvider.dart
...
BUG=
Review URL: https://codereview.chromium.org/1903033002 .
2016-04-19 16:42:16 -07:00
Jacob Richman
864b64fd5e
Strong html
...
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1894713002 .
2016-04-19 15:08:45 -07:00
Alan Knight
810faa31b9
Don't add a non-null check in dart2js for a nullable parameter (seeWebGl.texImage2D)
...
BUG=
Review URL: https://codereview.chromium.org/1885943002 .
2016-04-16 16:26:14 -07:00
Alan Knight
7824ac771b
Remove the generics from _FrozenElementList: causes checked mode failures
...
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org/1891543005 .
2016-04-14 15:14:40 -07:00
Terry Lucas
74ddf84ffd
Remove MutationEvent bad entries in both removed list and renamed list
...
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1890983002 .
2016-04-14 13:49:42 -07:00
Alan Knight
48d73a66e0
Fix MutationEvent class name
...
BUG=
Review URL: https://codereview.chromium.org/1888693004 .
2016-04-14 09:56:07 -07:00
Alan Knight
a790d5ac12
Regenerate libraries after CL 1876363006
...
BUG=
Review URL: https://codereview.chromium.org/1879233006 .
2016-04-13 15:18:03 -07:00
Alan Knight
a718c8dac9
Fix a few strong mode errors in dart:html
...
BUG=
R=jacobr@google.com
Committed: 65fe0a5383
Review URL: https://codereview.chromium.org/1876363006 .
2016-04-13 15:13:31 -07:00
Alan Knight
3fd7e32b65
Revert "Fix a few strong mode errors in dart:html"
...
This reverts commit 65fe0a5383
.
BUG=
Review URL: https://codereview.chromium.org/1879253004 .
2016-04-13 14:56:42 -07:00
Alan Knight
65fe0a5383
Fix a few strong mode errors in dart:html
...
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org/1876363006 .
2016-04-13 14:41:10 -07:00
Jacob Richman
08c171d3e5
Revert "Revert "Fix handling of cross-origin windows in dartium and better align general handling of different frame window and location objects.""
...
Fix missing case that was breaking co19 tests.
This reverts commit 688eeb555c
.
BUG=
Review URL: https://codereview.chromium.org/1883513004 .
2016-04-12 17:16:06 -07:00
Jacob Richman
688eeb555c
Revert "Fix handling of cross-origin windows in dartium and better align general handling of different frame window and location objects."
...
This reverts commit f382890e1a
.
Reverting while tests are fixed.
BUG=
Review URL: https://codereview.chromium.org/1879093002 .
2016-04-12 11:28:05 -07:00
Jacob Richman
f382890e1a
Fix handling of cross-origin windows in dartium and better align general handling of different frame window and location objects.
...
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1873933002 .
2016-04-12 10:23:32 -07:00
Jacob Richman
1536c671f5
Add support for switching library from the chrome devtools console.
...
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1865803004 .
2016-04-07 11:14:47 -07:00
Terry Lucas
c95b9875ef
Fix registerElement for HTMLElement prototype should not change it's m_type
...
TBR=jacobr@google.com
Review URL: https://codereview.chromium.org/1857343002 .
2016-04-05 11:59:28 -07:00
Jacob Richman
c65854d2e4
Optimize dartium dart:html bindings so real world application performance is acceptable. Improves dart:html performance by 2X-30X for microbenchmarks. Real world improvement is typically 2X-3X.
...
BUG=
Review URL: https://codereview.chromium.org/1832713002 .
2016-03-29 18:32:52 -07:00
Alan Knight
7ca31f9bbc
Remove O(n^2) loop in serialized script value conversions
...
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org/1817343002 .
2016-03-22 11:28:12 -07:00
Alan Knight
4fe809c211
Add @creates annotation to VttCue members
...
BUG=
R=sigmund@google.com
Review URL: https://codereview.chromium.org/1811213002 .
2016-03-18 07:35:35 -07:00
Alan Knight
1f9395fb30
Add back CssCharsetRule for Safari support
...
BUG=
Review URL: https://codereview.chromium.org/1777683002 .
2016-03-08 14:40:57 -08:00
Terry Lucas
af562187bc
Chrome moved clipboardData from Event to ClipboardEvent for security clipboard can only be accessed during a onCut/onCopy/onPaste event.
...
The polyfill class KeyEvent can no longer access clipboardData without listening for the cut, copy or paste event.
TBR=alanknight@google.com ,sigmund@google.com
Review URL: https://codereview.chromium.org/1775923002 .
2016-03-08 05:24:02 -08:00
Terry Lucas
5d77c0e83c
More UIEvent attribute movement in 45 roll.
...
TBR=alanknight@google.com ,sigmund@google.com
Review URL: https://codereview.chromium.org/1771113002 .
2016-03-07 16:12:28 -08:00