Commit Graph

746 Commits

Author SHA1 Message Date
blois@google.com edf9910602 Re-apply "Adding a mechanism to 'upgrade' the Dart type of elements"
With fixes for:
- Expected analyzer static error in the unittest.
- Added browser/interop.js to the HTML file

BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//224113003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35080 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-15 20:50:46 +00:00
blois@google.com fd6f27f790 Exposing Node.baseURL
Polymer uses it quite a bit, seems like Dart should expose it. It's primarily useful in Polymer because with HTMLImports it's easy to load content with different base URIs.

BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//235503007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35041 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-14 21:37:51 +00:00
sra@google.com 022ab4f64f Remove _LocationWrapper
Use dispatch tags to avoid touching Location.prototype instead of wrapping.

R=blois@google.com

Review URL: https://codereview.chromium.org//233793002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34946 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-10 21:45:40 +00:00
blois@google.com 2596425027 Fix for bug 14923
Make sure that completeError is not called with null.

BUG=14923
R=efortuna@google.com

Review URL: https://codereview.chromium.org//138003019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34797 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-07 21:19:10 +00:00
blois@google.com b4a3e6ced6 Revert "Adding a mechanism to 'upgrade' the Dart type of elements"
This reverts commit 34615 because it's breaking some bots (not sure why).

TBR
BUG=

Review URL: https://codereview.chromium.org//220403008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34622 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-01 22:59:54 +00:00
blois@google.com 0e64dc971c Adding a mechanism to 'upgrade' the Dart type of elements
This is to allow custom Dart wrappers for Polymer elements to provide improved JS custom element integration.

The Dartium portion of this is at https://codereview.chromium.org/188083002

BUG=
R=jmesserly@google.com, sra@google.com

Review URL: https://codereview.chromium.org//177113014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34615 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-01 20:17:31 +00:00
blois@google.com c163cc3524 Speeding up ElementList.clear & NodeList.clear.
Changes elements.clear() to no longer remove nodes- but this seems like the correct behavior.

Can use the nodes.clear() logic for elements if not.

BUG=17892
R=jacobr@google.com

Review URL: https://codereview.chromium.org//216933005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34532 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-28 22:16:38 +00:00
vsm@google.com a1f53ce2c0 Remove queryUsageAndQuota API
This is gone in Chrome 34.  It's breaking the dart2js analyze_api test.

TBR'ing to get the bots green.

TBR=blois@google.com

Review URL: https://codereview.chromium.org//208743003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34376 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-25 18:06:31 +00:00
sra@google.com 246f07b5c8 Fix for FileReader.readAsArrayBuffer http://dartbug.com/17058
R=blois@google.com

Review URL: https://codereview.chromium.org//180583002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33048 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 00:31:05 +00:00
efortuna@google.com 4bf8e46dcc Remove the html warnings!
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//164743003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32678 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-13 22:23:21 +00:00
efortuna@google.com f91b102ccb "Reverting 32641"
BUG=

Review URL: https://codereview.chromium.org//162843002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32642 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-13 05:52:21 +00:00
efortuna@google.com c1e36a1efe Reapply "remove html warnings."
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//162413002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32641 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-13 01:43:25 +00:00
sethladd@google.com 763918f8df Additions to HttpRequest docs
BUG=

Review URL: https://codereview.chromium.org//162113002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32635 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 23:58:13 +00:00
efortuna@google.com 7acd2cc7c7 Revert all html warning changes.
For the sake of ease of cherry-picking, I'm going to back this change out to
apply all at once, once I fix this postMessage test failure on Dartium.

BUG=

Review URL: https://codereview.chromium.org//160963004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32630 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 22:12:18 +00:00
blois@google.com 8ef5a1d18b Adding supported check for HTML imports.
BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//161233003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32626 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 21:48:07 +00:00
efortuna@google.com 9f1b31b001 Fix more warnings for dart:html.
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//153823007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32618 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 20:12:09 +00:00
blois@google.com bff7179948 Fixing issues from IDL upgrade
* CustomElement update to match new Element syntax fixes analyzer issue
* Document.createTreeWalker/createNodeIterator change to pass in last argument for IE11.

