Commit Graph

746 Commits

Author SHA1 Message Date
efortuna@google.com 837c6b6ee3 Move Point and Rect over to dart:math, to be re-exported by dart:html.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28184 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 21:54:02 +00:00
blois@google.com 05bb03642d Implementing CustomElement's attributeChanged callback in dart2js.
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28168 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 15:57:56 +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 d5212a6ac0 Make OptionElement construtor arguments named optional parameters.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28115 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 20:33:49 +00:00
efortuna@google.com d06cbc3f28 Adjust HTTP Request docs.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28025 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 20:49:33 +00:00
blois@google.com 354c4dd5ad Revert "Revert "Start of dartium custom element lifecycle event support.""
Primary changes are that a fast-path has been added for the single-argument Document.createElement and the systemnative.py changes were split out to CL https://codereview.chromium.org/24661002/.

This is dependent on https://codereview.chromium.org/24677002/

First patch is the original, second is the updates.

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27921 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 23:15:09 +00:00
efortuna@google.com c8fde9aa01 Fixed more HttpRequest documentation.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27912 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 21:03:00 +00:00
blois@google.com 3fd115d5e3 Revert "Start of dartium custom element lifecycle event support."
This reverts commit 27718 to see if it gets performance back down.

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27897 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 17:56:53 +00:00
efortuna@google.com 9c59a54913 "Reverting 27844"
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27848 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 20:25:16 +00:00
efortuna@google.com b7c5067cbc Try caching attribute map to try to improve performance.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27844 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 19:52:06 +00:00
blois@google.com 209e413a5c Retry of custom element lifecycle events.
First patch is the original, changes were:
 - Shadow DOM upgrade landed as separate CL
 - CustomElement polyfill wasn't always firing WebComponentsLoaded event (causing timeouts on FF and IE), fixed polyfill.
 - Dartium test exclusions were not working

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27841 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 19:14:16 +00:00
blois@google.com 6def065afd Revert "Dart2js support for custom element lifecycle events"
This reverts commit 27729. Shadow DOM polyfill appears to have regressed some tests and some issues are coming up with the browser controller.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27730 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-21 00:46:48 +00:00
blois@google.com fb8f32bcc4 Dart2js support for custom element lifecycle events
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27729 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-20 23:49:12 +00:00
blois@google.com 34f58a8209 Start of dartium custom element lifecycle event support.
These are the Dart repo changes paired with https://codereview.chromium.org/24294002/

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27718 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-20 18:40:11 +00:00
blois@google.com 5f2320dea7 Making Document, Element and Window documentable via @DocsEditable
TBR
BUG=13291

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27503 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-13 21:23:07 +00:00
blois@google.com a7c9ce28d7 Fixing Element.shadowRoot JS type annotation
Getter was annotated as never returning null, but in fact can return null.

BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27455 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-12 22:20:16 +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 b904bf81ba Revert "Revert "Tag extensions""
Original CL is the first patch, changes follow. Includes fixes for Chrome test failures and Firefox type check issues.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27313 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 22:03:43 +00:00
blois@google.com 647d73af0f Fix for CSS URIs not parsing correctly with innerHTML
Chrome has a bug (https://code.google.com/p/chromium/issues/detail?id=229142) where CSS URIs are not converting correctly when an element is parsed in one document then moved to another document. This uses a base element to set the baseURI of the parse document so it doesn't need to be converted on clone.

BUG=13147
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27305 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-09 19:06:27 +00:00
blois@google.com fefb7a4b0d Optimization for Element.innerHtml
Basically we were creating a new range every time HTML needs to be parsed, which is unnecessary and turns out to be quite expensive.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27259 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 19:13:48 +00:00
blois@google.com 43d28b5ffd Fixing visibilityState APIs in Dart
The event was not being exposed because it does not appear in the IDL and the associated property was not working cross-platform.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27206 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-05 18:01:46 +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
efortuna@google.com 9f52a2969c Added back childNodes and getAttribute and setAttribute.
This is a quick check to verify that it was this CL:
https://codereview.chromium.org/23189014/ was the cause of the performance
regression. If it is, I have some ideas of potential performance improvements
going forward that we should investigate, and I'll also investigate why I wasn't
getting this performance behavior on my machine locally. Either way, expect at
least one additional change on these APIs going forward.

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27139 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 19:34:39 +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
blois@google.com e0b7d07337 Fixing Indexed DB from latest Blink roll
Primarily changes to support syntax from:
https://codereview.chromium.org//23788007
https://codereview.chromium.org//23523008

BUG=12948
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27084 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 23:35:41 +00:00
blois@google.com 128a95f0a4 Fixing wheel event on Dart2js
Proper fix of doing the new constructor were thwarted by inconsistencies between latest Chrome and stable branch.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26960 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 23:56:10 +00:00
jacobr@google.com f59872ee07 Missed one template from the previous CL to unbreak indexed_db.
Remove invalid calls to the _count method. This is a short term fix to make the build green.  Blois will be submitting the correct fix.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26958 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 23:12:59 +00:00
jacobr@google.com 792918a7de Remove invalid calls to the _count method. This is a short term fix to make the build green. Blois will be submitting the correct fix.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26956 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 23:01:13 +00:00
jacobr@google.com c9378836aa Remove obsolete manually defined _deltaX and _deltaY members.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26949 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 21:37:09 +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
blois@google.com 6570db562c Revert "Basic functionality is working with JS native support and polyfill, still some issues with dart2js typechecking."
This reverts commit r26935. Failing in FF checked on type extension and IE9 on synchronous constructor upgrading, need to investigate.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26938 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 19:37:23 +00:00
blois@google.com 5607d75eca Basic functionality is working with JS native support and polyfill, still some issues with dart2js typechecking.
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26935 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 19:08:19 +00:00
efortuna@google.com 47dcd084f3 Removing more dom_ methods (dom_getAttribute and dom_setAttribute.).
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26928 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 17:18:40 +00:00
blois@google.com 78487899af Attempting to fix IE9 XHR cross domain flakiness.
Appears to be related to http://social.msdn.microsoft.com/Forums/ie/en-US/30ef3add-767c-4436-b8a9-f1ca19b4812e/ie9-rtm-xdomainrequest-issued-requests-may-abort-if-all-event-handlers-not-specified

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26875 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 16:30:16 +00:00
blois@google.com c47eae035f Fixing createFragment on IE9 Table elements
Basically IE9 does not support innerHTML on table elements, so need to go one level up and wrap everything in a <table> tag.

Another issue is that IE9 does not support creating body elements or the matches call when the element is not in the document, updated the test to account for these.

BUG=12830
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26806 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 18:03:12 +00:00
floitsch@google.com 74da0c7286 Remove usage of dart:json.
R=jmesserly@google.com, lrn@google.com, nweiz@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26789 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 14:05:11 +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 a85f2a8d4c Changing onCreated callback to created.
Brings it in-line with the browser's createdCallback and Polymer's created. Avoid conflict with event names.

Dartium changes are https://codereview.chromium.org/23494005

BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26754 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 23:51:42 +00:00
blois@google.com 7c393eb095 Adding support for cross-origin requests on IE9.
BUG=12728
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26752 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 23:27:59 +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 6fc3035bc3 Adding API to remove send ports from Window.
BUG=11658
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26679 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 00:44:37 +00:00
blois@google.com fc0158645a Bringing back CanvasElement.toDataUrl docs.
BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26669 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 21:33:02 +00:00
efortuna@google.com 92d2bd8c28 Fix api for dart2js tests that failed.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26606 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 19:15:33 +00:00
efortuna@google.com 90873051ad Making almost all dom_ methods private. Exceptions will be addressed in a later CL.
Current ones that still remain to be made private include createElement(NS),
createRange, all the Element properties, and childNodes.

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26605 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 18:25:40 +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
sra@google.com 1ffafc705d Additional code to https://codereview.chromium.org/15026006
to enable user classes extending DOM classes to be registered.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26221 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-15 21:18:07 +00:00
vsm@google.com 4d51b41ff8 Initial Dartium custom element support
This will need to be rebased with Stephen's CL or vice versa.  The test mod is taken from his CL.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26141 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 19:47:07 +00:00