Commit Graph

136 Commits

Author SHA1 Message Date
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
antonm@google.com 5b9d62c9a9 Migrate to new indexed getter marking scheme.
TBR=blois@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22995 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-22 08:52:52 +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
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
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 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 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
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