Commit Graph

1657 Commits

Author SHA1 Message Date
jmesserly@google.com 761dbb63a6 remove bindModel, the same effect can be achieved through createInstance
partial port of https://github.com/Polymer/mdv/commit/86c0d3d8059eebbafab6d919cd805373951873ea

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25658 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-31 02:51:50 +00:00
blois@google.com 59a514b316 Moving AngleInstancedArrays from dart:html to dart:web_gl.
It's a new type which for some reason was added to Canvas rather than with the rest of the WebGL stuff.

BUG=11357
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25649 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-30 22:26:34 +00:00
efortuna@google.com 65145338e7 Allow "bulk editing" of the CssStyleDeclaration objects in an ElementList as
well.

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25623 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-30 16:55:23 +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 913b32693d Regenerate dart_html after https://codereview.chromium.org/20174003/
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25494 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 20:14:36 +00:00
jmesserly@google.com 1210e466cb [mdv] implement Node.createBinding and Node.createBindings
port of
https://github.com/Polymer/mdv/commit/95c4eca5a89ed3d04af1c6607a61f49d35d05ca6, https://github.com/Polymer/mdv/commit/3a0d2f302d474cd175d7fe49b278f928a019d053

BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25485 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 18:01:02 +00:00
efortuna@google.com fbe134389b Added offset document measurement to Element.
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25483 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 17:45:39 +00:00
vsm@google.com 9f8be9f84a Fix Dartium test break
I had to revert this line - it's breaking a test on Dartium.

TBR=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25460 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 01:50:42 +00:00
vsm@google.com 22aeb0a3e6 Fix compilation error
This should fix the compile on the dart2js bots.  The hierarchy around
Workers has changed.  AbstractWorker has an event handler but isn't an
EventTarget, which is confusing our scripts.

TBR=blois@google.com,efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25459 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 01:05:34 +00:00
vsm@google.com a439ba51c0 Fix dartium build breakage
TBR=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25458 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 00:47:17 +00:00
vsm@google.com 28541ed31f Regenerate dart:html from new Blink IDL files
This includes some script updates.  See:

https://codereview.chromium.org/19605006