TBR
BUG=

Review URL: https://codereview.chromium.org//153603004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32513 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-10 19:39:50 +00:00
blois@google.com 9407a9ded2 Updating IDL files from Chrome roll.
Fixes include IDB conversion changes & NodeWalker & TreeIterator.
BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org//142713007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32508 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-10 18:26:58 +00:00
efortuna@google.com 0bfe426f18 Revert "Fix more warnings for dart:html". Appears to be causing dartium failures.
BUG=

Review URL: https://codereview.chromium.org//137123010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32408 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-07 07:56:06 +00:00
efortuna@google.com 6805a7850a Fix MOAR warnings for dart:html.
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//140753009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32403 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-07 02:20:25 +00:00
efortuna@google.com 5f3f5b9631 First pass at cleaning up html lib warnings from the analyzer.
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//143363011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32377 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-06 19:12:28 +00:00
jmesserly@google.com 0f277224e8 update custom elements and shadow dom
R=blois@google.com

Review URL: https://codereview.chromium.org//140853005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32171 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-30 20:56:22 +00:00
blois@google.com 192df7e88b Fixing TouchEvent.supported
It was reporting as not being supported because there's no Window.ontouch, but the constructor is now working.

TBR
BUG=

Review URL: https://codereview.chromium.org//141113006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31907 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-17 02:49:43 +00:00
vsm@google.com e86b75260b Add special case templates to handle Global/WindowEventHandlers
TBR=blois@google.com

BUG=15954

Review URL: https://codereview.chromium.org//133693004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31714 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 21:59:38 +00:00
blois@google.com 1820da3a53 Fixing Window.animationFrame timing issue
Was using async completer which changes the timing.

Additional Dartium changes are from https://codereview.chromium.org//111613002 which did not re-gen the Dartium file.

BUG=15848
R=efortuna@google.com

Review URL: https://codereview.chromium.org//98183006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31590 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 23:33:46 +00:00
jacobr@google.com 4dd740e2de Fix bug 15417
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//103933005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31032 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 18:25:41 +00:00
blois@google.com 0a3b261b7c Fixing DataTransferItemList List<> behavior
BUG=15056
R=efortuna@google.com

Review URL: https://codereview.chromium.org//104503007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31006 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 00:47:23 +00:00
amouravski@google.com ea80298177 Added docs to canvaselement. Giving it docs for all members.
Review URL: https://codereview.chromium.org//74013003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30309 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 18:55:30 +00:00
amouravski@google.com 71e4e96699 Finished off HTML Window blurb + link for every member.
Review URL: https://codereview.chromium.org//64553010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30307 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 18:40:56 +00:00
amouravski@google.com 8b22b0eba0 Even more docs changes.
Review URL: https://codereview.chromium.org//66843009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30298 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 02:20:22 +00:00
amouravski@google.com fce5971f4f o/~ Y muchos maaaaaaas... o/~
Review URL: https://codereview.chromium.org//68513006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30175 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-11 22:10:12 +00:00
amouravski@google.com 239d152949 Way more documentation blanks filled in.
Review URL: https://codereview.chromium.org//66193010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30134 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-09 01:19:44 +00:00
efortuna@google.com 581ff321fa Properly resolve qualified names in documenation (possibly from other libraries).
BUG=
R=alanknight@google.com

Review URL: https://codereview.chromium.org//65403002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30073 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 21:44:54 +00:00
amouravski@google.com 82fb93d181 Update selector docs.
Review URL: https://codereview.chromium.org//65333002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30069 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 20:49:32 +00:00
amouravski@google.com 11c6fce3d9 Even more docs, filling in many of the gaps.
Review URL: https://codereview.chromium.org//62703002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29993 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 20:39:27 +00:00
amouravski@google.com 3e9937eae4 More Element method docs.
Review URL: https://codereview.chromium.org//56533006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29844 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 21:08:05 +00:00
floitsch@google.com 5375bc79ad Remove SendPortSync and ReceivePortSync.
R=vsm@google.com

