Commit Graph

1657 Commits

Author SHA1 Message Date
whesse@google.com 4b9def5115 Fix merge problems in r38573, a cleanup of build scripts.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38574 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-25 12:47:48 +00:00
sra@google.com b0ea0f4863 Some more native-to-@Native conversions missed in r38488
TBR=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38523 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-23 22:46:12 +00:00
kustermann@google.com 13c0d42313 Bugfix in html_dart2js: Detect window objects in a way compatible with cross domain iframes
The "setTimeout" member in window object can only be accessed if the window
object is from the same origin. Cross origin windows will throw a security error
exception.

This is fixed by checking for "postMessage" in the window object (which
can be accessed even in cross-origin windows).

BUG=http://dartbug.com/20166
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38517 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-23 20:16:31 +00:00
sra@google.com 7516e95066 Redo "Use @Native annotation on dart2js DOM native classes"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38488 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-23 04:27:48 +00:00
sra@google.com 9a4f73207e Revert "Use @Native annotation on dart2js DOM native classes"
TBR=blois@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38486 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-23 01:44:13 +00:00
sra@google.com 11a19d95be Use @Native annotation on dart2js DOM native classes
This is one of many steps to removing non-standard syntax from the dart2js libraries.

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38484 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-23 00:23:17 +00:00
asiva@google.com 3d7bf833c0 Change in preparation of fixing issue 19500.
The bindings code will be returning ByteBuffer in dartium so we account
for that in the FileReader return values.

R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38342 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-17 19:40:21 +00:00
efortuna@google.com 8e07c04649 Update supported browser annotations for Firefox Web Audio.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38244 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-15 18:06:35 +00:00
efortuna@google.com 51dbc85367 Fix allow DOMRectList as well as ClientRectList.
BUG=
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38171 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-11 20:56:58 +00:00
efortuna@google.com e0672a319d Add ClipboardEvent for Firefox.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38138 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-10 22:34:07 +00:00
kevmoo@google.com bc4c2eba68 Fixed example in dart:html Events
BUG= https://code.google.com/p/dart/issues/detail?id=19641
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37990 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-03 19:03:13 +00:00
leafp@google.com 851e41a408 Fix overloading for IDBDatabase transaction
Use the underlying dart implementation class in overloading resolution
checks, rather than the dart interface which is presented to the
user.  This resolves an issue with IDBDatabase in which DOMStringList
and sequence<DOMString> have the same Dart interface type
(List<String>), even though the underlying implementation types differ
(List<String> vs DomStringList).

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37883 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-01 17:24:47 +00:00
efortuna@google.com d00d127379 Run new MessageEvent constructor instead of initMessageEvent in Firefox.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37843 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-30 23:03:00 +00:00
efortuna@google.com c5327131d8 Deal with ImputEvent in Firefox.
BUG=
R=blois@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37838 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-30 22:07:09 +00:00
ahe@google.com b2e7876353 Support Shadow DOM in Chrome Beta (36).
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37780 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-27 09:17:24 +00:00
lrn@google.com 1ec6c5c1db Revert "Add "last" setter to List."
After discussion, we decided not to change the List interface for something that is just a convenience.

Also revert "Mark pkgbuild/pkg/collection as failing when using repository packages"

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37307 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-13 09:40:22 +00:00
lrn@google.com f528beb9f2 Add "last" setter to List.
This allows assigning directly as `list.last = value` instead of
having to use the longer `list[list.length - 1] = value`.
It's just an abbreviation, like `list.last` is for reading.

If you use a List as a stack (which is a perfectly good use of it),
modifying the last element like this is a natural operation.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37255 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-12 08:11:22 +00:00
asiva@google.com e44ec0ed9c Modify getType to ensure that it does not result in initialization of
entries for all libraries on the first access to getType.

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37231 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-11 15:56:40 +00:00
vsm@google.com 5267857888 Modify blink type map to finalize lazily
Ivan suggested altering our type maps to add a level of indirection - to avoid eagerly finalizing all classes.

Siva: not sure how you're instrumenting startup - can you test this out?

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37222 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-11 05:48:33 +00:00
leafp@google.com 476278985c Refactor dart:_blink into classes to improve startup time.
This CL reduces the snapshot size by about 20% (580kb).

BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37189 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-10 17:38:29 +00:00
jacobr@google.com 551642c628 Fix dart2js generated code for deprecated&removed resetStyleInheritance and applyAuthorStyles methods.
BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37154 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-10 01:20:51 +00:00
jacobr@google.com dd3514bc67 Add back invalid natives that couldn't be removed due to analyzer warnings.
BUG=
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37146 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-09 23:19:41 +00:00
jacobr@google.com c4e40bb34d Native method name mismatch cleanups for Dartium 36 roll.
BUG=
R=efortuna@google.com, leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37142 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-09 22:31:05 +00:00
jacobr@google.com 00e3d6045e Fix dart analyzer warnings.
Ignore static mirrors without valid names.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36977 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 05:45:55 +00:00
jacobr@google.com 1f355c2a2f Ignore mirrors without valid names.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36971 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 03:12:19 +00:00
jacobr@google.com 3a10438002 Support Dart debugger API directly
BUG=
R=leafp@google.com, rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36965 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 01:14:01 +00:00
asiva@google.com f7ccafc340 Use a proper closure instead of a 'close your eyes' style closure
for setting up '_printClosure'.

