Commit Graph

793 Commits

Author SHA1 Message Date
blois@google.com d8eecf70f8 Explicitly implementing some DOM iterable APIs for performance
The move to mixins severely regressed dart2js DOM performance, this patches it some while work continues.
BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22575 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 23:31:19 +00:00
jmesserly@google.com 9005b278e7 Implement Model-Driven-Views spec for Dart
This has code ported from a few different sources:
* a port of https://github.com/toolkitchen/mdv polyfill
* a port of the observable layer:  https://github.com/dart-lang/web-ui/tree/master/lib/observe
* a port of list change summary: https://github.com/rafaelw/ChangeSummary/blob/master/change_summary.js

The observePath/PathObserver code is written from scratch, but inspired by change_summary. I tried to keep it simpler; it does not support dirty checking. There's no good way to do that until we get dart:mirrors.

R=floitsch@google.com, sigmund@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22570 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 21:39:03 +00:00
jmesserly@google.com 1cef1fbc55 "Reverting 22561"
need to investigate test failures

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22562 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 20:43:30 +00:00
jmesserly@google.com bf4f12c62b Implement Model-Driven-Views spec for Dart
This has code ported from a few different sources:
* a port of https://github.com/toolkitchen/mdv polyfill
* a port of the observable layer:  https://github.com/dart-lang/web-ui/tree/master/lib/observe
* a port of list change summary: https://github.com/rafaelw/ChangeSummary/blob/master/change_summary.js

The observePath/PathObserver code is written from scratch, but inspired by change_summary. I tried to keep it simpler; it does not support dirty checking. There's no good way to do that until we get dart:mirrors.

R=floitsch@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22561 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 20:29:14 +00:00
blois@google.com a77e44a30f Dart.idl cleanup
BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22558 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 18:51:21 +00:00
blois@google.com 75770524fa Changing metadata lookup to always use interface.id
We had some discrepancies where interface lookup was using interface.doc_js_name but member lookup was using interface.id.

Standardized on interface.id.

Also updated the @DomName annotation to always use the JS interface name, which should help with MDN fallback documentation.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22556 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 18:41:07 +00:00
blois@google.com c590177644 Map lists back to typed arrays
This is the reverse of https://codereview.chromium.org//12646004 which was temporarily mapping typed arrays to lists.
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22537 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 23:12:00 +00:00
blois@google.com 68defad6ae Testing & supporting new HTMLTemplateElement
This went into Chrome 26 stable, so exposing it in Dart w/ proper constructor, tests and supported flags.

BUG=9696
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22513 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 16:15:12 +00:00
blois@google.com 0c48687c86 Updating DOM code to use list mixins
BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22512 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 15:45:30 +00:00
podivilov@google.com 44ba9c6d61 Relax feature defines restrictions.
Checks in fremontcutbuilder don't take into account nested conditions (e.g. PagePopupController.formatMonth).
The check in databasebuilder is too aggressive as we never use conditionals in dart.idl.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22498 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 08:04:25 +00:00
blois@google.com a3feae2cc8 Fixing Location.origin to work on non-WebKit browsers.
BUG=10162
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22486 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 00:08:23 +00:00
blois@google.com f27af17116 A couple changes which clean up some of the DOM class names:
Changing the default name to use the JS interface name rather than interface ID- this fixes a couple of cases like DOMSecurityPolicy where the spec name is SecurityPolicy. This also picks up more names as being 'WebKit' prefixed.

I made the class names automatically strip the WebKit prefix and also automatically add the experimental attribute.  Like we already do for member names.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22446 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 22:58:35 +00:00
blois@google.com 585621924c Remove outdated DOM generation check
This doesn't appear to be used any more (removing it had no effect), other than to drive John nuts when he tries to rename a member.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22296 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 00:21:52 +00:00
ager@google.com e324ba7ec5 Preserve nullability when writing idl with the ildrenderer. Use nullability to call the toNativeWithNullCheck variant of conversion functions in dartium.
R=antonm@google.com, vsm@google.com
BUG=dartbug.com/3890

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22226 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 09:01:58 +00:00
blois@google.com 72cf63c068 Refactoring DOM annotations and comment generation, adding DOM API triage list
This pulls the annotation and comment code out of generator.py and into a Metadata class, which is also tracking new APIs from the IDLs.

Right now the API triage list is being updated when new members appear, but is not adding any metadata to the Dart APIs. Of note for the triage list is that there are currently 437 untriaged members- these are all of the APIs which have either been introduced, renamed or moved in the past week.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22193 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 18:35:30 +00:00
amouravski@google.com 98f022a003 First try at removing ? from HTML.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22163 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 02:29:32 +00:00
blois@google.com 47cc6126bb Removing PagePopupController.
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22162 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 02:13:10 +00:00
blois@google.com 936fdce168 Fixing build from merge issue.
In a merge I had re-added a property which had been suppressed in htmlrenamer.py.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22161 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 02:00:40 +00:00
blois@google.com 3ca6bd2dc6 Properly exposing NodeIterator and TreeWalker
Also removing references to EntityReference which is an outdated XML type.

