Commit Graph

745 Commits

Author SHA1 Message Date
leafp@google.com 333cd2ad67 MediaStream/Source fix
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35667 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-01 23:02:26 +00:00
leafp@google.com d1f0594840 Initial overloading implementation in _blink
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35662 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-01 22:03:06 +00:00
leafp@google.com 970367e227 Rename blink -> _blink
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35499 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-28 21:56:19 +00:00
leafp@google.com 36a629367e Generate dart:blink in the SDK
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35439 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 18:29:01 +00:00
leafp@google.com 5e0688e1ec This CL contains all of the changes for splitting off all of the native
calls from dart:html into dart:blink.  As currently configured, the
dart:blink library will be empty and unused.  The only changes in the
idl generated dart and C++ code in the default configuration should
be cosmetic.  The global variable "dart_use_blink" in systemnative.py
currently controls whether or not the real blink library is
generated.  Enabling this requires as yet unchecked in changes to
blink.  These changes are expected to land as part of the chrome
35 roll.

Support for building with/without blink
DOM changes for checked receivers
Dartium native call generation refactor

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35430 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 16:22:08 +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 47f25a390c Validate native tags
Fix dart:html problem where tag is used by two classes.  (Current IDL now has correct inheritance.)

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34990 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-11 19:42:04 +00:00
asiva@google.com 98ba7c124a Refactor the class id generation code a bit to make it possible to have toActiveDOMObject, ToEventTarget and toNode functions for each webkit type.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34840 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-08 20:27:57 +00:00
efortuna@google.com bce070e7cc Change HtmlCollection to appear as List<Node> and getElementsByX return ListNode|HtmlCollection (depending on browser).
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34799 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-07 22:22:55 +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
asiva@google.com 2dd7dcecb9 Remove one version of DartDOMWrapper::createWrapper and have all call sites
directly call the class id version

R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34599 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-01 15:00:42 +00:00
vsm@google.com 8f11ff5abd Strip out gcc preprocessor support
Blink IDL no longer uses #if-style syntax for enabling features.

R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34447 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-26 20:22:00 +00:00
vsm@google.com adcaea49a4 Restore these deprecated types for now
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34404 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-26 03:16:47 +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
vsm@google.com 1192f128cf Regenerate dart:html for dart2js using Chrome 34 IDL
(This is just a go.sh run.)

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34368 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-25 16:29:24 +00:00
vsm@google.com 52bf6601e4 Fix idlsync.py script to update IDL under Dart's third_party/WebCore.
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34171 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-20 15:15:16 +00:00
jacobr@google.com 1ea29a21d7 Fixes for Chrome 34 merge
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34069 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-18 22:08:44 +00:00
leafp@google.com 6370348c37 Script changes for ChangeXXX -> Change=XXX
Move CustomSetter to Custom=Setter in dart.idl

BUG=17248
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33359 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 00:17:12 +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
blois@google.com 3550d8fadd Speeding up go.sh
Primary issue was resolving the media events (over and over and over). Tried to cache all resolved events but ran into complications with dart2js suppressions.

Takes it down to ~12-15s on my machine.

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32812 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 19:35:41 +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
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
efortuna@google.com 450ed203ff Add back DocumentType error so that Dartium can build.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32625 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 21:32:19 +00:00
jacobr@google.com e9bcf2ddca Make the Dart code generators handle the Image constructor specified in the IDL without crashing or generating multiple constructors.
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32621 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 20:47:13 +00:00
efortuna@google.com dd29511add Fix analyzer test failure.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32619 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 20:37:53 +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
vsm@google.com ad353d440b Fixes for 1750 roll
TBR=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32477 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-10 01:38:01 +00:00
asiva@google.com d3eb344f08 Do not generate code to create a CallStack in the ConsoleBase calls as that
variable is not used at all.

