Commit Graph

1657 Commits

Author SHA1 Message Date
vsm@google.com f119db9dfb Fix unknown type error in html_*.dart
The type Matrix is used unqualified in html_*.dart (CanvasRenderingContext2D.currentTransform).  This imports that type only unqualified.

Is there a better way to do this?

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31585 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 22:10:52 +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 1436645a1b Rerun go.sh
Regenerating with Chrome 32 IDL.

TBR=blois@google.com,efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31558 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 17:58:22 +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
lrn@google.com 9923bb4916 Fix static-ness of const fields in timer.
Use shift instead of multiply/div. It's only running on the VM.

R=ajohnsen@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31019 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 13:06:14 +00:00
lrn@google.com 6836ea2ad8 Revert "Reduce footprint of HTML Timer by not creating a "cancel" closure."
This may be causing timeouts.

Committed: https://code.google.com/p/dart/source/detail?r=30986

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31013 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 10:36:31 +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
lrn@google.com a8fb75af2f Revert "Reduce footprint of HTML Timer by not creating a "cancel" closure."
This may be causing timeouts.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30986 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-09 13:13:09 +00:00
lrn@google.com 4abe4daf0f Reduce footprint of HTML Timer by not creating a "cancel" closure.
R=floitsch@google.com

Committed: https://code.google.com/p/dart/source/detail?r=30982

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30984 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-09 11:39:39 +00:00
lrn@google.com 68a28094f5 Change the zone that late-added stream subscription callbacks are registered in.
They are always called in the subscription's zone, but they were
registered in the current zone.

R=floitsch@google.com

Committed: https://code.google.com/p/dart/source/detail?r=30896

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30983 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-09 11:25:29 +00:00
lrn@google.com e36b8eb4f4 Reduce footprint of HTML Timer by not creating a "cancel" closure.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30982 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-09 10:40:35 +00:00
jmesserly@google.com d700bba3e4 fix custom elements that extend tags like "section"
Some tags don't have their own HTMLElement subclass (because they lack unique DOM properties), but it should still be possible to extend them.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30833 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-03 23:46:43 +00:00
rmacnak@google.com 7ef9a46139 Remove another use of deprecated mirror API from dart:html.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30816 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-03 17:47:07 +00:00
rmacnak@google.com 314da361f0 Add demangle utility to Dartium's dart:html. Demangle typedef names in UserVisibleName.
BUG=http://dartbug.com/14892
R=asiva@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30636 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 18:31:20 +00:00
amouravski@google.com 275499f168 Clean up logging.conf file.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30371 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-18 19:30:32 +00:00
rmacnak@google.com c146776aa4 Remove now-dead stack parsing code from Dartium's dart:html.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30368 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-18 19:07:03 +00:00
amouravski@google.com 621242e4b8 Fill in blanks for Event docs.
Review URL: https://codereview.chromium.org//63883006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30319 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 22:17:44 +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
rmacnak@google.com 3ed4c8dfd7 Remove use of deprecated mirror functions from Dartium's dart:html.
BUG=http://dartbug.com/14931
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30259 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-13 23:50:05 +00:00
whesse@google.com 7010c7b798 Don't write generated C++ bindings twice, only once.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30198 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-12 17:16:17 +00:00
whesse@google.com 82c29cbb7a Avoid regenerating unchanged bindings files for Dartium.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30192 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-12 12:44:24 +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
amouravski@google.com caea84057c Fill in some canvas doc blanks.
Review URL: https://codereview.chromium.org//65703003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30082 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 23:21:50 +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 0501dcf90b Fix typo parameter name.
querySelector and querySelectorAll should take one parameter called
"selectors" to follow along with the spec.

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30068 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 20:34:29 +00:00
whesse@google.com e7afc18bb9 Print more information when Dartium IDL bindings processing fails during build.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30053 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 16:00:25 +00:00
iposva@google.com d27c33b5b2 - Reverting mirror changes.
Review URL: https://codereview.chromium.org//61873007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30028 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 01:57:18 +00:00
rmacnak@google.com c3cf0dde46 Fix some users of removed mirror API.
R=gbracha@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30016 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 00:24:53 +00:00
amouravski@google.com 5b034362b2 Updated with comments from kathyw.
Review URL: https://codereview.chromium.org//61593005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29996 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 21:09:59 +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 016d5cd0fd Updated some more documentation to be more clear.
Review URL: https://codereview.chromium.org//62023002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29975 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 14:28:47 +00:00
amouravski@google.com 28317f520c Update CanvasImageSource docs to better reflect proper style.
Review URL: https://codereview.chromium.org//61263003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29948 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 00:24:45 +00:00
amouravski@google.com 57c3e7f9d2 A few more Element method docs.
Review URL: https://codereview.chromium.org//60563002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29922 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 18:24:42 +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