terry@google.com
e0fff4e457
Changes to support roll 39 IDLs
...
Reviewers=vsm@google.com ,asiva@google.com
Review URL: https://codereview.chromium.org//952133004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44099 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-27 18:10:08 +00:00
jacobr@google.com
60bae5bb5d
Cleanup method signatures that were incorrect due to a lack of understanding about how Dart generics work.
...
BUG=
R=alanknight@google.com , terry@google.com
Review URL: https://codereview.chromium.org//896293003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43562 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 19:15:49 +00:00
sra@google.com
8bed532218
Tweak toString() for better type inference
...
These changes ensure dart2js can infer toString() returns a non-null String on some of our samples.
One tactic is to always write toString method for which all returned expressions are a an interpolation (or literal), or a call to StringBuffer.toString.
R=alanknight@google.com , lrn@google.com
Review URL: https://codereview.chromium.org//895813002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43534 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 00:24:51 +00:00
terry@google.com
69e76a7b28
Clamp scrollX, scrollY, pageXOffset, and pageYOffset from double to int
...
TBR=vsm@google.com ,asiva@google.com
Review URL: https://codereview.chromium.org//898993002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43477 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 16:59:12 +00:00
sra@google.com
b68a69329f
Add type annotations to some dart:html closures
...
This helps code quality when the types can be trusted or verified.
R=jacobr@google.com
Review URL: https://codereview.chromium.org//891583002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43349 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-30 23:08:39 +00:00
sra@google.com
7a46d4232b
Simplify _FrozenElementList
...
There is no need to filter the NodeList since it can contain only Elements.
R=jacobr@google.com
Review URL: https://codereview.chromium.org//802603002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42306 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-12 01:40:31 +00:00
leafp@google.com
78e328a2f2
More dart:html and dart:blink tweaks
...
Methods with no arguments mangled properly (python None and 0 are both false...).
Abstract classes generated from pure interfaces have no method bodies.
Add missing pure interfaces.
Emit dart:blink methods in sorted order.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//671023003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41288 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-24 17:47:14 +00:00
leafp@google.com
6de1786199
Arity indexing in dart:blink entry points
...
This CL replaces type mangling on the blink entry points with arity indexing. So overloaded methods or methods with optional arguments now dispatch to blink entries specific to their number of arguments (but not their types). This relies on C++ overload resolution being in place on the blink side (see https://codereview.chromium.org/668733002/ ). For the time being, the dart side overload resolution code is left in place.
Resolver strings now have no type or arity info as well.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//667983002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41236 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-21 20:46:55 +00:00
sra@google.com
be78d098a0
Make Node.nodes.insertAll work for an end-positioned index.
...
R=blois@google.com
Review URL: https://codereview.chromium.org//613063002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40819 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-30 17:54:03 +00:00
vsm@google.com
94095d64a2
Merge 38 changes to bleeding edge
...
TBR=terry@google.com ,leafp@google.com
BUG=
Review URL: https://codereview.chromium.org//605083004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40774 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-29 15:56:25 +00:00
vsm@google.com
1c4bb5f363
Revert "Chrome 38 script changes from integration branch"
...
This reverts commit r40567.
TBR=leafp@google.com
Review URL: https://codereview.chromium.org//589253002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40570 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-22 21:11:34 +00:00
vsm@google.com
9e25106514
Chrome 38 script changes from integration branch
...
TBR=leafp@google.com
Review URL: https://codereview.chromium.org//593853002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40567 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-22 20:45:57 +00:00
vsm@google.com
2b9b3a132f
Temporary fix for CanvasRenderingContext2D.arc
...
TBR=terry@google.com
Review URL: https://codereview.chromium.org//558703004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40221 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-12 21:42:36 +00:00
vsm@google.com
e379d380bc
Migrate to Chrome 37 IDL
...
This enables terry's new scripts with fixes from vsm and leafp (tested in the dartium_integration branch).
R=leafp@google.com
Review URL: https://codereview.chromium.org//569783002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40219 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-12 21:18:06 +00:00
leafp@google.com
8e3aaa4e75
Blink uses types in entry points
...
This CL changes the way that blink entry points are named to
use the type signature uniformly. This makes us somewhat
more robust against changes in the idl.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//552533004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40006 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 00:17:15 +00:00
aprelev@gmail.com
6e19ede429
Fix Try Dart newline handling on IE11.
...
BUG=dartbug.com/20593
R=ahe@google.com , blois@google.com , efortuna@google.com
Review URL: https://codereview.chromium.org//494253002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39626 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 23:12:19 +00:00
leafp@google.com
61fe00cb78
Round Touch attributes back to int for backwards compatibility
...
Most of the attributes in the Touch interface (clientX/Y, screenX/Y, pageX/Y, webkitRadiusX/Y) have changed to use double instead of int. Since we are generating dart:html from old idl, this immediately breaks for us as soon as these are used. This CL wraps calls to these with a round to retain the old API.
BUG=http://dartbug.com/20587
R=blois@google.com
Review URL: https://codereview.chromium.org//493843003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39426 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-20 20:29:36 +00:00
efortuna@google.com
43063f3ad8
Do regular expression for camelCase CSS processing in JS.
...
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org//448413002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39018 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-08 00:50:20 +00:00
efortuna@google.com
672bb377bc
Make camelcasing use a regular expression for CSS properties.
...
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org//455483002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39012 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 23:00:52 +00:00
efortuna@google.com
b8ab793a1b
Reapply 38999. Third time's the charm! The issue was supportsTransitions was a
...
static method,and with my change I was calling an instance method. I've tested
all of the other html tests (before I was just testing on Dartium).
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org//445733003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39003 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 18:36:23 +00:00
efortuna@google.com
c8d48f89a9
t cl dcommi# Enter a description of the change.
...
"Reverting 38998"
TBR
BUG=
Review URL: https://codereview.chromium.org//449033004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38999 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:50:26 +00:00
efortuna@google.com
c7dd285314
Reapplication of revision 38996 (dart side edits to make CSS Properties
...
accessible with and without prefixes), with the addition of CSSPropertyNames.in
which will be deleted once https://codereview.chromium.org/444453006/
is committed.
BUG=
Review URL: https://codereview.chromium.org//452493004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38998 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:21:06 +00:00
efortuna@google.com
ceea5ab278
"Reverting 38996"
...
TBR because we need CSSPropertyNames.in from DEPS
BUG=
Review URL: https://codereview.chromium.org//451563005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38997 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:12:12 +00:00
efortuna@google.com
19c379afd9
This is the dart side edits to make this happen.
...
Fix for https://code.google.com/p/dart/issues/detail?id=19932
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org//442523003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38996 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 17:09:40 +00:00
karlklose@google.com
7ff889c209
Change void typed setters in html_dart2js not to return a value.
...
Even though the return value of a setter is ignored, it must be checked against the declared return type in checked mode since setters are evaluated like normal functions (see Specification, 16.12).
BUG= http://dartbug.com/20381
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//443883002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38925 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-06 10:48:01 +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
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
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
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
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
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
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
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
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
efortuna@google.com
0e1022a6f7
Make fill parameter in context2d default to 'nonzero' as per the spec.
...
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org//279453003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36134 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-13 21:04:17 +00:00
efortuna@google.com
c0235e93ab
"Reverting 36054"
...
TBR
BUG=
Review URL: https://codereview.chromium.org//282713002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36071 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-12 21:17:14 +00:00
efortuna@google.com
4599791901
Make fill parameter default to empty String.
...
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org//277403002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36054 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-12 19:30:48 +00:00
jmesserly@google.com
1102849f15
[dart:html] rename register to registerElement per spec
...
BUG= https://code.google.com/p/dart/issues/detail?id=18621
R=jacobr@google.com
Review URL: https://codereview.chromium.org//268313002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35829 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-06 20:41:07 +00:00
jmesserly@google.com
459738a631
[dart:html] rename custom elements callbacks to match spec
...
Dartium side is forthcoming. Tests still using attached/detached until we have it in Dartium.
R=blois@google.com
Review URL: https://codereview.chromium.org//264903005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35673 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-02 00:22:09 +00:00