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
ngeoffray@google.com
486669ed20
Update status file for flaky test.
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//14935012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22622 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 13:00:55 +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
kustermann@google.com
9f1c5e5269
Add library dependencies to debug configuration as well
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//14877015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22464 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 14:51:58 +00:00
kustermann@google.com
306e65b801
Adding library dependencies on windows
...
Previously gyp added a whole set of default library dependencies.
These dependencies are no longer added by the gyp generator and have to
explicitly state our dependencies in the gyp files.
R=ricow@google.com
Review URL: https://codereview.chromium.org//14727011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22462 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 14:26:46 +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
dbac078af5
Fix d8 path for Windows.
...
BUG=
R=kustermann@google.com
Review URL: https://codereview.chromium.org//14911003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22361 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 11:13:08 +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
kustermann@google.com
9c08adf54b
Print the number of failed tests
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//14718005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22323 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 15:17:28 +00:00
iposva@google.com
a6fb0962e2
- Fixed some old-style casts.
...
- Remove TODO as it is not feasible to ever enable.
R=kustermann@google.com
Review URL: https://codereview.chromium.org//14628009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22313 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 11:40:23 +00:00
kustermann@google.com
60f666a7d3
Revert "Revert "Use clang on mac if XCode >= 4.5""
...
The V8 dependency has been removed, so we should be able to enable clang on mac
again.
R=ricow@google.com
Review URL: https://codereview.chromium.org//14751012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22304 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 08:34:24 +00:00
kustermann@google.com
d8411ffe56
Remove v8 source dependency, enable more compiler warnings
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//14769009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22299 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 07:20:50 +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
kustermann@google.com
15414016c2
Switch to checked-in binary of d8
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//14769003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22242 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 12:26:21 +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
hausner@google.com
d852cd37c4
Another fix for debugging stack traces and captured variables.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//14449009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22196 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 19:46:07 +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
ricow@google.com
e7f790dba5
Fix csp flags send to browsers.
...
We can't send the webkit flag to chrome, it will throw an error.
R=kustermann@google.com
Review URL: https://codereview.chromium.org//14645003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22178 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 12:02:49 +00:00
kustermann@google.com
d985da1154
Make version.dart ready for svn 1.7 checkouts
...
As aprelev@ pointed out in http://dartbug.com/10193 subversion 1.7 changed the
way metadata is stored in svn checkouts.
Similar to git, svn 1.7 checkouts only have one '.svn' directory at the top
level.
Previously we had the assumption that all directories have a '.svn'.
R=ricow@google.com , whesse@google.com
Review URL: https://codereview.chromium.org//14238039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22170 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 10:17:17 +00:00