This avoid the startup cost of looking up types 'window', 'console'
and 'HTMLDocument' types when we try to setup _printClosure.
On a nexus 4 device the change results in the following time changes:

Before the change:
I/Dartium (25903):     createIsolate before printClosure setting 155.318 ms
I/Dartium (25903):     createIsolate after printClosure setting 403.052 ms


After the Change:
I/Dartium (26537):     createIsolate before printClosure setting 157.058 ms
I/Dartium (26537):     createIsolate after printClosure setting 162.918 ms

R=rmacnak@google.com, vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36943 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-03 21:09:07 +00:00
blois@google.com d9f57b87cc Dartium custom element upgrade fixes
Some bitrot from the dart:blink work on these bits, updating in prep for landing the Dartium side.
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36936 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-03 20:26:33 +00:00
leafp@google.com d9021ef1ef Return dart:html scroll* etc types to int
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36915 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-03 11:03:35 +00:00
efortuna@google.com ebe987dd84 Have the same behavior for setting a CSS style to null versus empty string in all browsers.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36888 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-02 18:22:39 +00:00
leafp@google.com 1c5367d267 Clamp output to int
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36868 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-02 12:05:04 +00:00
efortuna@google.com 60c657e9de Add in semicolons in CSSStyleDeclaration change!
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36847 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-30 22:38:01 +00:00
efortuna@google.com 25983f986c Fixed docs for webGL method variants (overloaded methods were getting the same comments).
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36846 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-30 22:32:00 +00:00
efortuna@google.com 4b74a83d64 Updated flex CSS prefix for Firefox.
Fix for https://code.google.com/p/dart/issues/detail?id=15759

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36845 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-30 22:30:42 +00:00
efortuna@google.com 4f041c2cff Updated documentation for HttpRequest.
Fix for https://code.google.com/p/dart/issues/detail?id=14423

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36844 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-30 22:26:23 +00:00
terry@google.com 28f79436af Add type map entry for DataTransfer
BUG=http://dartbug.com/19041
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36784 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-29 14:55:03 +00:00
terry@google.com 999c9a32e5 Supress webkitBackingStorePixelRatio and expose custom backingStorePixelRatio getter that always returns 1.0
Review=jacobr@google.com
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36720 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 23:38:04 +00:00
vsm@google.com 5fc33c9533 Deprecate ShadowRoot.applyAuthorStyles
This is gone in Chrome 36 as well.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36634 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-26 12:33:58 +00:00
vsm@google.com e5bb23a428 Use proper prefix for blink
TBR=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36633 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-26 11:54:23 +00:00
vsm@google.com c36c9df390 Change Element offset/client/scroll attributes to be num instead of int
Note, these attributes have changed from int to double in Chrome 36. On Dartium, this breaks us in checked mode. Unfortunately, I cannot easily change the dart.idl to mark these as double - that will break Chrome 34 and 35.

For now, I need custom code to mark these as num. We need a better solution.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36627 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-26 10:49:31 +00:00
blois@google.com ab7e487be7 Fixing iframe.contentWindow.postMessage passing incorrect data
It should have been doing the structured clone algorithm on the message being posted (window.postMessage does this), but was not.

BUG=18956
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36581 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 20:01:52 +00:00
vsm@google.com 593f3fddf5 Revert "Revert 2 CLs to get one last Dartium 34."
This reapplies Jacob's CLs for Dartium 35 / 1916.

For landing after:
https://codereview.chromium.org/298823004/

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36419 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-21 11:13:35 +00:00
vsm@google.com 8c33955982 Revert 2 CLs to get one last Dartium 34.
I will re-apply these after the next trunk push.

Revert "patch from issue 294853002"

This reverts commit r36395.

Revert "Fix Path"

This reverts commit r36401.

BUG=
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36409 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-21 07:20:42 +00:00
jacobr@google.com 0b11d0040f Fix Path
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36401 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-21 00:24:43 +00:00
jacobr@google.com 19c563446e patch from issue 294853002
BUG=
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36395 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-20 22:21:01 +00:00
leafp@google.com 6ebdf0dec9 Resolver fixes
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36385 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-20 21:37:35 +00:00
leafp@google.com 80b15f468f SDK rebuild
Eliminate unneeded custom from dart.idl

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36367 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-20 17:33:09 +00:00
vsm@google.com 96b622e72d Dartium 35: Suppress type signature on custom constructors
TBR=terry@google.com,leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36357 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-20 14:16:42 +00:00
vsm@google.com 59bde80b10 Remove mangling for custom methods in dart:_blink
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36353 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-20 12:45:12 +00:00
vsm@google.com 098aa42080 Dartium 35: Add a deprecated ShadowRoot.resetStyleInheritance
TBR=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36349 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-20 09:47:02 +00:00