Commit Graph

148 Commits

Author SHA1 Message Date
vsm@google.com 5267857888 Modify blink type map to finalize lazily
Ivan suggested altering our type maps to add a level of indirection - to avoid eagerly finalizing all classes.

Siva: not sure how you're instrumenting startup - can you test this out?

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37222 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-11 05:48:33 +00:00
efortuna@google.com 0e1022a6f7 Make fill parameter in context2d default to 'nonzero' as per the spec.
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36134 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-13 21:04:17 +00:00
vsm@google.com 7f7635fa5c Add type maps from blink name to html name
TBR=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36107 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-13 15:48:29 +00:00
efortuna@google.com c0235e93ab "Reverting 36054"
TBR

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36071 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-12 21:17:14 +00:00
efortuna@google.com 4599791901 Make fill parameter default to empty String.
BUG=
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36054 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-12 19:30:48 +00:00
leafp@google.com d1f0594840 Initial overloading implementation in _blink
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35662 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-01 22:03:06 +00:00
leafp@google.com 5e0688e1ec This CL contains all of the changes for splitting off all of the native
calls from dart:html into dart:blink.  As currently configured, the
dart:blink library will be empty and unused.  The only changes in the
idl generated dart and C++ code in the default configuration should
be cosmetic.  The global variable "dart_use_blink" in systemnative.py
currently controls whether or not the real blink library is
generated.  Enabling this requires as yet unchecked in changes to
blink.  These changes are expected to land as part of the chrome
35 roll.

Support for building with/without blink
DOM changes for checked receivers
Dartium native call generation refactor

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35430 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 16:22:08 +00:00
jacobr@google.com 1ea29a21d7 Fixes for Chrome 34 merge
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34069 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-18 22:08:44 +00:00
sra@google.com 246f07b5c8 Fix for FileReader.readAsArrayBuffer http://dartbug.com/17058
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33048 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 00:31:05 +00:00
jacobr@google.com e9bcf2ddca Make the Dart code generators handle the Image constructor specified in the IDL without crashing or generating multiple constructors.
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32621 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 20:47:13 +00:00
blois@google.com bff7179948 Fixing issues from IDL upgrade
* CustomElement update to match new Element syntax fixes analyzer issue
* Document.createTreeWalker/createNodeIterator change to pass in last argument for IE11.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32513 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-10 19:39:50 +00:00
blois@google.com 93b7001172 Making readonly fields on interfaces be readonly
This will be causing compilation warnings once https://codereview.chromium.org/140803002 is landed.

BUG=16105
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31892 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-16 18:13:48 +00:00
jacobr@google.com 4dd740e2de Fix bug 15417
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31032 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 18:25:41 +00:00
blois@google.com 768e147559 Fixing comment constructor not functioning on IE
BUG=13943
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29777 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 22:45:11 +00:00
efortuna@google.com 7e685302b9 Add back unseparated out version of method overloads in dart:html.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29135 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 00:07:45 +00:00
efortuna@google.com a4a2e26bde Reapply lineDash with polyfill.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29050 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 00:15:36 +00:00
amouravski@google.com 0177ed7ae4 CanvasRenderingContext2D.fillText now works correctly with null maxWidth.
BUG=13369
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28963 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 22:09:07 +00:00
efortuna@google.com 035e04fb2d Making all base class DOM types throw as well (to prevent a default constructor for DOM types that are not constructable).
BUG=https://code.google.com/p/dart/issues/detail?id=11620
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28615 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 21:58:46 +00:00
efortuna@google.com 95c3be5481 Made index_db Cursor.next behavior consistent between JS and vm.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28431 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 23:45:59 +00:00
blois@google.com 1aa8a7be0e Adding Element.created constructor and .created constructors to all subclasses. Also ensuring generative constructor for all superclasses.
This is for post-construction custom element creation.

Element.created is public, then the base classes of that get private ._created constructors.

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28120 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 21:26:06 +00:00
efortuna@google.com 3854434797 Removed position and totalSize because HttpRequestProgressEvent has other fields that do the same thing.
Turns out position and totalSize were on Firefox 3 and earlier, but we don't
have to worry about backwards compatibility that far.
https://developer.mozilla.org/es/docs/XMLHttpRequest/Usar_XMLHttpRequest

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27900 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 18:03:20 +00:00
blois@google.com d312cbbd08 Exposing document.createElement
As part of removing all $dom_ APIs, making this one public. There are valid scenarios for creating elements in other documents.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27415 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-12 00:00:39 +00:00
blois@google.com dbf675d60d Adding conversion support for JSON XHR requests.
This has been a half-supported feature for Chrome for a while, but popular elsewhere. Appears that recent Dartium behavior broke, so adding a test, but still need to fix Dartium.

BUG=13069
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27215 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 22:02:22 +00:00
blois@google.com 871fbc9189 Fixing Element.shadowRoot to work with webkitShadowRoot
Chrome 31 changed it to shadowRoot, need to support the prefixed version as well.

