Commit Graph

291 Commits

Author SHA1 Message Date
ajohnsen@google.com 0d078037e2 Re-apply 'Unify dart:isolate.' with fixes for autogenerated dart2js and dartium html files.
Old Review URL: https://chromiumcodereview.appspot.com//10828410

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11084 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:47:43 +00:00
efortuna@google.com 742e1ffcbe Rename XMLHttpRequest to HttpRequest.
Review URL: https://chromiumcodereview.appspot.com//10823352

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11070 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:39:35 +00:00
antonm@google.com b919b0c4ae Remove semicolon.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11048 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 14:11:56 +00:00
antonm@google.com 689c8a2fc5 Split to dart conversion and argument expression logic.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11043 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 13:53:12 +00:00
antonm@google.com c68e205c29 Remove now unused implementation.
TBR=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10959 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:38:10 +00:00
antonm@google.com e8e62cca87 Roll IDL to mutlivm@775.
TBR=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10954 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:23:31 +00:00
antonm@google.com acb2ba84bf IDBOpenDBRequest is now in WebKit IDLs.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10951 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 13:05:20 +00:00
antonm@google.com f220c80640 Preparing Chrome roll.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10940 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 11:05:47 +00:00
sra@google.com 1d36a8f5a5 Remove old feature for generating canned native bodies.
It is obsolete - it was used only for the deprecated dom library.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10937 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-19 02:25:39 +00:00
antonm@google.com ddf391f393 Add an optional argument to HTMLCanvasElement.toDataURL.
That brings us closer to the spec and actual usage.

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10896 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 13:51:07 +00:00
sra@google.com d31e5df37d Fix for Issue 3039.
Review URL: https://chromiumcodereview.appspot.com//10825393

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10853 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 18:38:06 +00:00
antonm@google.com fbca909095 Autogenerate typed array toDart methods.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10830 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 16:30:55 +00:00
sra@google.com fa28528dca Enable (HTML)DataListElement
Add test and convenience constructor.
Fixes Issue 4474.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10786 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 02:30:15 +00:00
vsm@google.com 8aea752058 Don't auto-send credentials on XHR.get
I've introduced an alternative XHR.getWithCredentials to make this an
explicit opt-in.

BUG=4481

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10683 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 22:10:59 +00:00
vsm@google.com 154358d55e Roll IDL to multivm@762
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10681 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 21:54:06 +00:00
antonm@google.com 8a68bcf033 Proper dispatch in the presence of optional arguments.
Formerly for the methods like foo([Optional] x, [Opional] y), the following
dispatcher was emitted:

foo([x = _null, y = _null]) {
  if (y === _null) {
    return _foo_1(x);  // WRONG!
  }
  if (x === _null) {
    return _foo_2();
  }
  return _foo_3(x, y);
}

Now correct code is emitted:

foo([x = _null, y = _null]) {
  if (y !== _null) {
    return _foo_1(x, y);
  }
  if (x !== _null) {
    return _foo_2(x);
  }
  return _foo_3();
}

TBR=podivilov@chromium.org
BUG=4487

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10661 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 18:14:57 +00:00
antonm@google.com 935a049d07 Migrate to testRunner from layoutTestController.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10651 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 14:48:30 +00:00
antonm@google.com 71a4066af9 Allow static modifier for attributes.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10554 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 08:25:55 +00:00
antonm@google.com 946ae9f792 Support typed arrays constructor templates.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10501 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 12:55:21 +00:00
vsm@google.com 74aaac772a Implement spawnDomFunction
Removed the spawnDomIsolate in favor of spawnDomFunction.  The signature of this function matches spawnFunction.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10474 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 00:05:46 +00:00
antonm@google.com 0bb4674052 Allow spaces in ext attr values.
TBR=podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10331 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 11:44:28 +00:00
vsm@google.com c9c8d17cfd Move noSuchMethod hook from UnknownElement to Element
Review URL: https://chromiumcodereview.appspot.com//10826146

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10245 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 20:09:55 +00:00
sra@google.com c4a7f117c2 Make more native DOM array-like objects known to compiler.
This improves Dromaeo traversal benchmarks up from ~100 to ~160. (They still need more work - target is ~400.)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10158 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 10:26:36 +00:00
vsm@google.com 8c40dc703d Partially rollback noSuchMethod for UnknownElement until we figure out code size issue
jacob: This won't effect Dartium.  Just rolling back for dart2js, which wasn't working anyway.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10118 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 14:19:08 +00:00
vsm@google.com 7de22f0c61 Roll IDL to multivm@733
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10104 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 01:15:12 +00:00
antonm@google.com f697b7f0b3 Minor refactoring to streamline the logic.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9959 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 19:20:57 +00:00
antonm@google.com c42f43099e Reapply the fix.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9942 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 15:28:48 +00:00
antonm@google.com bc4831e99f Unify null treatment.
Always use WithNullCheck suffix instead of a special flag.

TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9940 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 14:59:48 +00:00
antonm@google.com da56474cea Quick fix to make bbs green.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9938 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 14:48:26 +00:00
antonm@google.com 537abe2e71 Unify processing of the cases when argument is declared optional in IDLs and is not optional in WebKit.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9937 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 14:16:02 +00:00
antonm@google.com 243aab2472 Add new event names.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9932 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 10:58:06 +00:00
dgrove@google.com 9f3b6b13ce Change #library("dom") to #library("dart:dom_deprecated") .
Change #library("html") to #library("dart:html") .

Fix issue 4194.
Review URL: https://chromiumcodereview.appspot.com//10826023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9919 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 23:41:18 +00:00
antonm@google.com c8e6b41aa3 Minor rework of argument emission.
Inline the method and minor cosmetics.

TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9894 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 17:14:20 +00:00
antonm@google.com 088d5937cb Autogenerate additional arguments for fanky methods.
Methods with CallWith=ScriptArguments|CallStack are declared
w/o last argument in WebKit IDLs.  Formerly this last argument
was manually injected via dart.idl, but it's not robust in the
presence of IDL modifications.

TBR=podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9890 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 15:48:35 +00:00
antonm@google.com dc479ea389 Automatically support fancy Console methods.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9887 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 15:29:14 +00:00
antonm@google.com b2c06f655d Use nested emitter idiom.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9886 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 14:08:30 +00:00
antonm@google.com 318574c80a Refactor invocation emission.
Now cpp_arguments are built inside a single method and invocation
is emitted in the main mega-method.

TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9885 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 13:41:50 +00:00
antonm@google.com a8daaa9d6a Emit parameters directly, w/o auxilary emitter.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9884 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 13:09:51 +00:00
antonm@google.com 43c4f2d2cd Minor refactoring.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9883 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 12:56:46 +00:00
antonm@google.com 64cc3e0925 Refactor callback emission.
Move most of the logic into common part.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9882 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 12:43:07 +00:00
antonm@google.com 000fb5ed2c Communication optionality of priority in CSSStyleDeclaration.setProperty via dart.idl.
R=podivilov@chromium.org,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9877 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 10:21:49 +00:00
dgrove@google.com 89dd99fdd0 Convert DOM and HTML frog to dart2js.
Review URL: https://chromiumcodereview.appspot.com//10800104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9871 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 22:45:59 +00:00
johnniwinther@google.com c6d70857e4 Several new features and improvements for dartdoc.
* Dartdoc now works on multiple libraries and entrypoints.
* A dartdoc/dartdoc.bat script is generated into dart-sdk/bin
* The API libraries recognized by dart2js using the 'dart:' prefix
  have been updated to use the 'dart:*' name in their library tags.
  This makes the libraries show up with the correct prefix in the API docs.
* The processed libraries can be selected or limited, API
  libraries are not processed by default, and links to api.dartlang.org
  can be generated for API libraries.

  Because of the changed library tags on API libraries, the generated
  links don't current match the addresses on api.dartlang.org.
  For instance, the docs for Object is currently located in
  api.dartlang.org/core/Object.html, but with the new library
  tag 'dart:core', the address will be api.dartlang.org/dart_core/Object.html.
  The links will thus not work until api.dartlang.org have been updated with
  this patch.
* Code and pre blocks use overflow-x:auto to support wide lines.

BUG=2656,2686,3533,4029,4145,3555

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9843 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 09:16:33 +00:00
vsm@google.com ff7ee386e2 Provide noSuchMethod hook for UnknownElement
The test passes on dartium, fails on dart2js.  The latter appears to be a dart2js bug related to noSuchMethod.  Still need to update the html.status file.

TEST=unknownelement_test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9839 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 06:06:43 +00:00
vsm@google.com 9997255c59 Roll IDL to multivm@713
Added quota and gamepad modules.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9814 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 15:50:59 +00:00
antonm@google.com a924800b14 WebKit recently has been changed to pass context as 1st argument.
Review URL: https://chromiumcodereview.appspot.com//10810055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9803 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 09:25:07 +00:00
vsm@google.com 3fedf84a1f Cleanup queryAll to return List<Element>.
BUG=3867
TEST=html/queryall-test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9784 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-20 17:08:53 +00:00
sra@google.com 7b24c8ac90 Add MutationObserver constructor
Add custom MutationObserver.observe method

The observe method supports configuration by dictionary and optional arguments:

observer.observe(node, {'subtree': true});
observer.observe(node, subtree: true);

If both are given, they are merged.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9752 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 02:16:09 +00:00
vsm@google.com ad4c250f7b Roll IDL to multivm@707
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9743 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-18 17:48:17 +00:00
podivilov@google.com e79091fc3b Do not treat callbacks with no handlers as interfaces.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9734 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-18 10:45:06 +00:00