Commit Graph

1657 Commits

Author SHA1 Message Date
vsm@google.com 440b01ccaa Regen dart:html from IDL with fixes
Some minor fixes:
- HALF_FLOAT_OES moved to OesTextureHalfFloat
- Window.Css renamed to Window.css to avoid conflict with Css class
- LocalMediaStream removed upstream

TBR=blois

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22820 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 22:12:54 +00:00
vsm@google.com 85c7111f07 Revert "Regen from IDL 1242"
Need to fix up dart2js reported errors.

TBR=blois
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22813 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 19:51:56 +00:00
vsm@google.com 7f62404fc5 Regen from IDL 1242
TBR=blois

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22812 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 19:40:36 +00:00
vsm@google.com 8379279dc0 Retry "Changes for webkit roll 148757-149482"
TBR=antonm

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22801 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 16:39:09 +00:00
vsm@google.com 45fc399cf7 Revert "Changes for webkit roll 148757-149482"
TBR=antonm

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22769 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 06:06:49 +00:00
vsm@google.com da46c65d3b Changes for webkit roll 148757-149482
Review URL: https://codereview.chromium.org//14954007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22765 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 05:37:13 +00:00
antonm@google.com 792209e050 Properly process the case of CallWith=ScriptArguments.
R=podivilov@chromium.org
BUG=10628

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22751 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-15 18:08:37 +00:00
ahe@google.com 04627db5e6 Use "self" not "window" for Worker API.
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22697 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 18:35:25 +00:00
jmesserly@google.com ee7bbf71f6 fix warnings caused by xtag
fixes http://dartbug.com/10651

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22692 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 18:07:30 +00:00
jmesserly@google.com 02ffdc01ad expose MDV addBindings
this is used to implement Web UI style bindings in the shadowroot template for declarative custom elements.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22660 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 03:22:00 +00:00
jmesserly@google.com 9920deeb51 add doc for Node.append
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22657 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 23:32:29 +00:00
jmesserly@google.com 215e6e66ad Move top-level internal methods of the MDV system into a class.
In dart:html we don't have the luxury of sublibraries, so we resort to the static-methods pattern to emulate a namespace.

If there was a more appropriate class I put it there, but some methods are shared by multiple other classes.

Note, this uses another CL (https://codereview.chromium.org/14795005) as its baseline.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22654 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 22:57:45 +00:00
jmesserly@google.com 6a17da6b4a Add support for custom elements to MDV
1. Custom elements should be able to override Node.bind
2. Custom elements should be able to intercept attributes set by the binding system

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22650 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 20:27:30 +00:00
sra@google.com 5a2d284a38 Revert "Revert "dart2js native mixin application should extend 'Interface', not 'Object'""
Review URL: https://codereview.chromium.org//15007011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22610 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-11 02:29:49 +00:00
blois@google.com 31db2b16d2 Fixing overrideMimeType on IE10.
I thought the test was failing for a different reason earlier, but it's that overrideMimeType is not supported on IE.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22607 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 23:47:37 +00:00
blois@google.com 4fd4ab5b36 Syncing CssStyleDeclaration.setPropertyValue's signature between dart2js and dartium
Because of IDL changes, the generated signature changed but the dart2js code had a polyfill which did not change.

The last parameter really should be optional, but this is dependent on https://code.google.com/p/dart/issues/detail?id=9156.

BUG=10583
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22606 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 23:22:16 +00:00
sra@google.com e413e4ef0c Revert "dart2js native mixin application should extend 'Interface', not 'Object'"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22604 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 22:40:09 +00:00
sra@google.com a24c4034b8 dart2js native mixin application should extend 'Interface', not 'Object'
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22602 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 22:13:51 +00:00
jmesserly@google.com 870bad8d86 MDV v3 changes: add getInstanceModel for custom syntax
They also simplified TemplateIterator

I added getInstanceFragment, in anticipation of "MDV v4" :)

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22591 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 18:59:40 +00:00
blois@google.com f297525d5a Adding annotations to DOM constants.
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22589 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 17:39:40 +00:00
blois@google.com 078208e1cf Adding ability to specify request headers and mime type for Future-based XHRs.
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22588 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 17:36:42 +00:00
blois@google.com e0be480237 Updating DOM metadata with latest IDL version.
BUG=
R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22580 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 00:35:19 +00:00
amouravski@google.com bc44aa444e Changed the order of optional parameter creation so that they're created from
last to first.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22578 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 00:02:58 +00:00
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
floitsch@google.com 1a2ec73fee Fix dartium that was broken by Completer change.
BUG= http://dartbug.com/10470

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22527 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 19:58:17 +00:00
blois@google.com c10ca84eb4 Making HiddenInputElement implement InputElementBase.
BUG=10520
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22520 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 18:24:57 +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 93dedc90ab Adding tests for experimental Safe DOM creation technique.
This is just the underlying DOM creation code which should be able to parse HTML with no script execution. I'd like to get this in so we can make sure it works across all supported platforms. This does not do any sanitization or validation.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22473 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 18:32:47 +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
efortuna@google.com 6f7ef4126d Reapply "Aggregate CSS manipulation functions in html lib." (r22400)
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22424 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 16:27:16 +00:00
floitsch@google.com fc31fb12b4 More fixes.
Review URL: https://codereview.chromium.org//14992002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22423 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 16:26:29 +00:00
efortuna@google.com 33b4567f83 "Reverting 22400"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22401 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 00:12:34 +00:00
efortuna@google.com 5e07799aba Aggregate CSS manipulation functions in html lib.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22400 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 00:04:15 +00:00
johnniwinther@google.com b92b6aa724 Pub test updated.
Review URL: https://codereview.chromium.org//14901002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22351 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 05:46:24 +00:00
jmesserly@google.com dd18954e14 fix dom.py -- initdir was not right if running from a relative path
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22343 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 22:21:37 +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
hausner@google.com 709db1ce1d Attempt to fix Dartium build
Add missing part of directive

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

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