for the IDL roll.

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25456 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-25 00:08:44 +00:00
rnystrom@google.com b39c2a5b60 Fix paths in DOM doc test.
BUG=
R=dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25428 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 17:37:42 +00:00
vsm@google.com 992776552a Fixes for Blink roll.
TBR=jacobr@google.com,asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25395 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 04:46:29 +00:00
jmesserly@google.com 6774f0db6b Custom Syntax's are now enabled via template.bindingDelegate =
port of https://github.com/Polymer/mdv/commit/d4c97a94fe565b07eec174ab27994e67a514ce4b
(except the expression syntax bits -- that's covered in fancy_syntax)
BUG=
R=justinfagnani@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25371 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 21:48:53 +00:00
jmesserly@google.com aea4a202cc fix parsing of semantic template interation w/ shadowdom polyfill
port of https://github.com/Polymer/mdv/commit/05ae24466ea7b2cdd41d879169e95b00a6bf4a8e
BUG=
R=justinfagnani@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25369 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 21:17:34 +00:00
jmesserly@google.com 8f3ff7d471 [mdv] template.ref must recursive to find the original source template
port of https://github.com/Polymer/mdv/commit/86040735c2973c8cc078677e3dabb56b5bfc70c0

R=justinfagnani@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25327 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 03:08:34 +00:00
dgrove@google.com bdcb770310 Switch docs to path package (away from dart:io Path).
Review URL: https://codereview.chromium.org//19705015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25322 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 23:57:27 +00:00
efortuna@google.com 8c07849c11 Only Firefox needs the vendor prefix. All other browsers have both (webkit browsers) or the unprefixed (IE).
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25243 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 20:50:18 +00:00
efortuna@google.com 69a4edc59a Update HttpRequest.request documentation to mention ByteBuffer instead of ArrayBuffer.
BUG=https://code.google.com/p/dart/issues/detail?id=10299
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25240 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 20:16:33 +00:00
efortuna@google.com 61a5b196c2 Update dom script with analyzer changes.
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25236 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 19:48:46 +00:00
efortuna@google.com ffd476be53 Reapply Box Model convenience classes
BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25235 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 19:46:36 +00:00
efortuna@google.com 73429941fe Reverting 25196, 25195, 25192.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25197 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 02:02:06 +00:00
efortuna@google.com a092805a58 Adjust FF test status for moz-box-sizing, and fix type error.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25196 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 01:29:59 +00:00
efortuna@google.com 6d09432cb6 Added part of to Dimension class.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25195 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 01:08:28 +00:00
efortuna@google.com ef1cb88f26 Provide cross-browser Rects for box model dimensions for Elements.
Also added Dimensions class to reduce dealing with Strings for CSS.

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25192 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 00:40:52 +00:00
ahe@google.com 10bf1ba7ac Diagnose unresolved constructors in platform libraries.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25145 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-18 12:50:07 +00:00
jacobr@google.com 1fdd1a34b2 Utility methods used for dartium debugger integration.
In addition, added back two DOM methods required by the chrome dev tools that had been removed from dart:html
I'm not thrilled about adding back className but the devtools use className in 495 places so figuring out which places are actually talking about classNames of inspected objects and which ones are just internal uses of className inside the devtools would be a pain.
As the browser has a String "class" attribute I do think it is natural to provide at least a read only className in addition to classes.

This changes goes along with the larger CL
https://codereview.chromium.org/18169002/
which I will be sending out for general review in a little bit.

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25032 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 22:57:04 +00:00
benwells@google.com 4fe143407c Update dart:chrome APIs and include chrome.fileSystem
chrome.fileSystem is needed to do integration testing.

BUG=None
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24988 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 01:09:52 +00:00
efortuna@google.com 2a070f0c72 Add point to Window class and Window polyfills of screen.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24987 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-13 00:40:26 +00:00
efortuna@google.com f160335229 Updated with ArrayBuffer => ByteBuffer rename in HttpRequest docs.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24985 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-13 00:08:53 +00:00
efortuna@google.com 7c20ac6514 Added boolean to toggle.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24938 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 02:00:38 +00:00
amouravski@google.com 5d432a75a9 Added some more documentation to top level Window.
R=kathyw@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24933 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 23:04:05 +00:00
efortuna@google.com a9ea9a28ad Convert decodeAudioData to return a Future.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24893 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-10 22:58:33 +00:00
blois@google.com f50bfde69f Fixing CustomEvent.detail leaks.
Basically CustomEvent.detail does no conversion of objects and will pass JS objects through unmodified.

This fix restricts CustomEvent.detail for Dart down to serialized script values, but JS allows anything (which can lead to memory leaks).

With this fix, CustomEvent.detail is essentially handled similar to MessageEvent.data.

BUG=https://code.google.com/p/dart/issues/detail?id=6220
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24884 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-10 20:12:25 +00:00
benwells@google.com 71d6d11712 Update idlsync.py to work with chrome generator.
BUG=None
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24871 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-10 00:29:19 +00:00
blois@google.com 875d28e015 Fixing mapping of attribute maps on FireFox.
Not sure when/why this broke (most likely FF change), but one of the MDV tests started failing because of it:
http://chromegw.corp.google.com/i/client.dart/builders/dart2js-ff-win7-1-2/builds/5798/steps/dart2js%20tests/logs/stdio

Closest thing I can find in reference to this type refers to it going away in WebKit:
http://trac.webkit.org/changeset/42107

BUG=
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24870 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-10 00:25:30 +00:00
efortuna@google.com cc9f39dfba Add back appendBlob and send variants in WebSocket.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24854 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-09 17:26:51 +00:00
blois@google.com ef9f4e7973 Properly hiding import of deprecate from collection-dev.
CL https://codereview.chromium.org//18692002 modified the generated files but missed the source files. Also skipped Dartium files which have the same conflicts.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24814 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-08 18:40:10 +00:00
lrn@google.com 1315656027 Make asBroadcastStream take two callbacks.
These callbacks will be called when the broadcast stream no longer
has any listeners, or when it gets a listener after having none.

The callback is provided with a StreamSubscription-like object where
it can pause/resume/cancel the underlying subscription on the original
stream.

BUG=http://dartbug.com/11289
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24776 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 13:02:02 +00:00
kustermann@google.com ad95ee86e2 Make multiple attempts to write binding files to disc
Our dartium-win builders are currently flaky on the compile step. Sometimes
we're not able to write the generated dart bindings to disc (we get an IOError:
Permission denied).

This change makes sure we do multiple attempts for writing out the generated
files before we give up. Hopefully we can eliminate this hack as soon as we
found the root cause.

TBR=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24772 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-04 11:55:19 +00:00
efortuna@google.com 842b1f41c3 Make type parameter in toDataUrl have an optional default value as per the spec.
BUG=
R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24753 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 21:19:16 +00:00
efortuna@google.com da548d2be4 Make keySystem argument optional in MediaElement.canPlayType.
BUG=
R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24752 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 21:15:49 +00:00
kustermann@google.com 5937290e27 Enabling logger information for multiemitter.py and add more debug information
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24725 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 13:59: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
kustermann@google.com d06e9eb36e Catch IOError instead of OSError
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24692 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 15:29:08 +00:00
kustermann@google.com a63d13556c Adding debug information to multiemitter.py
Our win-dartium builders are flaky. Very often the compilation fails because
dartdomgenerator.py gets an "IOError: [Errno 13] Permission denied" error.

This is an attempt to get more insight into which other processes have
the file open at the same time.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24688 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 14:39:07 +00:00
zarah@google.com b515c8e2aa Fix error.
Review URL: https://codereview.chromium.org//18528002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24682 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 12:45:49 +00:00
zarah@google.com 93f70b1125 correct syntax error.
Review URL: https://codereview.chromium.org//18526002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24679 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 12:20:46 +00:00
zarah@google.com 01251efd5e Add isActive field on Timer.
BUG= http://dartbug.com/10010
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24678 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-02 12:01:11 +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