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
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
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
badabcc53a
Don't use => on void functions.
...
Fixes #26740
BUG= http://dartbug.com/26740
R=sra@google.com
Review URL: https://codereview.chromium.org/2118633002 .
2016-07-11 14:20:12 +02: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: https://github.com/dart-lang/sdk/commit/f746f8f77e93fd93cb4ff3b4ed644c96a432947a
R=lrn@google.com
Review URL: https://codereview.chromium.org/2119243002 .
Reverted: https://github.com/dart-lang/sdk/commit/dae392291595fa394d601d2d0baa77b66d85533f
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
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
25b88eabe5
Fix indexed_db strong mode warnings.
...
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1903973002 .
2016-04-21 10:03:53 -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
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
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
a718c8dac9
Fix a few strong mode errors in dart:html
...
BUG=
R=jacobr@google.com
Committed: https://github.com/dart-lang/sdk/commit/65fe0a5383c7d09efb1dd958a7a30ec5c4d1c847
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
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
Alan Knight
0f5c249f22
Fix webgl methods, properly this time
...
BUG=
Review URL: https://codereview.chromium.org/1846803002 .
2016-03-31 09:45:32 -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
ab55f22334
Fix WebGL tex[Sub]Image2D/buffer[Sub]Data, restored Typed/Untyped aliases
...
BUG=
Review URL: https://codereview.chromium.org/1831033002 .
2016-03-24 10:20:11 -07: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
Alan Knight
83e2e2dbb2
Change scripts to avoid generating things that bloat the compiled code
...
BUG=
Review URL: https://codereview.chromium.org/1763213002 .
2016-03-04 15:08:48 -08:00
Kasper Lund
96be0c49fb
Revert "Change scripts to avoid generating things that bloat the compiled code"
...
This reverts commit 4f3abbd5ef .
2016-03-04 10:06:07 +01:00
Alan Knight
4f3abbd5ef
Change scripts to avoid generating things that bloat the compiled code
...
BUG=
Review URL: https://codereview.chromium.org/1759303003 .
2016-03-03 17:39:50 -08:00
Terry Lucas
4f3b4097fd
Fixed dart2js compilation problem
...
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1762763002 .
2016-03-03 11:08:24 -08:00
Terry Lucas
23d5f671ae
Revert "Fixed dart2js compilation and udpate obsolete analyzer for co19"
...
This reverts commit 439b59b1fc .
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1753903005 .
2016-03-03 09:37:53 -08:00
Terry Lucas
439b59b1fc
Fixed dart2js compilation and udpate obsolete analyzer for co19
...
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1757293002 .
2016-03-03 06:23:31 -08:00
Terry Lucas
d094857c12
Fixed createImageData and added RequestAnimationFrameCallback for compat
...
TBR=jacobr@google.com
Committed: https://github.com/dart-lang/sdk/commit/b524161f8f9bc8c3a122047d604f7eec9507411b
Review URL: https://codereview.chromium.org/1753813005 .
2016-03-02 13:23:22 -08:00
Terry Lucas
d2e1a2ce3c
client* no longer handle manipulated the properties are back to ints
...
TBR=alanknight@google.com ,jacobr@google.com
Committed: https://github.com/dart-lang/sdk/commit/637ed1e3e193b29874d9529f200d532c3847af33
Review URL: https://codereview.chromium.org/1754593004 .
2016-03-01 04:50:40 -08:00
Terry Lucas
c7c12c7756
Migrated changed for sdk/lib genernation from integration branch to master.
...
- client* not properly exposed.
- Expose createImageDataFromImageData for backward compat
- Chrome now allow typedefs defined in and IDL to be used and other IDL files (even though the IDL has no include).
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1744093002 .
2016-02-28 11:59:20 -08:00
Terry Lucas
2a20f47782
Add MessageEvent.data template for dart2js, remove duplicate claims on ClipboardEvent and PointerEvent
...
BUG=
Review URL: https://codereview.chromium.org/1725083002 .
2016-02-24 07:51:50 -08:00
Alan Knight
ce744f6222
Some dart2js fixes with new IDL. RequestCallback name and web_sql import
...
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org/1729813002 .
2016-02-23 16:27:59 -08:00
Terry Lucas
a3350d9b06
Generation of sdk/lib files from 45 roll
...
TBR=alanknight@google.com ,jacobr@google.com
Review URL: https://codereview.chromium.org/1720743005 .
2016-02-22 10:59:12 -08:00
Alan Knight
f2fd68c362
Fix MessageEvent.data to convert using structured clone.
...
BUG=
Review URL: https://codereview.chromium.org/1683403005 .
2016-02-11 13:05:53 -08:00
Jacob Richman
cf7ae2e0cb
Support JS$ prefix for dart and fix bug where _operator_getter and the [] operator were used inconsistently. Would only impact future use cases where js APIs returned types not auto-proxied with dart:html.
...
Support typed JS interop classes that extend the behavior of dart:html types in Dartium.
This theoretically enables supporting package:dom at the same time as dart:html as well as helping with
JavaScript libraries that monkey patch the dom.
Also support JS$ name prefix to resolve name conflicts with dart reserved words and with
dart:html libraries.
Cleanup addEventListener and friends so they are consistent with typed JS Interop and fix
bugs in the unlikely case where multiple functions have the same identity hash.
Add checks to make it easier to catch when allowInterop is accidentally omitted
when using the new typed JavaScript interop. You will now get an exception
any time you pass a Function to JS via the new typed interop without first
calling allowInterop.
BUG=
R=alanknight@google.com
Review URL: https://codereview.chromium.org/1583773003 .
2016-01-15 10:40:32 -08:00
Alan Knight
7f80dbbbe1
Revert "Mark supportsPointConversions deprecated and always true rather than testing DOMPoint"
...
This reverts commit 2dfdfe554e .
BUG=
Review URL: https://codereview.chromium.org/1583673002 .
2016-01-12 16:24:12 -08:00
Alan Knight
2dfdfe554e
Mark supportsPointConversions deprecated and always true rather than testing DOMPoint
...
BUG=
Review URL: https://codereview.chromium.org/1580203002 .
2016-01-12 13:52:38 -08:00