Review URL: https://codereview.chromium.org//56153005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29778 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 23:13:21 +00:00
blois@google.com 768e147559 Fixing comment constructor not functioning on IE
BUG=13943
R=efortuna@google.com

Review URL: https://codereview.chromium.org//56603002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29777 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 22:45:11 +00:00
amouravski@google.com e4c863e338 Added even more documentation to Element.
Review URL: https://codereview.chromium.org//56533002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29774 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 22:10:34 +00:00
blois@google.com cb0fa66a9b Fixing BeforeUnloadEvent.returnValue
This is an update of https://codereview.chromium.org/54913005/ which was failing on the Dartium bots.

Original is patch #1, fix is #2 (re-ordering the parts in html_dartium).

Issue with the original appears to be that parts have some order-dependency in the VM when executing with --error_on_bad_type, which is used in snapshotting.

Opened bug https://code.google.com/p/dart/issues/detail?id=14721

BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org//55903004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29766 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 19:53:45 +00:00
amouravski@google.com 37947804ca Added helpful information on all event getters and static members.
R=blois@google.com

Review URL: https://codereview.chromium.org//46143004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29755 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 16:59:07 +00:00
blois@google.com 7046fc201e Revert "Fixing the BeforeUnloadEvent"
Causing problems with build on Dartium:
class _CustomEventStreamImpl<T extends Event> extends Stream<T>
                             ^
'file:///mnt/data/b/build/slave/dartium-lucid32-full-be/build/src/dart/tools/dom/src/EventStreamProvider.dart': Error: line 334 pos 41: type '_CustomEventStreamImpl<KeyEvent>' has an out of bound type argument
class _CustomKeyEventStreamImpl extends _CustomEventStreamImpl<KeyEvent>

TBR
BUG=

Review URL: https://codereview.chromium.org//54923006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29754 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 16:37:33 +00:00
blois@google.com a948d4384a Fixing the BeforeUnloadEvent
Basically the last Blink upgrade introduced the BeforeUnloadEvent which conflicted with our previous polyfill. Our definition was removed, but the suppression remained for Event.returnValue.

The suppression is still needed since that's the incorrect type and on the wrong class, so I modified our metadata lookup to allow it to only target exact class matches (and not super classes).
BUG=
R=efortuna@google.com, vsm@google.com

Review URL: https://codereview.chromium.org//54913005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29752 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 16:17:38 +00:00
amouravski@google.com fb475209a8 Reproducing changes from https://chromiumcodereview.appspot.com/23556009/
Review URL: https://codereview.chromium.org//54183007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29709 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 22:13:43 +00:00
efortuna@google.com 502c7c29c8 Allow matchingTarget to also include the currentTarget.
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//52443007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29609 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 23:32:39 +00:00
efortuna@google.com 57a80ee316 Specify default values for data (text) and value in OptionElement.
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//51043006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29592 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 21:46:11 +00:00
kasperl@google.com 1bbe4d5452 Make sure that classes in dart:html do not implement both List and List<E>.
R=johnniwinther@google.com, blois@google.com
BUG=

Review URL: https://codereview.chromium.org//50263004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29417 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 08:37:10 +00:00
blois@google.com 8c9c2d5c29 Exposing raw DOM lists from wrappers
This is to make them transferrable via dart:js

So basically all of our wrappers implement NodeListWrapper (which is defined in html_common).

One can check if the Dart list is a NodeListWrapper, then call rawList if so.

The result of rawList is typed as List<Node>, which should be either NodeList or HtmlCollection.

BUG=14485
R=justinfagnani@google.com

Review URL: https://codereview.chromium.org//46433003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29322 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-27 02:26:20 +00:00
efortuna@google.com 45701cfb4b Second round of deprecation removal.
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//41843003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29275 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 19:39:09 +00:00
efortuna@google.com c49f1ce868 Allow matches selector to work on current Opera.
BUG=
R=blois@google.com

Review URL: https://codereview.chromium.org//41623003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29216 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 21:55:08 +00:00