Commit Graph

292 Commits

Author SHA1 Message Date
blois@google.com 8b9d9b7990 Revert "Adding constructor to ContentElement."
This reverts commit 12851. The test is failing on Chrome Win7 dart2js for some reason.

TBR=vsm
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12852 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 17:10:35 +00:00
blois@google.com d270006100 Adding constructor to ContentElement.
BUG=3870

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12851 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 16:48:38 +00:00
blois@google.com f1afe99cd9 Fixing creating SVG elements with trailing newlines.
BUG=3846

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12846 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 16:30:26 +00:00
lrn@google.com a1faa6f135 Change IllegalArgumentException to ArgumentError.
Review URL: https://codereview.chromium.org//10989013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12841 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 12:27:52 +00:00
antonm@google.com 9480a93fc4 Refresh generated files after new roll.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12835 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 11:05:46 +00:00
antonm@google.com f527595489 Roll Chrome forward.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12833 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 10:18:16 +00:00
efortuna@google.com 55d7ab1fac Revert r12819 to look at IE fix offline.
Review URL: https://codereview.chromium.org//10986013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12823 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 00:13:02 +00:00
efortuna@google.com 7c00742634 Change raw string indicator from @ to r.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12822 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 23:59:09 +00:00
efortuna@google.com c9ea6ff843 Remove Webkit prefix for RequestAnimationFrame.
Review URL: https://codereview.chromium.org//10965044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12819 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 23:24:16 +00:00
efortuna@google.com 3f3417c68d Revert r12808.
Review URL: https://codereview.chromium.org//10981005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12810 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 21:43:42 +00:00
efortuna@google.com 42a03cb5a3 Reapply 12799.
Review URL: https://codereview.chromium.org//10957066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12808 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 21:23:36 +00:00
efortuna@google.com 23a4b72d67 Revert 12799.
Review URL: https://codereview.chromium.org//10957064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12802 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 19:54:37 +00:00
efortuna@google.com a41389ac03 Don't generate FooList if it behaves like List<Foo> exactly.
Review URL: https://codereview.chromium.org//10941047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12799 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 19:42:16 +00:00
antonm@google.com 3b1061c5e4 Revert "Emit static IDL members."
TBR=blois@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12797 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 18:51:18 +00:00
antonm@google.com 5bec20abdc Emit static IDL members.
R=blois@google.com,podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12795 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 18:36:12 +00:00
blois@google.com 3ebafe7947 Fixing up measurement test.
The test was trying to validate that postMessage is called back before setTimeout(0), but there is no guarantee of this by the browsers and the behavior is inconsistent (even within the context of a single browser).

BUG=1940

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12723 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 16:59:39 +00:00
jacobr@google.com 5f65b518bc Enable document.implementation as it is useful when implementing a web components polyfill among other things.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10964027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12668 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:21:08 +00:00
blois@google.com 46c4f39719 Fixing up Table.createTBody et al.
BUG=4342

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12662 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 22:53:57 +00:00
blois@google.com c145433018 Fixing samples/swarm test.
This was a bug from my CL to remove interfaces, these methods which forward to static factory methods need to handle the defaults properly.

BUG=5297

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12610 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 22:28:55 +00:00
efortuna@google.com 12c3bcdd4d Take three of FooList to List<Foo> again.
Review URL: https://codereview.chromium.org//10947040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12596 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 19:49:11 +00:00
efortuna@google.com 1bc6009f30 Revert r12581.
TBR
Review URL: https://codereview.chromium.org//10952032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12590 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 19:03:59 +00:00
efortuna@google.com 7638353d5c Take two of making FooList List<Foo>.
Review URL: https://codereview.chromium.org//10952008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12581 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 17:50:47 +00:00
blois@google.com e5caa173b5 Removing interfaces.
This converts all interfaces in dart:html to abstract classes and changes the factory providers from factory methods to static methods.

This CL represents the minimal initial change to remove interfaces, but there's quite a bit of further cleanup which can be done after this (eliminating the factory providers in favor of redirecting factory constructors).

Also I'll be splitting the dartdoc changes out to a separate CL since that's a fairly large change in itself.

BUG=4525

Review URL: https://chromiumcodereview.appspot.com//10915245

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12580 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 17:30:49 +00:00
blois@google.com 9b250cab27 Revert "Changing return value of request animation frame."
This reverts commit 0df59d6575544308571b7c9c57d8e6f30aa3078b.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12509 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 20:09:50 +00:00
blois@google.com de6e3ca8e8 Changing return value of request animation frame.
This should now be working after http://code.google.com/p/dart/source/detail?r=12440

BUG=3469

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12508 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 19:55:55 +00:00
podivilov@google.com 54071750b6 Fix generating html_dart2js.dart and html_dartium.dart files.
R=efortuna@google.com,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12506 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 17:18:41 +00:00
blois@google.com 03166989b9 Fixing up setting styles to invalidate on IE9.
This CL fixes a bug with the original CL where setProperty was defined twice for dartium.

