jacobr@google.com
5825741150
Cleanup mdn scripts
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9315026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3920 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-03 22:01:58 +00:00
nweiz@google.com
aa269a9589
Change a couple vars -> finals.
...
TBR
Review URL: https://chromiumcodereview.appspot.com//9234069
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3627 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-26 20:39:51 +00:00
zundel@google.com
7169189529
Update map literal syntax to expect only one type parameter
...
As of the spec v0.6, the correct syntax is now:
<V>{"key" : value };
Whereas you used to also specify the key. Added a deprecation warning
for the old syntax.
http://code.google.com/p/dart/issues/detail?id=1151
Review URL: https://chromiumcodereview.appspot.com//9235015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3606 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-25 20:21:24 +00:00
nweiz@google.com
538dabd388
Add constructors for Float32Array and friends.
...
Fixes issue 560.
TBR
Review URL: https://chromiumcodereview.appspot.com//9113039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3582 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-25 00:04:39 +00:00
nweiz@google.com
2cbfd0ffe8
Make ElementList return ElementLists.
...
TBR
Review URL: https://chromiumcodereview.appspot.com//9270054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3529 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 00:23:10 +00:00
nweiz@google.com
3f854d42d8
Don't use _toList on FrozenElementList.
...
TBR
Review URL: https://chromiumcodereview.appspot.com//9283003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3518 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 22:27:28 +00:00
nweiz@google.com
984852f222
Make NodeList methods return NodeLists rather than List<Node>.
...
Review URL: https://chromiumcodereview.appspot.com//9271019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3508 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 19:32:22 +00:00
jimhug@google.com
42c584b7c4
Revert "Example showing alternate async measurement solution"
...
This reverts r3473 which was causing several buildbots to go red due to
breaks in swarm tests.
The issue appears to be minor - but the buildbots have been red for too long.
Review URL: https://chromiumcodereview.appspot.com//9145004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3474 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-21 13:53:40 +00:00
jacobr@google.com
c463460ff5
Example showing alternate async measurement solution
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9148015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3473 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-21 03:01:15 +00:00
nweiz@google.com
54277fd459
Fix up and test FrozenElementList.
...
TBR
Review URL: https://chromiumcodereview.appspot.com//9270022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3464 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 21:07:41 +00:00
nweiz@google.com
0332f4b776
Register Document events on Document, not HTMLDocument.
...
TBR
Review URL: https://chromiumcodereview.appspot.com//9246005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3379 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-17 23:58:27 +00:00
nweiz@google.com
d39197abc6
Add tests for Element#elements.
...
This also factors out some of the range functions in NodeList and adds them to
_Lists. _Lists was then renamed to Lists so it could be accessed from the
testing code.
This was originally submitted as r3320. That was rolled back due to errors in
the dartium bot, but the logs are unavailable and local tests seem to pass so
we're rolling forward again.
TBR
Review URL: https://chromiumcodereview.appspot.com//9178030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3374 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-17 22:34:16 +00:00
nweiz@google.com
14f8c8a82f
CSSStyleDeclaration#cssText should take a string.
...
TBR
Review URL: https://chromiumcodereview.appspot.com//9243023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3369 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-17 21:46:56 +00:00
sra@google.com
8539d4bc13
Revert "Add tests for Element#elements."
...
This reverts commit 19f61e67a8543fc73e8a66bf45e6f4e25e5e0655.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9210006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3325 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-14 08:30:46 +00:00
nweiz@google.com
8d027766cc
Allow non-string values to be passed to setProperty and other CSS properties.
...
Fixed issue 825.
TBR
Review URL: http://codereview.chromium.org//9211018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3321 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-14 02:02:39 +00:00
nweiz@google.com
e3171e5d18
Add tests for Element#elements.
...
This also factors out some of the range functions in NodeList and adds them to
_Lists. _Lists was then renamed to Lists so it could be accessed from the
testing code.
TBR
Review URL: http://codereview.chromium.org//9207020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3320 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-14 01:47:43 +00:00
nweiz@google.com
d70df93d96
Support various range methods on NodeList.
...
Fix issue 1077.
Review URL: http://codereview.chromium.org//9199002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3309 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-13 20:53:36 +00:00
nweiz@google.com
1ec79ff3ca
Fix a dumb typo in SVGElementWrappingImplementation.
...
TBR
Review URL: http://codereview.chromium.org//9190060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3255 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 21:17:17 +00:00
nweiz@google.com
c6c9f5c665
Fix SVGElement#classes.
...
TBR
Review URL: http://codereview.chromium.org//9107047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3251 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 20:00:17 +00:00
gbracha@google.com
d3bcc88674
Added method map to Collection interface and all its implementations (except classes generated from IDL for the DOM).
...
Review URL: http://codereview.chromium.org//9114021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3223 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 01:25:01 +00:00
nweiz@google.com
f6c51d1567
Fix various warnings and errors in html_diff and its annotations.
...
TBR
Review URL: http://codereview.chromium.org//9110046
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3221 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 01:17:52 +00:00
jacobr@google.com
20e99ef0c2
Support map in generated dart:html files.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9167006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3128 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 04:26:52 +00:00
nweiz@google.com
6828d81999
Fix FrozenElementList#forEach.
...
TBR
Review URL: http://codereview.chromium.org//9146017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3123 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 00:17:41 +00:00
nweiz@google.com
b015c01998
Properly type the clone method for Element and a few of its subclasses.
...
TBR
Review URL: http://codereview.chromium.org//9127005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3051 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 19:44:42 +00:00
sra@google.com
8fa41465c9
Use .dynamic to suppress dartc warning.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9113004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2979 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 05:40:32 +00:00
nweiz@google.com
694afe0a9f
Support SVGElement#elements, #innerHTML, and #outerHTML. Also add a .svg constructor.
...
Review URL: http://codereview.chromium.org//8965006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2975 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 01:17:01 +00:00
zundel@google.com
bc620b97a8
Moves over remaining .dart code references to 'factory' in interface declartions to 'default'
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9016026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2752 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 13:35:54 +00:00
nweiz@google.com
4e0ec27af4
Get rid of ObjectElement#svgDocument.
...
TBR
Review URL: http://codereview.chromium.org//8970012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2497 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 00:38:07 +00:00
nweiz@google.com
988a87d63c
Properly wrap ObjectElement#svgDocument, and regenerate release/html*.dart.
...
TBR
Review URL: http://codereview.chromium.org//8969008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2492 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 23:25:02 +00:00
nweiz@google.com
5481a15bfe
Expose ObjectElement.svgDocument.
...
TBR
Review URL: http://codereview.chromium.org//8965009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2489 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 23:15:47 +00:00
nweiz@google.com
548ecd9e5e
Add a couple useful SVG constructors.
...
Review URL: http://codereview.chromium.org//8919029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2475 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 20:06:12 +00:00
nweiz@google.com
b82fa6a145
Cleaner and more correct fix for _ChildrenNodeList#forEach.
...
TBR
Review URL: http://codereview.chromium.org//8953001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2454 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 00:57:49 +00:00
nweiz@google.com
304db26749
Fix _ChildrenNodeList#forEach.
...
TBR
Review URL: http://codereview.chromium.org//8907051
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2448 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 22:46:00 +00:00
nweiz@google.com
a811209d78
Add a script to generate HTML and DOM docs with cross-links to one another.
...
This entails adding callbacks to dartdoc for injecting additional
comments, as well as adding somewhat deeper support for hashing and
equality testing of Frog objects.
The next step is to inject the annotations into the HTML and DOM library source itself.
Review URL: http://codereview.chromium.org//8771054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2199 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 22:15:12 +00:00
sigmund@google.com
d45d3596c5
frog: better errors/warnigns about type annotations in map literals.
...
Using 2, instead of 1 type arguments is only a warning (this matches the vm)
Review URL: http://codereview.chromium.org//8856004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2189 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 19:10:37 +00:00
sigmund@google.com
cb86ec8e6a
buildfix: not use type annotation in map literals within htmllib
...
Review URL: http://codereview.chromium.org//8855001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2187 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 17:43:52 +00:00
sigmund@google.com
b0d4e767fc
frog: use type annotation in map and list literals
...
BUG= http://code.google.com/p/dart/issues/detail?id=220 http://code.google.com/p/dart/issues/detail?id=221
Review URL: http://codereview.chromium.org//8849001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2186 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 17:37:00 +00:00
jacobr@google.com
770a6a6c0a
New version of the bindings.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8839010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2168 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 12:31:46 +00:00
scheglov@google.com
54c5f79d42
Check that interface constructors and default class constructors are compatible.
...
1. Number of required parameters.
2. Names and order of named parameters.
3. [disabled] type warning for non-identical types.
4. [wait for Eric, not implemented] type parameters check.
R=zundel@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8786002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2124 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 14:58:16 +00:00
nweiz@google.com
c485674382
Get html-diff running again.
...
TBR
Review URL: http://codereview.chromium.org//8769021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1998 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 22:51:54 +00:00
jacobr@google.com
1ea93e5f9f
Fixes to the html library matching vsm's changes to the generated code.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8659025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1901 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-29 18:59:47 +00:00
jacobr@google.com
5b31d3d00f
This class wasn't used anyway. Removing as it causes errors due to recent VM changes.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8673005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1771 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 01:12:10 +00:00
nweiz@google.com
4b756816ea
Add a script for determining which DOM methods correspond to which HTML methods.
...
Ultimately, this will be used for generating documentation. Currently, though,
it just prints out information to the console.
This also includes some annotations to the HTML library, where the DOM
correspondence couldn't be auto-detected.
Review URL: http://codereview.chromium.org//8548019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1767 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 23:39:59 +00:00
jmesserly@google.com
c21417ef6e
Revert "Fix some type warnings in html library."
...
The factory change seems to have broken tests on Dartium.
Review URL: http://codereview.chromium.org//8561002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1642 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 23:58:43 +00:00
jmesserly@google.com
0c187847e4
Fix some type warnings in html library.
...
Two changes:
* factories for Element are typed to return Element. That way we know they're downcastable to things like CanvasElement.
* switch "final" to an explicit "dom.HTMLElement", so we know it has innerHTML on it. (from looking at the static tpes, it thought "temp" was just an dom.Element. You're probably familiar with this "feature" of the DOM... ;-) )
Review URL: http://codereview.chromium.org//8591031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1637 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 22:22:34 +00:00
antonm@google.com
b869b81c1d
Mirgate dart:html to initWebKitWheelEvent.
...
Recently Dartium code generator started to follow more closely JS-specific
stuff in IDLs. And, as an example, for JS we have WheelEvent.initWebKitWheelEvent, not
WheelEvent.initWheelEvent as for other languages. Hence the change.
Review URL: http://codereview.chromium.org//8581002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1582 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 19:26:40 +00:00
jacobr@google.com
157b35983a
Implement measurement using promises
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8363040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1050 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 23:17:47 +00:00
ngeoffray@google.com
5496005d1d
Add optional arguments to our indexOf/lastIndexOf methods.
...
Review URL: http://codereview.chromium.org//8424012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@947 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 13:21:30 +00:00
nweiz@google.com
7ac8255b44
Add constructors to all the event classes.
...
Review URL: http://codereview.chromium.org//8404013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@914 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 19:48:50 +00:00
vsm@google.com
e95572dd87
Missing parens
...
Frog is breaking on this when compiling swarm.
Review URL: http://codereview.chromium.org//8390039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@750 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 14:19:16 +00:00