Note that there's a bit of an oddity here around NodeFilter, which is both a class with all of the filter flags, and a function signature for a callback.

For now, I've scrubbed references to NodeFilter (the callback), but if desired I can add a new filter callback. This will most likely require a bit of Dartium work as well, so a separate CL I think.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22160 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 01:36:04 +00:00
blois@google.com def45dd2e1 Fixing error event type of Workers.
BUG=10253
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22133 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 17:53:28 +00:00
antonm@google.com 3b24778190 Allow null assignments if there is a corresponding marker.
R=podivlov@chromium.org
BUG=10025

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22067 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-26 08:48:27 +00:00
antonm@google.com 28d0af1553 Restore feature defines argument.
R=podivlov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22065 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-26 08:26:09 +00:00
antonm@google.com 819038806a Drop in and sanitize optional declarations.
R=blois@google.com, podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22027 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 12:15:36 +00:00
antonm@google.com 7291f59cdc Some more cleanups.
R=ager@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22026 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 12:14:26 +00:00
antonm@google.com a33ec28265 Proper support for ForceOptional.
R=ager@google.com, podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22021 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 10:35:27 +00:00
antonm@google.com 28c1b7c9ef WebKit IDL roll.
Review URL: https://codereview.chromium.org//13843029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22013 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 08:03:17 +00:00
antonm@google.com 12d5e65894 Chrome roll.
TBR=ager@google.com, podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21967 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:02:30 +00:00
ager@google.com 431954b584 Rename dart:typeddata to dart:typed_data.
R=asiva@google.com, floitsch@google.com, srdjan@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21871 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:54:54 +00:00
sra@google.com 600bcf9339 Make RadioNodeList be NodeList
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21858 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 00:18:39 +00:00
sra@google.com 15e8e0d70a Revert "Revert "Allow multiple tags in native clause.""
WebKit with a 'K', not 'k'

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21853 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 22:57:06 +00:00
sra@google.com 4d02ad5c16 Revert "Allow multiple tags in native clause."
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21846 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 22:07:13 +00:00
sra@google.com fb5b910c07 Allow multiple tags in native clause.
This simplifies, but does not allow us to get rid of, the typeNameOf
functions.

The '*' is no longer necessary, so
  native "*DOMWindow"
becomes
  native  "Window,DOMWindow".

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21843 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 21:41:35 +00:00
jmesserly@google.com 0b46496995 unhide nodeType constants
Node.nodeType is not very useful without these :)

See also:
https://code.google.com/p/dart/issues/detail?id=4754

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21840 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 21:30:15 +00:00
ager@google.com ee0f44baff Update code generator for dartium dart:html with typeddata.
R=antonm@google.com, vsm@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21790 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 08:24:41 +00:00
ager@google.com 7f79491c06 Move to new dart:typeddata types
Mads: if you land this, please rerun go.sh from tools/dom/scripts to regenerate html_dart2js.dart.  I didn't include it here to make this patchable.

Stephen: I still need to run the perf tests we talked about to sanity check.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21789 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 08:22:51 +00:00
antonm@google.com 4520cca2b5 Drop raises annotations support.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21725 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 08:59:39 +00:00
antonm@google.com 8784188d40 Remove BLOB conditional.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21724 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 08:48:10 +00:00
vsm@google.com ca7b684f04 Add Supported class to dart:html
This is only used by typeddata for now.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21717 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 05:54:02 +00:00
amouravski@google.com 51535c4a8e Regenerated to put SQL database back.
Review URL: https://codereview.chromium.org//14232015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21657 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 20:31:00 +00:00
antonm@google.com 8af52be78a Roll IDLs.
TBR=ager@google.com, blois@google.com, podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21643 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 18:30:23 +00:00
antonm@google.com b693f3e1ea Changes for the roll.
TBR=ager@google.com, blois@google.com, podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21627 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 16:15:01 +00:00
antonm@google.com 7db2784f62 Allow spaces around conditions.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21495 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:56:06 +00:00
antonm@google.com 766fcede4e Enable user timing.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21493 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:29:46 +00:00
antonm@google.com 739426925e Enable resource timing.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21491 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:14:57 +00:00
antonm@google.com 92e80c8404 Enable navigator content utils.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21488 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:01:29 +00:00
antonm@google.com 021a1ef818 Triage feature defines.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21487 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:45:07 +00:00
antonm@google.com 0ef5bc0c64 Enable canvas features.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21485 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:34:53 +00:00
antonm@google.com 6283a48f86 Distinguish between common and dart2js specific monitored.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21483 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:25:30 +00:00
antonm@google.com 0aa3e138a9 Cleanup now unused event names.
R=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21480 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 17:19:08 +00:00
antonm@google.com 06b08dae28 Enables necessary for Dartium.
TBR=ager@google.com, blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21422 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 08:58:36 +00:00