jmesserly@google.com
89c18e96f0
[package:mdv] port createInstance change
...
HTMLTemplateElement.prototype.createInstance takes model & syntaxString, sets up bindings -- https://github.com/Polymer/mdv/commit/22c32ebfa84b6e08341b2e1af71a25b5bee4b2be
R=sigmund@google.com
Review URL: https://codereview.chromium.org//18162004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24660 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 21:38:45 +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
amouravski@google.com
894a503bfd
Fixed a typo that broke tests.
...
Review URL: https://codereview.chromium.org//18379002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24644 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 19:05:46 +00:00
amouravski@google.com
c0a39d0412
Make html metadata follow the spec.
...
Per https://code.google.com/p/dart/issues/detail?id=11568
R=scheglov@google.com
Review URL: https://codereview.chromium.org//18182010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24638 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 18:34:30 +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
7c12f9ea0f
Fixing analyzer warnings on overloading == but not get hashCode.
...
BUG=11613
R=sra@google.com
Review URL: https://codereview.chromium.org//18034021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24614 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 22:36:50 +00:00
blois@google.com
f191d0d4de
Fixing DateTime values in serialized script values.
...
This allows Dart's DateTime objects to be passed as serialized script values. Especially useful for DB values.
BUG=11449
R=sra@google.com
Review URL: https://codereview.chromium.org//17574008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24608 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 20:55:23 +00:00
amouravski@google.com
13c403d83a
Added named constructors to Element to construct common elements.
...
R=blois@google.com
Review URL: https://codereview.chromium.org//18089011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24606 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 20:34:56 +00:00
blois@google.com
0c17281a29
Fixing type error for WebGL's getShaderParameter.
...
Was preventing the return of bools in dart2js.
BUG=11487
R=efortuna@google.com
Review URL: https://codereview.chromium.org//18089016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24599 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 17:54:42 +00:00
jmesserly@google.com
c326893f6a
Continue updating MDV.
...
add OPTGROUP as an attribute template -- https://github.com/Polymer/mdv/commit/af1733d905ac96852357db5e7a78a63ba2a488fc
template ref should check treeScope.getElementById -- https://github.com/Polymer/mdv/commit/7de0697e318bb001e1649005ec48eb294edad6e4
Use correct event type for checkbox bindings -- https://github.com/Polymer/mdv/commit/2c675cab75aea2ef3d1b981a616469587b9210fe
Review URL: https://codereview.chromium.org//17917002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24562 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 23:30:33 +00:00
jmesserly@google.com
fca7d29b2c
Disallow template instances when !parentNode || !owner.defaultView https://github.com/Polymer/mdv/commit/d035acecab7c2d1afd9eb67bb01818d7ed9eb11f
...
extract template element from attribute templates. https://github.com/Polymer/mdv/commit/13741f22d94cec1d7ca115f023cf3a25b9245def
Note: this is based on https://codereview.chromium.org/17552019/ (reorg mdv)
R=justinfagnani@google.com
Review URL: https://codereview.chromium.org//17706003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24546 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 19:59:04 +00:00
jmesserly@google.com
5ec4d52def
fix analysis issue caught by dart2js bots
...
TBR
Review URL: https://codereview.chromium.org//17973003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24501 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 00:06:30 +00:00
jmesserly@google.com
d6b9207588
Reorganize mdv and observe functionality
...
* keep correct dart:html APIs
* move implementation into package:mdv and package:observe
* remove dart:mdv_observe_impl
* remove getValueWorkaround/setValueWorkaround from package:observe
R=blois@google.com , floitsch@google.com , justinfagnani@google.com
Review URL: https://codereview.chromium.org//17552019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24498 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 23:25:47 +00:00
sra@google.com
4d9098cb0e
Move some native type dispatch tags from runtime into class definitions.
...
R=blois@google.com
Review URL: https://codereview.chromium.org//17893009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24488 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 20:40:02 +00:00
blois@google.com
edf30f6b20
Exposing Node.firstChild and Node.lastChild.
...
These are the most efficient way access children and are very commonly used.
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//17909002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24476 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 16:53:50 +00:00
amouravski@google.com
1a6eb93f25
Added link to HTML5 samples to the top of HTML library.
...
Bug: https://code.google.com/p/dart/issues/detail?id=9954
R=efortuna@google.com
Review URL: https://codereview.chromium.org//17793002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24452 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:29:16 +00:00
amouravski@google.com
a3f57b00ab
Fixed old docs for WebSocket.
...
Bug: https://code.google.com/p/dart/issues/detail?id=10507
R=efortuna@google.com
Review URL: https://codereview.chromium.org//17792002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24451 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:17:09 +00:00
amouravski@google.com
67ab947580
Added minimal documentation to the KeyboardEvent class.
...
Bug: https://code.google.com/p/dart/issues/detail?id=11483
R=efortuna@google.com
Review URL: https://codereview.chromium.org//17759006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24450 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:15:18 +00:00
amouravski@google.com
304a2c477b
Fix typo in documentation of CanvasElement.toDataUrl.
...
Bug: https://code.google.com/p/dart/issues/detail?id=10994
R=efortuna@google.com
Review URL: https://codereview.chromium.org//17789002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24449 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:12:21 +00:00
jmesserly@google.com
7fd6e0a3dc
Restore adoptNode and importNode to dart:html
...
http://dom.spec.whatwg.org/#dom-document-importnode
These seem more relevant in a <template>/ShadowRoot world. In particular I wanted to port an MDV test that uses adoptNode.
R=blois@google.com
Review URL: https://codereview.chromium.org//17681003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24423 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 18:02:26 +00:00
blois@google.com
e1221d88fc
Running go.sh
...
TBR
BUG=
Review URL: https://codereview.chromium.org//17572018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24376 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 23:32:58 +00:00
blois@google.com
c0f342adcd
Fixing up previous CL to fix Dartium issues.
...
patch from issue 17453003
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//17550014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24354 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 17:49:25 +00:00
floitsch@google.com
48b1656690
Allow Object when doing lookups.
...
According to our typing rules a Set<Apple> is a Set<Fruit>. However, before this change, we couldn't use it as a Set<Fruit>:
===
bool foo(Set<Fruit> fruits) {
// Would yield a type-error since we actually got a Set<Apple>.
return fruits.contains(new Banana());
}
foo(new Set<Apple>());
===
R=ajohnsen@google.com , blois@google.com , lrn@google.com
Review URL: https://codereview.chromium.org//14246008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24326 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 12:45:10 +00:00
ngeoffray@google.com
04f294a73d
Remove =List in JS, use JSExtendableArray instead.
...
R=kasperl@google.com
Review URL: https://codereview.chromium.org//17301008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24319 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 10:09:14 +00:00
blois@google.com
9a55dad88e
This is causing a build error on Dartium (conversion from unsigned long to GLenum).
...
TBR
BUG=
Review URL: https://codereview.chromium.org//17141011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24298 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 18:18:17 +00:00
blois@google.com
7b4bd8fef5
Fixing an issue where EXTDrawBuffers.drawBuffersEXT was not getting generated.
...
Core issue is that sequences of typedefs aren't getting resolved properly, so it was treated as an unknown type.
Did a workaround, opened bug 11395 to track the core IDL parser issue.
BUG=11029
R=vsm@google.com
Review URL: https://codereview.chromium.org//17453003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24296 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 17:34:21 +00:00
blois@google.com
6b44f65407
Revert "Making all DOM types abstract and removing superfluous Dartium constructors."
...
This reverts commit http://code.google.com/p/dart/source/detail?r=24241 .
Compiler error, not sure of best fix.
BUG=
Review URL: https://codereview.chromium.org//17508002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24245 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 19:37:47 +00:00
blois@google.com
c3547d4e9b
Making all DOM types abstract and removing superfluous Dartium constructors.
...
Adding factory constructors to all classes to suppress missing generative constructor warnings.
Adding a throw to Dartium's base DOM class to prevent construction of native objects.
This also includes the changes necessary to make all DOM types abstract, but I'm running into a dart2js issue which is preventing that.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//17063007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24241 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-20 17:31:36 +00:00
jmesserly@google.com
66398e12b5
Move PathObserver to mdv_observe package
...
(Since it doesn't actually depend on dart:html, didn't seem the right place for it)
R=blois@google.com
Review URL: https://codereview.chromium.org//17434008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24166 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 02:21:54 +00:00
blois@google.com
28560f4a06
Adding WebGL context events to Canvas.
...
BUG=9482
R=efortuna@google.com
Review URL: https://codereview.chromium.org//16997002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24006 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 20:12:01 +00:00
blois@google.com
25178b1217
Adding Range constructor for document.caretRangeFromPoint.
...
BUG=9227
R=efortuna@google.com
Review URL: https://codereview.chromium.org//16975002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24004 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 18:41:48 +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
efortuna@google.com
06f0514367
Improve documentation for animationFrame.
...
BUG=
R=amouravski@google.com
Review URL: https://codereview.chromium.org//16854004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23946 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-13 00:20:52 +00:00
efortuna@google.com
c3636dc560
Mark canPlayType as unstable.
...
BUG=
R=amouravski@google.com
Review URL: https://codereview.chromium.org//16705005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23928 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 19:43:15 +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
b61e864617
Fix RtcDataChannel for Firefox nightly
...
BUG= http://dartbug.com/11067
R=blois@google.com
Review URL: https://codereview.chromium.org//16323007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23922 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 17:38:54 +00:00
blois@google.com
d72387b95a
Updating metadata after Chrome rolls.
...
BUG=
R=efortuna@google.com
Review URL: https://codereview.chromium.org//16677011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23888 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 23:47:09 +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
blois@google.com
648084af6f
Bringing dart:html's spawnDomFunction into sync between dart2js and dartium.
...
BUG=10221
Review URL: https://codereview.chromium.org//16757005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23857 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 15:40:30 +00:00
blois@google.com
3e98d393de
Updating docs for appendText and insertAdjacentText to reflect implementation.
...
Basically insertAdjacentText is not standardized but is natively supported on IE, Chrome and Opera. Chrome inserts only a text node, but IE will create <br/> elements for line breaks (acts more like innerText, which we suppress).
Alternatively, we skip the native implementation and always polyfill the API, though I'd be more inclined to omit it entirely.
BUG=11180
R=jacobr@google.com
Review URL: https://codereview.chromium.org//16743004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23827 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 19:39:23 +00:00
antonm@google.com
5a334f3da2
Remove renames for gone interfaces.
...
R=blois@google.com
Review URL: https://codereview.chromium.org//15981006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23818 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 16:25:37 +00:00
amouravski@google.com
6632a3d8ed
Fixed an incorrect doc reference.
...
R=efortuna@google.com
Review URL: https://codereview.chromium.org//15995029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23767 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 19:51:53 +00:00
blois@google.com
f7e2d341dd
Fixing codegen issues from Blink roll.
...
Appears that Blink is in the process of renaming WebKit IDL types, but right now they have duplicated types.
BUG=
Review URL: https://codereview.chromium.org//15930013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23757 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 18:26:03 +00:00
antonm@google.com
9a71e85188
Remove now unused enables.
...
TBR=blois@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//16399010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23754 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 16:40:32 +00:00
antonm@google.com
f1677b76c9
Blink IDL roll.
...
R=vsm@google.com
Review URL: https://codereview.chromium.org//16636003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23752 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 16:34:31 +00:00
antonm@google.com
a352956d29
Chrome roll 202464->204370.
...
TBR=vsm@google.com
Review URL: https://codereview.chromium.org//16234006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23743 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 14:56:12 +00:00
antonm@google.com
7629d7f4d4
Partial support for new getters/setters declaration.
...
TBR=blois@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//16636002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23742 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 12:07:54 +00:00
blois@google.com
208f29e24b
Fixing dart2js KeyEvent issue.
...
The incorrect type for the JS call was causing the compiler to generate incorrect code.
BUG=11088
R=efortuna@google.com
Review URL: https://codereview.chromium.org//15808015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23659 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 21:11:04 +00:00