ager@google.com
a068ae2328
Changes for chrome roll.
...
R=antonm@google.com
BUG=
Review URL: https://codereview.chromium.org//12983007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20317 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 14:32:59 +00:00
efortuna@google.com
0109262fd2
Rename RtcdtmfSender class.
...
BUG=
Review URL: https://codereview.chromium.org//12678014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20298 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 22:51:24 +00:00
blois@google.com
30f857fa7f
Adding support flags to Event.clipboardData
...
It's only supported by webkit, but it's not easy to check for support as it only works off of a paste operation invoked by the browser.
BUG=8975
Review URL: https://codereview.chromium.org//12973004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20297 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 22:49:00 +00:00
efortuna@google.com
5f94cbc6af
Remove last of webkit prefixes from HTMLDocument.
...
BUG=
Review URL: https://codereview.chromium.org//12678013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20296 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 22:07:04 +00:00
antonm@google.com
b162613b8b
Support for callbacks on ScriptProcessNode.
...
R=efortuna@google.com ,podivilov@chromium.org
BUG=9094
Review URL: https://codereview.chromium.org//12892007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20280 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 18:12:20 +00:00
efortuna@google.com
f364ed048a
Add toggleAll to CSSClassSet.
...
BUG=
Review URL: https://codereview.chromium.org//12851014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20263 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 00:39:40 +00:00
amouravski@google.com
85c959e6c3
Update drawImage to create more fast paths.
...
Review URL: https://codereview.chromium.org//12774014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20256 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 22:53:19 +00:00
efortuna@google.com
aedcf9eb32
Enable getUserMedia to take constraints for its parameters.
...
BUG=
Review URL: https://codereview.chromium.org//12695014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20245 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 21:07:24 +00:00
efortuna@google.com
de98abfabf
Remove lineDash field in favor of gettors/settors.
...
BUG=
Review URL: https://codereview.chromium.org//12474008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20237 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 20:35:40 +00:00
antonm@google.com
0eba171ced
Make Float{32,64}Array implement List<double>.
...
R=ager@google.com ,blois@google.com ,vsm@google.com
BUG=9282
Review URL: https://codereview.chromium.org//12886032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20232 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 18:45:18 +00:00
blois@google.com
f9edfc6e84
Fixing go.sh occasionally putting types into incorrect libraries.
...
BUG=
Review URL: https://codereview.chromium.org//12769016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20226 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 18:07:14 +00:00
floitsch@google.com
075be16ffd
Fix typo (offsetX instead of offsetY).
...
BUG= http://dartbug.com/9261
Review URL: https://codereview.chromium.org//12573008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20205 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 13:37:52 +00:00
efortuna@google.com
5d6e0608f7
Reapply making ScriptProcessorNode not an EventTarget.
...
BUG=
Review URL: https://codereview.chromium.org//11510013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20180 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 22:18:25 +00:00
efortuna@google.com
c4437b9274
Reapply the expanded names with the correct form of requestFileSystem on the
...
test.
BUG=
Review URL: https://codereview.chromium.org//12663017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20136 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-16 01:02:25 +00:00
efortuna@google.com
26c5c48fe2
Revert 20127
...
TBR
BUG=
Review URL: https://codereview.chromium.org//12474007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20133 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-16 00:14:27 +00:00
efortuna@google.com
66b399a31e
Fix list syntax in python script.
...
BUG=
Review URL: https://codereview.chromium.org//12457026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20130 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-16 00:06:37 +00:00
blois@google.com
1fa1a541df
Adding tests for Element & Node lists insert method.
...
BUG=
Review URL: https://codereview.chromium.org//12407005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20129 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 23:58:06 +00:00
efortuna@google.com
3e1f5ce451
Expanded map options to named parameters.
...
BUG=
Review URL: https://codereview.chromium.org//12531013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20127 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 23:46:13 +00:00
efortuna@google.com
b2594b0111
Fix up static analysis errors introduced by Futures CL.
...
BUG=
Review URL: https://codereview.chromium.org//12653008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20120 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 23:06:10 +00:00
blois@google.com
aca4a1d77b
Fixing dart2js size regression introduced by Node.model.
...
BUG=
Review URL: https://codereview.chromium.org//12829007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20111 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 21:24:36 +00:00
amouravski@google.com
ad74dd0131
Added the CanvasImageSource interface, which all types that a canvas can draw
...
with drawImage implements.
Review URL: https://codereview.chromium.org//12775010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20108 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 20:54:50 +00:00
blois@google.com
26b77f96ab
Adding a model property to Node which is inherited through the tree.
...
This only works for trees which are in the document, but when a tree is added to the document everything should just 'start working'.
This should work on all browsers (tested on Chrome, FF and IE9).
Not sure about performance impact on large trees and lots of bindings (balance between optimizing for lots of bindings or lots of elements, few bindings), but it should not impact anything if models are not used.
BUG=
Review URL: https://codereview.chromium.org//12754013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20104 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 20:22:24 +00:00
lrn@google.com
844cd39fad
Change getRange to sublist. Make getRange deprecated.
...
This changes the exception behavior of getRange. It used to accept
a length of zero, no matter what start value. Now the start value
must be a valid list index.
Review URL: https://codereview.chromium.org//12817003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20064 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 09:15:39 +00:00
floitsch@google.com
a1029cb537
Fix after bad merge.
...
Review URL: https://codereview.chromium.org//12432017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20041 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 18:05:19 +00:00
floitsch@google.com
76d507cb6f
Add List.insert.
...
BUG= http://dartbug.com/5375
Review URL: https://codereview.chromium.org//12383073
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20037 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 17:38:14 +00:00
lrn@google.com
9de16edc1c
Fix CssClassSet methods to accept Set, not Collection.
...
Review URL: https://codereview.chromium.org//12493014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20006 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 11:54:04 +00:00
lrn@google.com
5768211906
Make Set.containsAll accept Iterable. Deprecate Set.isSubsetOf.
...
This is a recommit of the earlier reverted CL with updated test expectations.
Review URL: https://codereview.chromium.org//12544024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19993 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 09:32:30 +00:00
blois@google.com
a2a7fb6b2b
Making dom.py build command only build the runtime.
...
This is what it was intended to do, but I never knew how to do it. It's also what the 'help' documentation states that it does.
BUG=
Review URL: https://codereview.chromium.org//12733006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19963 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 19:18:13 +00:00
blois@google.com
1b585cb07b
Attempting to remove ArrayBufferView.buffer penalty.
...
BUG=
Review URL: https://codereview.chromium.org//12447016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19939 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 15:38:30 +00:00
antonm@google.com
dcc492f77e
Enable print forwarding.
...
R=ager@google.com ,ahe@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12712006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19920 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 10:58:28 +00:00
floitsch@google.com
65718c56df
Rename XMatching to XWhere.
...
For example firstMatching -> firstWhere.
BUG= http://dartbug.com/8664
BUG= http://dartbug.com/8337
Review URL: https://codereview.chromium.org//12537009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19880 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:34:49 +00:00
antonm@google.com
f438ac1d31
Maintain proper signature_index.
...
R=ager@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12660007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19851 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 11:38:30 +00:00
antonm@google.com
4ec687fb7c
Proper catch clause.
...
TBR=asiva@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12524006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19847 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 10:19:11 +00:00
antonm@google.com
2fe3050460
Make sure double to DateTime conversion never throws.
...
R=asiva@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12493011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19845 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 09:51:23 +00:00
antonm@google.com
72dd746b39
Ensure proper order of overload checks.
...
As dart:typeddata's class can implement both counterpart
of ArrayBufferView and of ArrayBuffer, always favour
treatment of an argument as an ArrayBufferView.
R=ager@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12518013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19842 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 09:04:38 +00:00
blois@google.com
7119f07f96
Fixing Node.nodes.first.
...
Was throwing an incorrect exception because the JS type was being annotated as non-null.
BUG=9070
Review URL: https://codereview.chromium.org//12513010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19834 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:59:02 +00:00
blois@google.com
3dc9e79521
Consolidating platform code into dart:html_common
...
Basically a number of our platform checks are only accessible from dart:html and not other libs. Moved Device class over to html_common and added more platform logic which was distributed elsewhere.
Also fixing up Device to cache the platform checks.
BUG=
Review URL: https://codereview.chromium.org//12541020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19833 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:49:27 +00:00
blois@google.com
30764d4a5b
Was benchmarking the differences between document.query and using the native DOM methods when available, and document.query is significantly worse in almost all scenarios.
...
Our current document.query can be optimized about 2x by caching the RegExps being used, but this is still not enough to get close to what they should be.
We special-cased a couple of queries to optimize those, but it appears that the browsers are optimizing those now as well and our optimizations are getting in the way, overall.
From my tests so far, this CL brings a speed improvement to document.query for all scenarios except for the name test:
document.queryAll('[name="test"]') which takes a fairly significant performance hit (runs close to 1/2 speed with this CL). This is mitigated by exposing getElementsByName which if used brings a 2x performance gain over queryAll.
BUG=
Review URL: https://codereview.chromium.org//12715003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19831 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:39:38 +00:00
efortuna@google.com
51701cecb6
Futureify requestFileSystem in WorkerContext.
...
BUG=
Review URL: https://codereview.chromium.org//12566025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19829 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 23:24:24 +00:00
blois@google.com
118fa93da7
BUG=
...
Review URL: https://codereview.chromium.org//12596004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19804 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 16:40:01 +00:00
antonm@google.com
2cbf579f6d
Mark ArrayBuffer and ArrayBufferView converters as custom.
...
R=ager@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12518008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19799 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 15:45:51 +00:00
antonm@google.com
e67788f35f
Temporary map ArrayBuffer/ArrayBufferView to dynamic.
...
For some amount of time we're going to allow both
DOM's and dart:typeddata implementations.
R=ager@google.com ,blois@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12440016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19797 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 15:19:57 +00:00
antonm@google.com
598ddebb91
Allow more objects to be treated as ArrayBuffer and ArrayBufferView.
...
Temporary ugly hack. Eventually we'll just remap ArrayBuffer and
ArrayBufferView to the proper dart:typeddata types.
R=ager@google.com ,blois@google.com ,podivilov@chromium.org
Review URL: https://codereview.chromium.org//12543021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19794 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 14:36:00 +00:00
antonm@google.com
f5b87ec057
Attempt to add missing delcs.
...
TBR=ager@google.com ,blois@google.com
Review URL: https://codereview.chromium.org//12667003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19784 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 12:46:45 +00:00
antonm@google.com
255995eee2
Map typed arrays to lists for now.
...
This is temporary while proper bindings to
typed data are in works.
R=ager@google.com ,blois@google.com
Review URL: https://codereview.chromium.org//12646004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19783 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 12:36:31 +00:00
amouravski@google.com
3f83719bdc
Fix build break.
...
Review URL: https://codereview.chromium.org//12733002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19750 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 23:51:29 +00:00
amouravski@google.com
792ca95fa5
Revert "Revert "Update context2d.arc to take optional anticlockwise parameter""
...
Fixed checked mode test failures.
Review URL: https://codereview.chromium.org//12719002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19747 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 23:33:37 +00:00
amouravski@google.com
63b99531f5
Revert "Update context2d.arc to take optional anticlockwise parameter"
...
Review URL: https://codereview.chromium.org//12597003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19718 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 19:50:40 +00:00
amouravski@google.com
566977fc1d
Update context2d.arc to take optional anticlockwise parameter
...
Review URL: https://codereview.chromium.org//12548010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19707 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 18:39:19 +00:00
blois@google.com
df12fc3a5f
Converting Element.client*, offset* and Screen.avail* over to Rects
...
Converting more APIs over to exposing as Rects.
BUG=
Review URL: https://codereview.chromium.org//12605003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19702 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 18:12:16 +00:00