BUG=2772

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12454 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 19:51:21 +00:00
antonm@google.com 61e9c9f2a8 Correct handling of return types for callbacks.
Actually, all WebKit cares about is if callback threw an exception or not.
So return type of callbacks should be actually ignored.
As of now it is always bool for WebKit IDLs, but sometimes it gets overridden
to void by supplemental IDLs.

R=podivilov@chromium.org
BUG=3016

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12440 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 16:03:30 +00:00
podivilov@google.com a742f0476e Add _Merged suffix to merged dartium implementation files.
TBR=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12429 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 10:59:27 +00:00
podivilov@google.com f1b4f7ed25 Fix dart:html generated directory structure and unify file names between backends.
New structure looks like this:
generated
├── dart2js
│   ├── dart
│   │   └── (interfaces, implementations, factory providers)
│   └── html_dart2js.dart
└── dartium
    ├── cpp
    │   └── (native bindings)
    ├── dart
    │   └── (interfaces, implementations, factory providers)
    ├── DartDerivedSources.cpp
    ├── DartResolver.cpp
    └── html_dartium.dart

R=antonm@google.com,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12426 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 09:35:45 +00:00
efortuna@google.com 2f5f36c87c Revert 12414.
Review URL: https://codereview.chromium.org//10910301

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12416 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-16 00:27:43 +00:00
efortuna@google.com 2c6d3d823d Part one of Converting DOMList types like FooList to List<Foo>.
This makes the immutable list types actually inherit from list, but to actually make the
FooList types invisible to the user is going to take a lot more work.
Additionally "lists" with extra methods will need to be unified for consistency.
Review URL: https://codereview.chromium.org//10914293

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12414 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-15 22:15:41 +00:00
blois@google.com 819b948770 Revert "Flushing out requestAnimationFrame polyfill further."
This reverts commit 97206fb4caccdde006e4ce8676757bf298d4912d.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12406 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 21:28:03 +00:00
blois@google.com fcf2482d19 Flushing out requestAnimationFrame polyfill further.
Changing return value of request animation frame.

BUG=3469,3016

Review URL: https://chromiumcodereview.appspot.com//10919156

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12405 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 21:17:23 +00:00
antonm@google.com 1ce3d9003a Support sequence<T> as return type.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12389 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 15:30:31 +00:00
antonm@google.com 5d81898a10 Support sequence<T> as native bindings arguments.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12381 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 12:36:21 +00:00
antonm@google.com 48876ada8d Support proper parsing of sequence<T>.
And minor refactoring.

R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12337 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 16:18:56 +00:00
antonm@google.com 5661fd2288 Also require v8 scope for ScriptValue.
For now only for any, will get added for others too.

TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12325 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 13:06:37 +00:00
antonm@google.com 708d060ab8 Map any to ScriptValue.
At least that's the way IDB in WebKit does it.

TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12324 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 12:58:19 +00:00
antonm@google.com b7379326e6 Add another event name.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10910220

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12248 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 09:30:17 +00:00
blois@google.com 1643d0b306 Revert "Fixing up setting styles to invalidate on IE9."
This reverts commit 3bf7c99df82d8343efbcd757e5fb1acd6d2aa611.

BUG=

Review URL: https://chromiumcodereview.appspot.com//10905219

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12219 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 20:29:40 +00:00
blois@google.com 06499a594c Fixing up setting styles to invalidate on IE9.
BUG=2772

Review URL: https://chromiumcodereview.appspot.com//10917148

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12217 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 20:19:05 +00:00
antonm@google.com e675b8581c Migrate templates to new getter syntax.
Still there are a couple of occurences of get foo native 'JS' problem,
they are left as is.

TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10913191

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12186 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 11:47:41 +00:00
antonm@google.com 6370617856 Revert some more cases.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10928104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12178 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 10:37:20 +00:00
antonm@google.com c4fe26a105 Return to old getter syntax for get foo native 'JS body' case.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10918167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12177 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 10:30:18 +00:00
antonm@google.com de54aa8289 Migrate scripts to new getter syntax.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10907171

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12173 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 10:06:59 +00:00
lrn@google.com f52c24b62f Rename NoSuchMethodException to NoSuchMethodError.
Moved NoSuchMethodError to errors.dart.
No changes in co19 tests, but test status updated.

Review URL: https://chromiumcodereview.appspot.com//10909166

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12172 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 09:52:25 +00:00
vsm@google.com 7e57d748df Roll WebKit IDL to multivm@858
Automatic output of: ./idlsync.py && ./fremontcutbuilder.py && ./dartdomgenerator.py

Review URL: https://chromiumcodereview.appspot.com//10911186

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12139 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 17:58:35 +00:00
antonm@google.com 31e338ba7b Some more .gitignores.
TBR=efortuna@google.com

Review URL: https://chromiumcodereview.appspot.com//10912179

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12136 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 17:37:24 +00:00
antonm@google.com a1770a8bbd Sync .gitignore with the corresponding svn properties.
R=ahe@google.com

Review URL: https://chromiumcodereview.appspot.com//10914176

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12122 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 15:44:25 +00:00