blois@google.com
3d20b78608
Fixing experimental annotation on HtmlDocument.register
...
Not sure why this just started failing on the bots, but it's an issue.
BUG=
R=efortuna@google.com
Review URL: https://codereview.chromium.org//35543004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29039 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 21:27:33 +00:00
blois@google.com
3aef09e008
Revert "Removing some deprecated members"
...
For some reason this broke indexed_db on Dartium, I debugged in some but need more time to understand. The completed event is not firing.
TBR
BUG=
Review URL: https://codereview.chromium.org//32523007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29033 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 20:20:32 +00:00
jmesserly@google.com
3ea4328813
fix todomvc tests
...
R=sra@google.com
Review URL: https://codereview.chromium.org//32593007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29032 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 20:14:49 +00:00
sra@google.com
f4ebe9522c
Code review changes for ngeoffray's comments on r28278
...
R=ngeoffray@google.com
Review URL: https://codereview.chromium.org//28173002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29029 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 19:50:02 +00:00
kustermann@google.com
5627111a66
Fixed arm cross build after switch to standalone.deps
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//34503006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29026 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 19:04:59 +00:00
blois@google.com
811147da98
Removing redirections of deprecated members
...
The members were deprecated and removed, but these redirections were missing
TBR
BUG=
Review URL: https://codereview.chromium.org//34683003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29024 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 19:00:31 +00:00
blois@google.com
63f250a430
Removing a number of deprecated members
...
Mostly left over from previous refactoring
BUG=
R=efortuna@google.com
Review URL: https://codereview.chromium.org//33423004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29023 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 18:53:36 +00:00
blois@google.com
e2c4716609
Removing some deprecated members
...
These are all DOM APIs that we had annotated as deprecated but not actually removed. They've all been deprecated for quite a while.
BUG=
R=efortuna@google.com
Review URL: https://codereview.chromium.org//30353003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29022 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 18:42:01 +00:00
jmesserly@google.com
ccb7d5304f
fix issue 14300 -- polymer tests under CSP
...
R=ricow@google.com , sigmund@google.com
Review URL: https://codereview.chromium.org//34483003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29020 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 18:29:46 +00:00
blois@google.com
690a1454e5
Revert "Converting Polymer and TemplateElement to use deprecated Node.document"
...
Now that DRT is updated and we're running dart2js tests properly, all should be good.
BUG=14197
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//34613005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29018 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 18:28:18 +00:00
efortuna@google.com
8b4e5e92ba
"Reverting 29013"
...
TBR
BUG=
Review URL: https://codereview.chromium.org//35723002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29017 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 18:25:40 +00:00
jacobr@google.com
c274135947
Revert "Revert breaking CL"
...
This reverts commit 582a7848d7ad11fe981257598124431e36a9c982.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//35513002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29014 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 18:15:03 +00:00
efortuna@google.com
f4e40d6d9a
Make getLineDash return [] instead of null if it has not yet been set.
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//27983005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29013 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 17:40:58 +00:00
blois@google.com
c1a11e55d5
Adding validation that Custom element constructor has zero args
...
BUG=13800
R=vsm@google.com
Review URL: https://codereview.chromium.org//30283002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29011 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 17:20:46 +00:00
blois@google.com
cf9be8e65b
Tightening up custom element registration for dart2js
...
BUG=14093
R=sra@google.com
Review URL: https://codereview.chromium.org//34203002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29007 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 16:40:56 +00:00
blois@google.com
980834fe33
Validating that types which require extendsTag actually provide it
...
BUG=14292
R=vsm@google.com
Review URL: https://codereview.chromium.org//32703006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29004 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 16:14:17 +00:00
vsm@google.com
e92900f914
Revert breaking CL
...
Revert "Companion to https://codereview.chromium.org/33973002 Generate correct source locations for Dart log messages."
TBR=jacobr@google.com
BUG=
Review URL: https://codereview.chromium.org//32643009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28981 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 04:30:23 +00:00
jacobr@google.com
c74e0cec97
Companion to https://codereview.chromium.org/33973002 Generate correct source locations for Dart log messages.
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//33993002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28976 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 00:46:02 +00:00
sigmund@google.com
4d357c5148
Improves how to initialize polymer apps and fixes polymer build and linter to
...
match Dartium semantics (Issue 14238). In particular:
- only one script tag is allowed per document
- initPolymer can be call from init.dart or the users main method, the build
process knows how to call the user's main given the new Dartium semantics.
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//27903006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28971 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 23:30:23 +00:00
efortuna@google.com
250b113caf
Mark jQuery methods as experimental.
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//33433005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28967 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 23:09:17 +00:00
efortuna@google.com
7da21ce566
Allow all events to be accessed via on[foo] instead of just onFoo
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//29843004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28966 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 23:07:18 +00:00
amouravski@google.com
0177ed7ae4
CanvasRenderingContext2D.fillText now works correctly with null maxWidth.
...
BUG=13369
R=efortuna@google.com
Review URL: https://codereview.chromium.org//29273005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28963 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 22:09:07 +00:00
efortuna@google.com
8e4205db3a
Reapply remove upgradeCustomElement methods.
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//33593003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28960 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 21:55:40 +00:00
efortuna@google.com
37989cf2ce
"Reverting 28947"
...
TBR
BUG=
Review URL: https://codereview.chromium.org//33643002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28949 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 20:48:18 +00:00
efortuna@google.com
3a4a3ba95f
Remove Platform.upgrateCustomElements.
...
BUG=
R=blois@google.com
Review URL: https://codereview.chromium.org//31993005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28947 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 20:21:28 +00:00
kustermann@google.com
34654bff3d
standalone.deps: Change gyp generation to make "./tools/build.py runtime" work
...
R=iposva@google.com , ricow@google.com
Review URL: https://codereview.chromium.org//26212004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28929 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 12:33:39 +00:00
jacobr@google.com
5ee178076a
A few API changes:
...
Remove Callback in favor of directly using closures or JsFunction.withThis().
Move jsify() to a named constructor on JsObject.
- Throw on types other than Map and Iterable.
- Handle cycles
Add JsObject.fromDartObject() which force a transferrable native to be proxied.
Still to do: Reach a conclusion on Serializable
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//27514003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28902 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-19 04:36:10 +00:00
blois@google.com
e7aef33a2c
Fixing custom element type extensions in Dartium to have correct native type ID
...
This is in support of the recent change to write the native type ID to the Dart wrappers
Dart changes for https://codereview.chromium.org/27769002/
BUG=14190
R=vsm@google.com
Review URL: https://codereview.chromium.org//29033003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28899 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 23:43:45 +00:00
efortuna@google.com
4f06435c24
Make AudioContext work in iOS 7.
...
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org//29583004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28877 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 20:37:09 +00:00
kevmoo@j832.com
cf134382a1
Set.add returns true if item has been added, otherwise false
...
BUG= https://code.google.com/p/dart/issues/detail?id=3546
R=floitsch@google.com
Review URL: https://codereview.chromium.org//26280002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28863 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 17:24:24 +00:00
kustermann@google.com
006645db9e
Capture and report stdout/stderr of the browser while running a test
...
Currently we have no way of getting stdout/stderr information when using the
browser controller.
This CL will capture stdout/stderr of the browser and tries to align it with the
currently executed test (which might be slightly off due to the fact that
Process.{stderr,stdout} is reported asynchronously).
R=ricow@google.com
Review URL: https://codereview.chromium.org//28533003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28858 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 15:28:08 +00:00
kustermann@google.com
2d51255501
Changes to annotated step scripts: dart-editor-installer-* builders will build installer
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//28773003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28857 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 14:12:34 +00:00
kustermann@google.com
24fded56bc
test.py: Implement --list option for test.dart
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//27687002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28845 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 08:52:06 +00:00
efortuna@google.com
9c2f329e56
Remove defaultSelected property.
...
BUG=https://code.google.com/p/dart/issues/detail?id=4958
R=blois@google.com
Review URL: https://codereview.chromium.org//27516011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28832 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 22:38:47 +00:00
blois@google.com
ee30fc06fb
Converting Polymer and TemplateElement to use deprecated Node.document
...
Because Polymer dart2js tests actually execute dart, the bots are red because the corresponding changes haven't made it into Dartium.
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//27773002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28830 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 22:04:11 +00:00
asiva@google.com
ab61301521
Generate a class table of all the IDL classes in the database. This table is used
...
to access the C++ class hierachy information to do a proper subtype of check.
The new subtype of check improves the following benchmarks
Dromaeo-drt dom-modify appendChild runs-per-second from 889.0 to 1575.0
Dromaeo-drt dom-modify insertBefore runs-per-second from 592.4075924075925 to 1298.0
The generated class table is as follows:
enum {
_HistoryCrossFrameClassId = 0,
_LocationCrossFrameClassId,
_DOMWindowCrossFrameClassId,
_DateTimeClassId,
// New types that are not auto-generated should be added here.
ANGLEInstancedArraysClassId,
AbstractWorkerClassId,
....
....
};
typedef struct {
const char* class_name;
int library_id;
int base_class_id;
bool is_node;
bool is_active;
bool is_event;
} _Classinfo;
typedef _Classinfo _DartWebkitClassInfo[NumWebkitClassIds];
_DartWebkitClassInfo DartWebkitClassInfo = {
{ "_HistoryCrossFrame", DartHtmlLibraryId, -1, false, false, false },
{ "_LocationCrossFrame", DartHtmlLibraryId, -1, false, false, false },
{ "_DOMWindowCrossFrame", DartHtmlLibraryId, -1, false, false, true },
{ "DateTime", DartCoreLibraryId, -1, false, false, false },
// New types that are not auto-generated should be added here.
{ "AngleInstancedArrays", DartWebGlLibraryId, -1, false, false, false, },
{ "AbstractWorker", DartHtmlLibraryId, -1, false, false, false, },
.....
.....
};
R=rmacnak@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//27358002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28821 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 20:27:30 +00:00
blois@google.com
358392883c
Adding ElementEventStream.capture
...
Also making Element.on[] return an ElementStream.
BUG=13214
R=efortuna@google.com
Review URL: https://codereview.chromium.org//26135004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28819 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 20:19:46 +00:00
blois@google.com
89802cee42
Updating CustomElement lifecycle scope logic
...
More closely following what V8 is doing in:
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/bindings/scripts/code_generator_v8.pm&l=1725
Primary issue was that this was being emitted in too many places (getters and attributes which didn't need it).
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//25675008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28818 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 20:13:14 +00:00
blois@google.com
a86bee09de
Fix for events not firing on sanitized elements
...
Issue was that the events weren't being raised when the elements were in documents without views.
BUG=14184
R=efortuna@google.com
Review URL: https://codereview.chromium.org//26557004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28817 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 19:58:14 +00:00
blois@google.com
cb304c5ea7
Adding HttpRequest.responseHeaders
...
The code is mostly from Closure's getResponseHeaders function, with modifications to make the keys case-insensitive (following jQuery's model).
BUG=13584
R=efortuna@google.com
Review URL: https://codereview.chromium.org//26893008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28812 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 18:11:00 +00:00
blois@google.com
e3b35dabb6
Renaming Node.document back to Node.ownerDocument
...
With custom elements, the document instance variable creates an odd conflict with the document global.
BUG=14099
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//27602002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28810 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 17:55:38 +00:00
blois@google.com
0c4f4dce36
Fixing dart2js size regression from CustomElement.detail
...
The annotation for CustomEvent.detail was being dropped.
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org//26115003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28807 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 17:36:58 +00:00
floitsch@google.com
af06e8ba5a
Fix scheduleImmediate in Dartium.
...
BUG= http://dartbug.com/14146
R=blois@google.com
Review URL: https://codereview.chromium.org//27543002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28792 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 08:59:32 +00:00
sigmund@google.com
6c4e38b81e
Practically remove boot.js, adds the initialization from the Dart side of
...
things, and fixes examples to work this way.
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//27518006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28773 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 02:43:50 +00:00
blois@google.com
679c9ed699
Fixing mirrors on Window, Document and Element
...
BUG=13654
R=efortuna@google.com
Review URL: https://codereview.chromium.org//27429002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28772 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 01:27:20 +00:00
blois@google.com
7aa71c22cf
Removing dart2js's extends tag inference
...
Since this is now required in the spec and Dartium, no longer need this lookup code for dart2js.
BUG=13839
R=efortuna@google.com
Review URL: https://codereview.chromium.org//27063005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28771 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 01:23:11 +00:00
blois@google.com
ef3ab25c69
Fixing double-completing indexed DB transactions
...
Basically when an error occurs, aborted occurs as well, causing an error because the future was being completed more than once.
BUG=11405
R=efortuna@google.com
Review URL: https://codereview.chromium.org//26789008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28770 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 01:07:17 +00:00
blois@google.com
333054ee75
Supporting non-SSVs in CustomEvent.detail
...
BUG=12641
R=vsm@google.com
Review URL: https://codereview.chromium.org//27308006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28758 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 23:09:33 +00:00
ajohnsen@google.com
762ac7f511
Add support for micro-tasks in Dartium.
...
We are using the MutationObserver to schedule immediate events.
BUG=
R=blois@google.com , floitsch@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//25722010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28715 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 09:16:22 +00:00
blois@google.com
19655e4e6b
Revert "Revert "Removing setImmediate and hiding WindowTimers interface""
...
Issue was that requestAnimationFrame got removed from Dartium during a merge conflict :(
BUG=
R=efortuna@google.com
Review URL: https://codereview.chromium.org//27441002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28700 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 00:50:49 +00:00