R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32265 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-03 22:47:46 +00:00
sra@google.com 9f09fcbaac Redo "Make dart2js typed_data implementation classes private"
This time with analyzer suppression for new library/

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31935 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-17 23:01:26 +00:00
sra@google.com 9ceaef9d73 Revert "Redo "Make dart2js typed_data implementation classes private""
Revert while I figure out the correct analyzer suppression.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31933 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-17 21:54:18 +00:00
sra@google.com 42b1721927 Redo "Make dart2js typed_data implementation classes private"
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31930 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-17 21:08:40 +00:00
blois@google.com 93b7001172 Making readonly fields on interfaces be readonly
This will be causing compilation warnings once https://codereview.chromium.org/140803002 is landed.

BUG=16105
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31892 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-16 18:13:48 +00:00
sra@google.com 8ffab76c82 Revert "Redo "Make dart2js typed_data implementation classes private""
Review URL: https://codereview.chromium.org//140543002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31866 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-16 05:03:02 +00:00
sra@google.com 83ae5cfabf Redo "Make dart2js typed_data implementation classes private"
The main library is now private, with the user visible library as small re-export library.

R=blois@google.com, floitsch@google.com, johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31865 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-16 04:27:50 +00:00
vsm@google.com eebdf4ccf9 Revert "Revert "Revert "Fix dart2js type warnings"""
Hitting layout test failures in Dartium now....

TBR=blois@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31702 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 19:27:09 +00:00
vsm@google.com f236af9969 Revert "Revert "Fix dart2js type warnings""
Retrying with a fix.  Patch 1 is initial change.

BUG=15954
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31699 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 19:00:03 +00:00
asiva@google.com 7ea7adfe16 Add more functions to the list of leaf functions which do not need an
auto generated dart scope. Resulting improvements in the Dromaeo benchmarks

getAttribute 1072.0 1529.0
element_property_access 1304.0 1987.0
setAttribute 305.38922155688624 422.1556886227545
element_property_assignment 509.4905094905095 668.0
getElementById 1012.0 1523.0
getElementById (not in document) 2440.0 3279.0
getElementsByTagName(div) 119232.0 155037.0
getElementsByTagName(p) 109280.0 148015.0
getElementsByTagName(a) 119869.0 156460.0
getElementsByTagName(*) 114050.0 146375.0
getElementsByTagName (not in document) 172848.0 238313.0
getElementsByName 1356.0 1724.0
getElementsByName (not in document) 2657.0 2891.0

R=rmacnak@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31582 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 21:48:17 +00:00
blois@google.com dd84eacad7 Suppressing media events from list of global events.
Fixes analyzer issue

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31563 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 18:40:30 +00:00
blois@google.com 0e62a20627 Removing media events from Document and Element.
We were already doing this for Window, but they just got added to Element & Document in Chrome 32. Suppressing them as they aren't needed and can be used from MediaElement already.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31562 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 18:34:37 +00:00
vsm@google.com 6994ac20bb Fix compile warning on mac
Chrome 32 flags appear to be stricter.

TBR=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31493 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-06 18:01:32 +00:00
vsm@google.com 5e3937addf Changes for Chrome 32
Once we're ready to switch ... some paths have changed from 31.

R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31486 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-06 17:12:25 +00:00
asiva@google.com 1f9f8ecf7a - Setup infrastructure to white list some native methods as not requiring
auto setup of Dart API scopes
- List some functions in the list to check out the infrastructure. Performance
  gains from listing these:

  firstChild         222.33 to 309.6903096903097
  lastChild          217.56 to 306.0
  nextSibling        363.00 to 514.0
  previousSibling    357.64 to 506.0
  nextSiblingDynamic 348.01 to 511.0
  childNodes         309.38 to 444.5554445554446

R=rmacnak@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31342 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 19:02:04 +00:00
asiva@google.com 3b1902e54a Add auto scope setup parameter to the native resolvers in preparation for
https://codereview.chromium.org/117723002/

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31287 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 17:48:14 +00:00
rmacnak@google.com b149db19e3 Changes to generated code for templatized DartDOMWrapper::lookupWrapper.
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31050 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 00:21:46 +00:00
asiva@google.com dd18f8d84f Change generator to pass in domData in calls to createWrapper.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31034 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 18:36:10 +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