BUG=13061
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27203 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 17:47:37 +00:00
blois@google.com b14e379d94 Cleaning up a bunch of DOM generation tables
Many unused keys and missing events, etc.

BUG=
R=efortuna@google.com, jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27137 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 18:30:54 +00:00
jacobr@google.com 013e3bb062 Dart binding changes to along with Blink merge 155942-156717
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26948 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 21:24:02 +00:00
ngeoffray@google.com 944aca6de7 HTML types that don't have [] do not implement JavaScriptIndexingBehavior, that is, the items cannot be accessed through [] in JavaScript.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26911 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 13:27:27 +00:00
blois@google.com 87e39090a1 Exposing native doubles as doubles when they are read-only or method return values.
This keeps num for parameters of operations and fields which are settable. Requested because some DOM APIs (such as Performance.now) don't really make sense returning ints.

BUG=11133
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26817 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 21:07:13 +00:00
blois@google.com 93c361dd36 This is an updated version of https://codereview.chromium.org/16374007/
Original submission is the first patch, fixes are the second.

There were two issues with the original-
  - Issue with URI sanitization where relative URIs on IE were being dropped.
  - Analyzer issue on missing members for CustomElement.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26757 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 01:03:01 +00:00
blois@google.com 24e9f22c90 Revert "First rev of Safe DOM"
This reverts commit 26681.

Some IE issues with URL validation that I need to investigate further.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26682 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 02:18:48 +00:00
blois@google.com 63ecf1a3fd First rev of Safe DOM
BUG=
R=jacobr@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26681 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 01:48:13 +00:00
blois@google.com ec11e52f62 Revert "Revert "Adding polyfill support for custom elements.""
This fixes the issues in the custom elements polyfills.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26412 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 00:08:46 +00:00
blois@google.com 508affefed Revert "Adding polyfill support for custom elements."
Caused issues with DocumentFragment and some lingering changes from the blink roll.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26410 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 23:28:22 +00:00
blois@google.com 72651260aa Adding polyfill support for custom elements.
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26405 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 22:56:08 +00:00
blois@google.com 59c29150b4 Removing overloaded operations in dart2js.
BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26041 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 22:23:42 +00:00
efortuna@google.com 8963a49505 Event delegation
Fix for https://code.google.com/p/dart/issues/detail?id=6270

BUG=
R=blois@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25969 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 17:37:32 +00:00
blois@google.com 2b37129071 Fixing polyfill for Element.createShadowRoot.
Chrome roll changed it from webkitCreateShadowRoot to createShadowRoot, polyfills need to be updated. This change should probably be reverted once everyone adapts to the new API.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25851 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 01:32:58 +00:00
efortuna@google.com c75ffac982 Added shim for scrollX and scrollY for IE 9.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25529 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-26 18:09:13 +00:00
efortuna@google.com f81052f2c8 Reapply expanding overloaded functions into separate functions.
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24709 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 22:32:44 +00:00
amouravski@google.com 6f88eecf44 Removed overloads for WebGLRenderingContext.texImage2D and texSubImage2D.
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24670 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 00:01:15 +00:00
efortuna@google.com 3629744086 "Reverting 24655"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24656 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 21:09:19 +00:00
efortuna@google.com fc0df10d8b Expand overloaded methods and optional parameters in the html library.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24655 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 20:49:07 +00:00
blois@google.com 9dd81d94a7 Fixing up DOM constructors.
This is a continuation of https://codereview.chromium.org/17063007/

Basically I changed it so factory constructors are only added if the class derives from a native type. Otherwise the native type now extends Interceptor.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24619 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-29 00:14:23 +00:00
blois@google.com b206fa4a34 We always had this class in the hierarchy for Dartium but had hidden it for Dart2js, this caused problems because the actual runtime hierarchy was different than the Dart expressed one.
BUG=9907
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23999 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 17:17:54 +00:00
blois@google.com f016e7af84 Fixing CSS Animations cross-platform issues.
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23926 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 19:18:59 +00:00
blois@google.com 09dab7ecf3 Fixing up element_types_test to work properly in checked mode, adding a few more element constructors.
Basically the constructors were failing in checked mode when they returned UnknownElement rather than the expected type. I adjusted the tests to account for this.

BUG=10796
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23885 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 22:42:12 +00:00
blois@google.com ab50cfcc68 Adding annotations for native types of type Object or dynamic.
Also added generation warnings to try to detect these.

BUG=10946
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23875 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 19:46:57 +00:00
antonm@google.com 2ebfa26751 Remove now absent interfaces/methods.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23544 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 15:07:57 +00:00
antonm@google.com fd3c7da1ee Verify that correct number of arguments was passed.
R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23296 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 17:42:13 +00:00
blois@google.com ecb5686319 Generating support annotations from DOM triage list.
This is applying the results of the detailed API triage I did to the support annotations for DOM types.

BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23159 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 17:14:47 +00:00