efortuna@google.com
03e749caba
Fix Event delegation on IE.
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//23141002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26092 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 23:10:09 +00:00
efortuna@google.com
3304c64b52
Make includeAncestors match a separate method.
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//22305005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25979 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 20:41:48 +00:00
efortuna@google.com
9fdbcf176c
Add includeAncestors to dartium matches call.
...
BUG=
Review URL: https://codereview.chromium.org//22529004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25975 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 20:21:50 +00:00
efortuna@google.com
e8c1c1722f
Adjust test status for debugging in Dartium.
...
"Reverting 25970"
BUG=
Review URL: https://codereview.chromium.org//22721003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25972 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 18:48:44 +00:00
efortuna@google.com
7312ba7104
Move matches method so that it gets generated for dart2js and dartium.
...
BUG=
Review URL: https://codereview.chromium.org//22755002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25970 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 18:34:58 +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
b76d72ca96
Fixing analyzer issue on AbstractWorker
...
Just removing the event, as it's in an odd state of not being an event target.
TBR
BUG=
Review URL: https://codereview.chromium.org//22277008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25958 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 01:32:44 +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
4881d36065
Fix texImage2D on Dartium.
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//22458005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25837 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-06 22:17:44 +00:00
blois@google.com
823767564d
Adding HttpRequest method to make it easier to post form data.
...
BUG=
R=efortuna@google.com
Review URL: https://codereview.chromium.org//22227003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25790 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-05 19:53:42 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
blois@google.com
797769e39f
Fixing SelectElement.options, adding support for optgroup.
...
BUG=8115
R=efortuna@google.com
Review URL: https://codereview.chromium.org//16409002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23652 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 19:45:36 +00:00