Commit graph

1546 commits

Author SHA1 Message Date
Terry Lucas 0aad46c4c6 Fixed handle of multi-inheritance
TBR=jacobr@google.com,alanknight@google.com

Review URL: https://codereview.chromium.org/1727233003 .
2016-02-24 06:55:08 -08:00
Alan Knight 78b0f6f353 Replace the now missing ContextAttributes with our previously Firefox-only _TypedContextAttributes
BUG=
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1727003002 .
2016-02-23 16:33:31 -08:00
Alan Knight cc142b92a4 Treat Element.clientTop/Left/etc same as scrollTop/etc., avoid duplicate members
BUG=
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1726173002 .
2016-02-23 16:29:40 -08:00
Alan Knight ce744f6222 Some dart2js fixes with new IDL. RequestCallback name and web_sql import
BUG=
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1729813002 .
2016-02-23 16:27:59 -08:00
Alan Knight 14b2dfd8dd Add wrap/unwrap_jso calls in native_DOMImplementation, remove unused _DOMStringMap
BUG=

Review URL: https://codereview.chromium.org/1724853002 .
2016-02-23 11:21:01 -08:00
Alan Knight e67b4c9161 Fix generator to use SerializedScriptValue for all postMessages
BUG=

Review URL: https://codereview.chromium.org/1723703002 .
2016-02-23 09:28:55 -08:00
Terry Lucas 97861e3f22 Fixed a few problems with 45 roll merge
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1720823003 .
2016-02-22 12:02:43 -08:00
Terry Lucas a3350d9b06 Generation of sdk/lib files from 45 roll
TBR=alanknight@google.com,jacobr@google.com

Review URL: https://codereview.chromium.org/1720743005 .
2016-02-22 10:59:12 -08:00
William Hesse 2573093c50 Switch to downloaded SDK executable, drop executables in testing/bin.
BUG=https://github.com/dart-lang/sdk/issues/24311
R=ricow@google.com

Review URL: https://codereview.chromium.org/1697203002 .
2016-02-15 17:10:59 +01:00
Alan Knight f2fd68c362 Fix MessageEvent.data to convert using structured clone.
BUG=

Review URL: https://codereview.chromium.org/1683403005 .
2016-02-11 13:05:53 -08:00
Jacob Richman c0ddc73fce Switch broken console inspect method to call the _inspect method of the JS inspector host object.
BUG=

Review URL: https://codereview.chromium.org/1689033003 .
2016-02-10 18:49:25 -08:00
Jacob Richman f478562b0a Dartium 45 roll
R=alanknight@google.com

Review URL: https://codereview.chromium.org/1682783002 .
2016-02-09 10:50:43 -08:00
Sigmund Cherem c3e61f315c cpsir: triage remainder of html test suite, fix a couple.
R=asgerf@google.com, het@google.com

Review URL: https://codereview.chromium.org/1679603002 .
2016-02-08 10:37:52 -08:00
Jacob Richman cf7ae2e0cb Support JS$ prefix for dart and fix bug where _operator_getter and the [] operator were used inconsistently. Would only impact future use cases where js APIs returned types not auto-proxied with dart:html.
Support typed JS interop classes that extend the behavior of  dart:html types in Dartium.

This theoretically enables supporting package:dom at the same time as dart:html as well as helping with
JavaScript libraries that monkey patch the dom.

Also support JS$ name prefix to resolve name conflicts with dart reserved words and with
dart:html libraries.
Cleanup addEventListener and friends so they are consistent with typed JS Interop and fix
bugs in the unlikely case where multiple functions have the same identity hash.
Add checks to make it easier to catch when allowInterop is accidentally omitted
when using the new typed JavaScript interop. You will now get an exception
any time you pass a Function to JS via the new typed interop without first
calling allowInterop.

BUG=
R=alanknight@google.com

Review URL: https://codereview.chromium.org/1583773003 .
2016-01-15 10:40:32 -08:00
Alan Knight 87c1bb4b39 Add autofocus to the Html5NodeValidator list of standard attributes for <input>
BUG=

Review URL: https://codereview.chromium.org/1588773002 .
2016-01-13 17:19:00 -08:00
Alan Knight 7f80dbbbe1 Revert "Mark supportsPointConversions deprecated and always true rather than testing DOMPoint"
This reverts commit 2dfdfe554e.

BUG=

Review URL: https://codereview.chromium.org/1583673002 .
2016-01-12 16:24:12 -08:00
Alan Knight 2dfdfe554e Mark supportsPointConversions deprecated and always true rather than testing DOMPoint
BUG=

Review URL: https://codereview.chromium.org/1580203002 .
2016-01-12 13:52:38 -08:00
Alan Knight a5ba7a7db6 Add an Unstable comment/annotation on caretRangeFromPoint
BUG=

Review URL: https://codereview.chromium.org/1578103003 .
2016-01-12 11:12:47 -08:00
Alan Knight 914bf02cde Switch to using HashChangeEvent constructor instead of initHashChangeEvent
BUG=

Review URL: https://codereview.chromium.org/1582443003 .
2016-01-12 09:42:06 -08:00
William Hesse 634e5a1d02 Refs #25328 Use a portable shebang
BSD systems don't place bash in /bin and a lot of the dart tools
hardcode a #!/bin/bash shebang that fails the 'all' target build
(not able to execute dart2js since the interpreter is not found).

Solve the issue by using #!/usr/bin/env as the shebang. For scripts
that need to pass arguments to bash modify the script to use the set
command as the first executed line of shell.

BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org/1552313002 .
2016-01-05 16:26:28 +01:00
Alan Knight ced1e5d1e7 Allow Window.open to return null in dart2js
BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org/1540333002 .
2015-12-21 13:32:29 -08:00
Alan Knight 168e9ee882 Remove ugly check for super.created call in constructor
BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org/1537563006 .
2015-12-18 09:41:45 -08:00
William Hesse 3afd7025d6 Remove outdated support for chrome-only apis
These scripts, which are no longer used, generated support for Chrome
web app apis.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1526973002 .
2015-12-17 14:50:19 +01:00
Sigmund Cherem 30c4c2b86e Change default dom.py to use ReleaseX64 (matching the default vm/dart2js arch)
BUG=
R=alanknight@google.com

Review URL: https://codereview.chromium.org/1514243002 .
2015-12-10 16:41:15 -08:00
Alan Knight 160355de42 Add the right type conversions for various postMessage methods
BUG=

Review URL: https://codereview.chromium.org/1490763005 .
2015-12-01 10:48:19 -08:00
Stephen Adams ceaa0bdcc4 Use proper type in _createElement_2
Without the annotation it is possible for a (small) program to tree-shake Element.

BUG=
R=alanknight@google.com

Review URL: https://codereview.chromium.org/1486803002 .
2015-11-30 15:10:54 -08:00
Stephen Adams 0b9cdccf1c Tweak Document.createElement for better inlining
Single return statement lets the current optimizer inline the function.

R=alanknight@google.com

Review URL: https://codereview.chromium.org/1488793002 .
2015-11-30 13:36:19 -08:00
Alan Knight d2b1388ed1 Switch IDB Database.transaction to use a template to do the right type conversions
BUG=

Review URL: https://codereview.chromium.org/1473443003 .
2015-11-23 14:29:44 -08:00
Sam Rawlins 931ceef9b2 Fixing dart:html links _not_ found in docs.json
BUG= https://github.com/dart-lang/sdk/issues/23601
R=alanknight@google.com

Review URL: https://codereview.chromium.org/1448963002 .
2015-11-16 10:18:23 -08:00
Sam Rawlins 974b461235 Update 145 DOM doc links to use proper Markdown; fix 56 broken links
BUG= https://github.com/dart-lang/sdk/issues/23601

Tested with dartdoc package at HEAD with new markdown package 0.9. Looks great.

R=alanknight@google.com

Review URL: https://codereview.chromium.org/1440183003 .
2015-11-13 14:43:49 -05:00
Alan Knight d3abcbaae0 Make GlobalEventHandlers not inherit from EventTarget
BUG=

Committed: 4d2191990e

Review URL: https://codereview.chromium.org/1437033002 .
2015-11-13 10:19:23 -08:00
Alan Knight 65dfa74dd4 Revert "Make GlobalEventHandlers not inherit from EventTarget"
This reverts commit 4d2191990e.

BUG=

Review URL: https://codereview.chromium.org/1442463005 .
2015-11-12 15:29:46 -08:00
Alan Knight 4d2191990e Make GlobalEventHandlers not inherit from EventTarget
BUG=

Review URL: https://codereview.chromium.org/1437033002 .
2015-11-12 13:35:30 -08:00
Alan Knight 42b9d7b702 Serialize the data argument to History's state-related APIs.
BUG=

Review URL: https://codereview.chromium.org/1414903007 .
2015-11-05 16:23:44 -08:00
Terry Lucas 1492a5dedd Return the real error during custom element created failure
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1405963015 .
2015-11-05 13:49:47 -08:00
Alan Knight a98388886a Wrap DomStringList, but don't wrap DomString[] as return types
BUG=

Review URL: https://codereview.chromium.org/1410853005 .
2015-11-03 11:22:37 -08:00
Alan Knight 53b506b1bf Fix indexed access for DataTransferItemList
BUG=

Review URL: https://codereview.chromium.org/1431543004 .
2015-11-03 09:35:22 -08:00
Kevin Moore 156bc53866 Hide implementation members in dart:html, dart:js and related libraries
Closes https://github.com/dart-lang/sdk/issues/24602

R=alanknight@google.com, jacobr@google.com, terry@google.com

Review URL: https://codereview.chromium.org/1416043008 .
2015-11-02 13:23:22 -05:00
Jacob Richman 9075efbb43 Fix broken console evaluation in devtools when stopped at an async frame.
It appears that the Dart VM is now adding a local with invalid dart name :async_op
in some cases when the call stack is async.
This change filters out those variables from the list of locals.

BUG=
R=alanknight@google.com

Review URL: https://codereview.chromium.org/1424133002 .
2015-10-28 15:00:34 -07:00
Alan Knight 8831fb876e Deprecate new internal Dartium/JsInterop APIs that are public
BUG=

Review URL: https://codereview.chromium.org/1428593002 .
2015-10-27 10:55:12 -07:00
Terry L. Lucas d796048fcc Fixed improper construction of custom elements.
Was a too aggressive on upgrading a custom element.  If a JS object is a custom element never construct using the actual custom class in wrap_jso only allocate the TemplateElement or HtmlElement and let the upgrader or createdCallback do the upgrading.  This was causing timing issues with nested custom elements that were data bound.

TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1417363003 .
2015-10-22 16:35:46 -07:00
Alan Knight a9362610ee Hide internal methods like wrap_jso from the dart:html public interface
Issue https://github.com/dart-lang/sdk/issues/24602

R=terry@google.com

Review URL: https://codereview.chromium.org/1409743003 .
2015-10-19 11:28:53 -07:00
Alan Knight 1a1820bbe3 Move make_dart_rectangle to html_common
BUG=

Review URL: https://codereview.chromium.org/1402233002 .
2015-10-14 14:06:24 -07:00
Terry L. Lucas e562934def More tests now pass and fixed custom elements to only work in default html and svg namespace
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1392063003 .
2015-10-14 11:44:01 -07:00
Terry L. Lucas 4653701a76 Fixed native element extension, custom events, _VMUpgrader, and data binding.
Enabled tests that exercise this areas.

TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1391143006 .
2015-10-14 10:03:56 -07:00
Terry L. Lucas 6f1d12c78e Re-enabled code to aggressively upgrade on wrap_jso
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1396413002 .
2015-10-12 16:00:58 -07:00
Alan Knight 88b456d529 Make the check for calling super.created not sensitive to line delimiters
BUG=

Review URL: https://codereview.chromium.org/1399133003 .
2015-10-12 14:40:30 -07:00
Terry L. Lucas ad8ed17bb8 Fixed wrap_jso recursive calls - now rely on Utils_constructor_create to call setDartHtmlWrapper prior to calling the created constructor.
TBR=jacobr@google.com,alanknight@google.com

Review URL: https://codereview.chromium.org/1401233002 .
2015-10-12 13:56:27 -07:00
Terry L. Lucas 5e8a506677 Extension support
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1401063003 .
2015-10-12 10:09:42 -07:00
Terry L. Lucas 5c04f8a13c Disable bad test and don't allow registerElement of direct class in dart:html or dart:svg
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1397323002 .
2015-10-12 03:17:21 -07:00
Terry L. Lucas 6227b207e6 Fixed to allow only HtmlElement in registerElement
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1403683002 .
2015-10-11 20:53:50 -07:00
Terry L. Lucas b6503c7f74 Added for registerElement checking
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1401703002 .
2015-10-11 18:57:59 -07:00
Terry L. Lucas 4f9771f4e1 Fixed JS custom elements and temporarily mark polymer test as failing
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1402693002 .
2015-10-10 16:50:10 -07:00
Terry L. Lucas 888d458e90 Fixed upgrading and data binding
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1403623002 .
2015-10-09 17:03:53 -07:00
Terry L. Lucas 82fdf816b9 Added Alan's CL 1398603003 and augmented with upgrade for HtmlElement and HTMLElement
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1400843002 .
2015-10-09 09:38:37 -07:00
Terry L. Lucas 78658b3a88 Hide the accessors for bad custom element upgrade
TBR=alanknight@google.com,jacobr@google.com

Review URL: https://codereview.chromium.org/1397793002 .
2015-10-08 10:27:51 -07:00
Alan Knight c92a2450b4 Switch dart:html objects not to be NativeFieldWrapper subclasses with JsInterop
BUG=

Review URL: https://codereview.chromium.org/1392723003 .
2015-10-07 17:42:39 -07:00
Terry L. Lucas c9b553aad1 Fixed upgrade failures to only throw once not on each wrap_jso
R=alanknight@google.com
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1395723002 .
2015-10-07 14:37:24 -07:00
Jacob Richman 1f9516ba0b Fix some build breaks.
Fix test breaks

Roll dep forward to fix windows build.

Dartium typed js interop work dart repo side of the change. Also tries to get

BUG=

Review URL: https://codereview.chromium.org/1390113003 .
2015-10-07 13:47:12 -07:00
Jacob Richman 8d793ca758 Dartium typed js interop work dart repo side of the change. Also tries to get
BUG=

Review URL: https://codereview.chromium.org/1391353002 .
2015-10-07 11:44:50 -07:00
Alan Knight 9ad57e7aa3 Fix Crypto.getRandomValues to modify its argument, fix tests
BUG=

Review URL: https://codereview.chromium.org/1387273002 .
2015-10-07 09:11:14 -07:00
Terry L. Lucas ff5d07a4e9 Fixed few more issues with upgrader and custom event identitiy
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1391273002 .
2015-10-07 08:53:31 -07:00
Terry L. Lucas f867fb0218 Fixed element upgrading for polymer
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1382383003 .
2015-10-06 13:11:23 -07:00
Terry L. Lucas ecfad36ac7 Fixed custom elements to work in Polymer
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1389683002 .
2015-10-05 08:55:52 -07:00
Alan Knight 110b579b8a wrap_jso should wrap JsArray as well, not always call wrap on its contents
BUG=

Committed: f0e52e4e91

Review URL: https://codereview.chromium.org/1383903002 .
2015-10-02 12:48:06 -07:00
Alan Knight da7d6379cc Revert "wrap_jso should wrap JsArray as well, not always call wrap on its contents"
This reverts commit f0e52e4e91.

BUG=

Review URL: https://codereview.chromium.org/1378183003 .
2015-10-01 17:51:51 -07:00
Alan Knight f0e52e4e91 wrap_jso should wrap JsArray as well, not always call wrap on its contents
BUG=

Review URL: https://codereview.chromium.org/1383903002 .
2015-10-01 16:22:17 -07:00
Alan Knight eafe9d6b60 Make the dartWrapper access on JsObject private and provide top-level functions for it
BUG=
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1369263004 .
2015-10-01 15:10:48 -07:00
Alan Knight 07b2ddd401 Preserve identity of Dart wrappers on DOM objects
BUG=

Review URL: https://codereview.chromium.org/1380963003 .
2015-10-01 14:04:01 -07:00
Alan Knight 59bd28d8cf Revert "Preserve identity on wrap_jso hack. Has known failures"
This reverts commit e65577e4aa.

BUG=

Review URL: https://codereview.chromium.org//1380603004 .
2015-09-30 17:50:54 -07:00
Alan Knight e65577e4aa Preserve identity on wrap_jso hack. Has known failures
BUG=

Review URL: https://codereview.chromium.org//1382483003 .
2015-09-30 13:39:03 -07:00
Alan Knight 8f8d9e7180 Revert "Cache all wrap_jso results so we preserve identity"
This reverts commit fd52ed572f.

BUG=

Review URL: https://codereview.chromium.org//1374683004 .
2015-09-29 17:18:03 -07:00
Alan Knight fd52ed572f Cache all wrap_jso results so we preserve identity
BUG=

Review URL: https://codereview.chromium.org//1376083002 .
2015-09-29 16:41:38 -07:00
Terry L. Lucas 138888e566 Need to handle skipping mixins in a CustomElement
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1368383002 .
2015-09-28 07:29:14 -07:00
Terry L. Lucas 40fed74848 Fixed checking for more complex inheritance
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1374543002 .
2015-09-27 21:09:34 -07:00
Terry L. Lucas 3ce007e910 Fixed a bunch of failure cases for custom elements
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1373563004 .
2015-09-25 15:12:08 -07:00
Alan Knight 1b80b9013e Make sure we short-circuit the second corruption test, it might be crashing firefox
BUG=

Review URL: https://codereview.chromium.org//1371543002 .
2015-09-24 16:45:08 -07:00
Terry L. Lucas 54282ccd72 Update to handle expections in custom element's created constructor
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1370513003 .
2015-09-24 13:17:35 -07:00
Alan Knight 5b6401e900 Move JS calls out of Dartium code
BUG=

Review URL: https://codereview.chromium.org//1369573004 .
2015-09-24 12:36:18 -07:00
Alan Knight 8f35656f9b Fix node_validator xss tests for IE and Firefox
BUG=

Review URL: https://codereview.chromium.org//1365093003 .
2015-09-24 10:43:08 -07:00
Alan Knight 0568fa8679 Omit extra argument to createElement/NS if null
BUG=

Review URL: https://codereview.chromium.org//1345413004 .
2015-09-22 09:28:38 -07:00
Alan Knight aebb870b13 Start using the dart2js type conversions in Dartium as well.
BUG=

Review URL: https://codereview.chromium.org//1349293006 .
2015-09-18 12:44:36 -07:00
Terry L. Lucas bcf8dfe1f1 Merge mistake removed annotations for dart2js; re-added.
TBR=sra@google.com

Review URL: https://codereview.chromium.org//1350063004 .
2015-09-18 07:25:33 -07:00
Johnni Winther ecb1e33a7f Report hint on unmatched show and hide combinators.
BUG=
R=karlklose@google.com

Review URL: https://codereview.chromium.org//1346133002.
2015-09-17 12:33:17 +02:00
Terry L. Lucas fc8682ceac Fixed another dart2js code emitting error and enabled tests that now work
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1346203002 .
2015-09-16 08:19:15 -07:00
Terry L. Lucas 7b322c246c Dartium JS Enabled take 2
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1348173002 .
2015-09-16 07:13:53 -07:00
Terry L. Lucas 09c804aa78 Revert "Dartium JS Interop enabled."
This reverts commit 403bd1698d.

TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1345083002 .
2015-09-15 19:44:26 -07:00
Terry L. Lucas 403bd1698d Dartium JS Interop enabled.
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1349493003 .
2015-09-15 17:36:47 -07:00
Terry L. Lucas 9b0d2582fc Revert "Dartium w/ JsInterop enabled"
This reverts commit 346af54711.

TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1330163010 .
2015-09-09 17:33:24 -07:00
Terry L. Lucas 346af54711 Dartium w/ JsInterop enabled
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1321613005 .
2015-09-09 17:01:40 -07:00
Terry L. Lucas 012c998f64 Revert "Patched in Dartium JsInterop"
This reverts commit 4bb2e617db.

TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1327083002 .
2015-09-08 13:35:03 -07:00
Terry L. Lucas 4bb2e617db Patched in Dartium JsInterop
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1310363006 .
2015-09-08 12:46:41 -07:00
Alan Knight 89b99e60bf Remove dart2js-specific annotations from childNodes
BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org//1290263002 .
2015-08-14 09:32:45 -07:00
Alan Knight cd8c569632 Make sure NodeValidator uriAttributes aren't passed as attributes
WIP

BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org//1236413002 .
2015-07-17 14:12:44 -07:00
Alan Knight de3ce04f0a Fix type problem with FilteredElementList._iterable
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org//1236793006 .
2015-07-17 10:53:19 -07:00
Terry L. Lucas 206ffe343b Revert "- Update _blink library using dart:js instead of native keyword"
This reverts commit 8ecb64d6b0.

TBR=vsm@google.com

Review URL: https://codereview.chromium.org//1237263005 .
2015-07-17 07:45:12 -07:00
Terry L. Lucas 8ecb64d6b0 - Update _blink library using dart:js instead of native keyword
- Fixed dart:js event wrapping
- Fixed dart2js gen when --gen-interop used
- Cleanup and enabled static window() for JS interop
- Enabled --gen-interop
- Added --gen-interop switch

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

Review URL: https://codereview.chromium.org//1234273003 .
2015-07-17 07:37:18 -07:00
Alan Knight d5599eb63b Restore workaround for old Chrome bug that also affects Safari and in some cases Firefox, fix test suppressions
BUG=

Review URL: https://codereview.chromium.org//1242063002 .
2015-07-16 13:20:26 -07:00
Alan Knight 4e790fef3d appendHtml, when sanitizing, should create document fragment in the right context
BUG=
R=terry@google.com

Committed: 560f12bb21

Committed: 930a40daa5

Review URL: https://codereview.chromium.org//1221043003 .
2015-07-16 10:30:51 -07:00
Terry L. Lucas 5e52d8dc5d Updates for dart:js fixes after initial --gen-interop
TBR=vsm@google.com,alanknight@google.com

Review URL: https://codereview.chromium.org//1228093007 .
2015-07-16 09:52:44 -07:00
Terry L. Lucas cec5812335 Fixed Dictionary and Event hookup w/o --gen-interop
TBR=vsm@google.com

Review URL: https://codereview.chromium.org//1233083004 .
2015-07-14 14:18:48 -07:00
Terry L. Lucas 1fa61ee114 Fixed a few more things to make Dartium build w/o --gen-interop
TBR=vsm@google.com

Review URL: https://codereview.chromium.org//1239653003 .
2015-07-14 07:17:59 -07:00
Terry L. Lucas 82fbd3382a Remove blink_jsObject when --gen-interop is not used.
TBR=vsm@google.com

Review URL: https://codereview.chromium.org//1236933003 .
2015-07-14 05:49:27 -07:00
Alan Knight 610edadff2 Revert "appendHtml, when sanitizing, should create document fragment in the right context"
This reverts commit 930a40daa5.

BUG=

Review URL: https://codereview.chromium.org//1230203005 .
2015-07-13 15:32:17 -07:00
Terry L. Lucas 045d9698d3 Revert "Turn on JS interop usage for DOM Dart libraries"
This reverts commit 7f6fc7eed2.
2015-07-13 13:40:42 -07:00
Terry L. Lucas 7f6fc7eed2 Turn on JS interop usage for DOM Dart libraries
Review URL: https://codereview.chromium.org//1235903003 .
2015-07-13 13:38:45 -07:00
Terry L. Lucas 48af868f47 Fixed compilation error
Review URL: https://codereview.chromium.org//1233923003 .
2015-07-13 13:24:08 -07:00
Alan Knight 930a40daa5 appendHtml, when sanitizing, should create document fragment in the right context
BUG=
R=terry@google.com

Committed: 560f12bb21

Review URL: https://codereview.chromium.org//1221043003 .
2015-07-13 12:50:49 -07:00
Terry L. Lucas 4947e570d4 Changed to use JSInterop
Review URL: https://codereview.chromium.org//1173403004 .
2015-07-13 12:38:16 -07:00
Seth Ladd 4c685b6e84 add docs for indexed_db
BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org//1233513002 .
2015-07-09 16:20:03 -07:00
Alan Knight 1e8a275a20 Revert "appendHtml, when sanitizing, should create document fragment in the right context"
This reverts commit 560f12bb21.

	modified:   sdk/lib/html/dart2js/html_dart2js.dart
	modified:   sdk/lib/html/dartium/html_dartium.dart
	modified:   tests/html/element_add_test.dart
	modified:   tools/dom/templates/html/impl/impl_Element.darttemplate

BUG=

Review URL: https://codereview.chromium.org//1230553003 .
2015-07-08 12:19:30 -07:00
Alan Knight 560f12bb21 appendHtml, when sanitizing, should create document fragment in the right context
BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org//1221043003 .
2015-07-08 10:16:37 -07:00
Jacob Richman ae72b6a701 Enhance dart:js interop in a backwards compatible manner.
BUG=

Review URL: https://codereview.chromium.org//1213873004.
2015-06-29 11:20:11 -07:00
Jacob Richman 7e9e4d89d3 Revert "Enhance dart:js interop in a backwards compatible manner."
This reverts commit ac32e37ab1300cb1ce1cd081f050ff1d04e54cbe.

BUG=

Review URL: https://codereview.chromium.org//1209093005.
2015-06-26 10:29:25 -07:00
Jacob Richman 3fdeb669ee Enhance dart:js interop in a backwards compatible manner. List objects can now be passed back and forth to Dartium without requiring jsify
BUG=
R=terry@google.com, vsm@google.com

Review URL: https://codereview.chromium.org//1194643002.
2015-06-26 10:06:45 -07:00
Alan Knight 1d5b657427 Make it easier and more efficient to use trusted HTML text
BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org//1154423009.
2015-06-22 09:41:01 -07:00
Seth Ladd ac4bc7c0e7 Merge pull request #23590 from dart-lang/sethladd-patch-3
one-line description for web audio
2015-06-04 16:23:38 -07:00
Seth Ladd 7a0e422980 Merge pull request #23592 from dart-lang/sethladd-patch-5
one-line description for SVG
2015-06-04 16:22:01 -07:00
Seth Ladd 2b6904a1c8 one-line description for SVG 2015-06-04 16:15:51 -07:00
Seth Ladd fab343f7f6 one-line description for web gl 2015-06-04 16:15:10 -07:00
Seth Ladd 5def75c172 one-line description for web audio 2015-06-04 16:13:48 -07:00
Alan Knight ee0a5db6a5 Make sanitizer tests handle IE11, where tagName can't be clobbered
BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org//1148893004
2015-05-27 12:56:09 -07:00
Alan Knight 39e5dba8c0 Fix typo in sanitizer
BUG=

Review URL: https://codereview.chromium.org//1151903004
2015-05-21 14:43:02 -07:00
Alan Knight efb738f633 Sanitization should reject elements that we can't examine (e.g. embed/object on FF)
BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org//1146753004
2015-05-21 13:54:50 -07:00
alanknight@google.com 1f20842389 Another try at appendHtml and insertAdjacentHtml should be consistently sanitized
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45818 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 17:59:23 +00:00
alanknight@google.com bfa61f62e0 "Reverting 45815"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45816 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 17:04:53 +00:00
alanknight@google.com 1c69173804 Test Dartium with appendHtml sanitizing. Will immediately revert.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45815 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 16:30:17 +00:00
alanknight@google.com 90a31f8fea "Reverting 45807"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45808 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 01:29:49 +00:00
alanknight@google.com 2faa58eb4c Testing for appendHtml and insertAdjacentHtml should be consistently sanitized
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45807 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 01:10:19 +00:00
alanknight@google.com e1c798b0fd "Reverting 45790"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45791 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-14 19:04:23 +00:00
alanknight@google.com 9453809937 appendHtml and insertAdjacentHtml should be consistently sanitized
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45790 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-14 18:04:17 +00:00
alanknight@google.com f777d314b7 Relax the deltaX/Y/Z types in WheelEvent constructor
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45741 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-12 18:04:58 +00:00
alanknight@google.com f0136ff1eb Clean up WheelEvent
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45740 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-12 16:34:01 +00:00
alanknight@google.com 4a1b567136 Pass Redirect status higher than 307 through to the user
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45739 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-12 16:25:56 +00:00
ricow@google.com e92f697236 Remove dart2dart support from testing scripts and status files
I will leave it to the dart2js people to remove the support from the dart2js tools (there is also a bunch of comments still in code, do a git grep)

R=kustermann@google.com, floitsch@google.com, kmillikin@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45588 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-07 11:29:55 +00:00
alanknight@google.com 25c6f198f5 "Reverting 45351"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45353 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 17:51:58 +00:00
alanknight@google.com 7431beaec2 appendHtml and insertAdjacentHtml should be consistently sanitized
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45351 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 17:16:01 +00:00
sra@google.com 00dde387ab Improve CssClassSet add / remove
Allow the 'contains' call to be removed if the result is unused.

    DivElement bars = new DivElement()
        ..classes.add('pipeline-bars');
-->
      t3 = document.createElement("div", null);
      list = t3.classList;
      list.contains("pipeline-bars");
      list.add("pipeline-bars");
-->
      t3 = document.createElement("div", null);
      t3.classList.add("pipeline-bars");

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45324 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-21 22:48:12 +00:00
sra@google.com 904c18efcc Enforce token syntax for CssClassSet arguments
Committed: https://code.google.com/p/dart/source/detail?r=45265

Reverted: https://code.google.com/p/dart/source/detail?r=45266

R=terry@google.com

Committed: https://code.google.com/p/dart/source/detail?r=45301

Committed: https://code.google.com/p/dart/source/detail?r=45303

Reverted: https://codereview.chromium.org/1096433006/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45307 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-21 01:32:49 +00:00
sra@google.com 736007062a Revert "Enforce token syntax for CssClassSet arguments"
TBR=terry@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45306 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-21 01:14:32 +00:00
sra@google.com a1850bb69a Enforce token syntax for CssClassSet arguments
Committed: https://code.google.com/p/dart/source/detail?r=45265

Reverted: https://code.google.com/p/dart/source/detail?r=45266

R=terry@google.com

Committed: https://code.google.com/p/dart/source/detail?r=45301

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45303 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-21 00:37:10 +00:00
sra@google.com ec484da9f6 Revert "Enforce token syntax for CssClassSet arguments"
Review URL: https://codereview.chromium.org//1098073003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45302 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-21 00:25:54 +00:00
sra@google.com 01d3e99f18 Enforce token syntax for CssClassSet arguments
Committed: https://code.google.com/p/dart/source/detail?r=45265

Reverted: https://code.google.com/p/dart/source/detail?r=45266

R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45301 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 23:44:11 +00:00
sra@google.com 1b2296c2be getElementsByName returns HtmlCollection on IE
Review URL: https://codereview.chromium.org//1093243002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45299 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 22:23:08 +00:00
sra@google.com 55372e4678 t # Enter a description of the change.
Revert "getElementsByName returns HtmlCollection on IE"

TBR=terry@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45298 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 21:48:30 +00:00
sra@google.com 44ea26b4fb getElementsByName returns HtmlCollection on IE
This CL will be committed and reverted to sniff out test status changes (some very small tests will start passing)

TBR=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45295 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-20 20:16:24 +00:00
sra@google.com efc7d09945 Enforce token syntax for CssClassSet arguments
Committed: https://code.google.com/p/dart/source/detail?r=45265

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45266 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-18 01:58:20 +00:00
sra@google.com 08676965c4 Enforce token syntax for CssClassSet arguments
Review URL: https://codereview.chromium.org//1077203004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45265 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-18 01:53:21 +00:00
alanknight@google.com 47a1aea03c Remove fallback attempt to set outerHtml when removing corrupt nodes, it won't work anyway
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45041 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 22:43:20 +00:00
alanknight@google.com b13d4f5742 Check for DOM clobbering attacks in sanitizing/node validation
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45028 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 19:47:34 +00:00
alanknight@google.com e1e22c00f2 Fix node validation for SVG foreignobject tag
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45019 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 17:24:03 +00:00
alanknight@google.com d795a89017 "Reverting 44988"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44990 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 00:56:10 +00:00
alanknight@google.com ad6bff9089 Fix issues with foreignobject sanitizing
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44988 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 00:06:27 +00:00
sra@google.com 0b1fb9cda5 Generate fast-path CssStyleDeclaration properties from browser info
We can tell all our suported browsers have style.backgroundColor so we can avoid the detection and vendor prefix logic.

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44973 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-08 16:18:36 +00:00
sra@google.com 9b2d7cae44 CssStyleDeclaration performance work
Cache browser prefix detection to avoid repeated camelCasing.
Remove IE9 compatibility code.

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44951 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-07 21:34:20 +00:00
alanknight@google.com 6d9f24b919 Make SVGValidator reject foreignobject tags, not just their contents. Fixes Firefox inconsistency
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44949 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-07 20:59:02 +00:00
alanknight@google.com a2d5aef265 Update node_validator_test for IE11
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44941 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-07 17:56:33 +00:00
sra@google.com f8fb9710ee Revert trial commit of "CssStyleDeclaration performance work"
If all goes well, will be recommited after code review.

TBR=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44932 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-07 01:52:05 +00:00
sra@google.com 440f677b46 CssStyleDeclaration performance work
Cache browser prefix detection to avoid repeated camelCasing.
Remove IE9 compatibility code.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44931 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-07 01:22:54 +00:00
sra@google.com 2956fd8739 - Fork implementation for Dartium and dart2js. Dartium is working fine.
- dart2js version uses Element.classList (DomTokenList) for 4x speedup.

- Fix bug where document.querySelectorAll(...).classes.add('x') fails for SVG elements.

- Add test for above.

For later:
- Identify a polyfill for IE SVGElements (they don't have classList)
- Simplify CssClassSet further to exploit uniform availability of classList. This should give another performance boost by enabling inlining.

R=alanknight@google.com

Committed: https://code.google.com/p/dart/source/detail?r=44888

Committed: https://code.google.com/p/dart/source/detail?r=44897

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44898 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-03 23:00:28 +00:00
sra@google.com 3080315805 - Fork implementation for Dartium and dart2js. Dartium is working fine.
- dart2js version uses Element.classList (DomTokenList) for 4x speedup.

- Fix bug where document.querySelectorAll(...).classes.add('x') fails for SVG elements.

- Add test for above.

For later:
- Identify a polyfill for IE SVGElements (they don't have classList)
- Simplify CssClassSet further to exploit uniform availability of classList. This should give another performance boost by enabling inlining.

R=alanknight@google.com

Committed: https://code.google.com/p/dart/source/detail?r=44888

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44897 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-03 22:38:56 +00:00
sra@google.com ade70628de - Fork implementation for Dartium and dart2js. Dartium is working fine.
- dart2js version uses Element.classList (DomTokenList) for 4x speedup.

- Fix bug where document.querySelectorAll(...).classes.add('x') fails for SVG elements.

- Add test for above.

For later:
- Identify a polyfill for IE SVGElements (they don't have classList)
- Simplify CssClassSet further to exploit uniform availability of classList. This should give another performance boost by enabling inlining.

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44888 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-03 20:48:10 +00:00
sra@google.com 2e42929db9 Don't cache SVG CssClassSet
Separate dart apps loaded into the same page will fight.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44878 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-03 02:31:42 +00:00
alanknight@google.com 09249173ad Add alternate name for RtcIceCandidateEvent
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44713 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-26 17:34:49 +00:00
alanknight@google.com 5397482fcc Make dartj2s do type conversions on constructor arguments
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44688 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-25 17:39:49 +00:00
alanknight@google.com b44058a0d2 Make Element.animate work in dart2js Chrome
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44642 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-23 18:26:06 +00:00
terry@google.com 580cb00cbb Added more diag info
Reviewers=vsm@google.com,alanknight@google.com

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44562 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-18 19:22:53 +00:00
alanknight@google.com 46a24513a3 Add MediaSource.supported, annotations for supported browsers, and a minimal test
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44472 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-13 17:31:42 +00:00
alanknight@google.com 5d2f7f8ae8 Fix notification
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44471 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-13 17:21:31 +00:00
terry@google.com 5c84e1b473 Added --examine to produce analysis of IDL files
Reviewers=vsm@google.com,alan@google.com

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44467 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-13 15:53:55 +00:00
sra@google.com 8c7e1a75d1 Revert "Element.style is not null"
Need to investigate:
FAILED: dart2js-chrome release_ia32 co19/LayoutTests/fast/xsl/default-html_t01
Expected: RuntimeError
Actual: Pass

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44222 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-04 05:24:57 +00:00
sra@google.com c363abff4a Element.style is not null
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44220 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-04 03:54:22 +00:00
alanknight@google.com 0babe95cba Fix usage of renamed parameter in EventSource
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44146 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-02 20:15:27 +00:00
alanknight@google.com 1fd8fe6e9c Change EventSource parameter from title to url, to match idl
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44138 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-02 18:44:56 +00:00
terry@google.com 68c6b252e4 Fixed tests for DOMPoint support for dart2js.
TBR=asiva@google.com,vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44115 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-01 18:01:53 +00:00
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
alanknight@google.com 4e08f82170 Re-enable printing and timers in Dartium isolates (again)
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44066 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-26 18:26:17 +00:00
alanknight@google.com b097d978a7 "Reverting 44050"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44053 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-26 16:04:55 +00:00
alanknight@google.com ecfdd56df7 Re-enable printing and timers in Dartium isolates
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44050 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-26 15:55:29 +00:00
vsm@google.com f5ee0ccdf3 Do not allow abstract classes to be registered as custom elements
BUG=20813
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44007 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-24 22:57:59 +00:00
sra@google.com 904433bd7c Revert "Annotate dart:html constructor expressions with precise non-nullable types."
Need to fix some html/element_types_test cases.

TBR=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43579 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-07 00:35:32 +00:00
sra@google.com f74e57786d Annotate dart:html constructor expressions with precise non-nullable types.
This addresses issue http://dartbug.com/22264

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43578 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-06 23:24:19 +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
alanknight@google.com 604106c107 Add webkitAudioPannerNode as an optional name
BUG=
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43149 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-26 20:27:23 +00:00
jacobr@google.com 721034fa84 BUG=
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43029 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-20 23:04:27 +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
vsm@google.com b4cfeafc5e Revert "Workaround for canPlayType in Dartium"
This keeps the test.

R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42089 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-03 19:25:35 +00:00
vsm@google.com e04af71146 Workaround for canPlayType in Dartium
BUG=http://dartbug.com/21702
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41967 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-25 20:12:05 +00:00
terry@google.com c3229b7ee1 Fixed pointerlock* getters
Fixed onPointerLockChange, onPointerLockError and pointerLockElement not exposed after webkit prefix wa removed.

Review=vsm@google.com
BUG=21376
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41916 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-21 20:12:17 +00:00
lrn@google.com 42dac4c7b4 Add some ArgumentError and RangeError constructors that capture more information.
Switch some uses of RangeError.range to RangeError.index.
Fix bug in Queue where elementAt allowed `length` as input.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41653 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 07:55:47 +00:00
johnniwinther@google.com 09fbe78e71 Move dart2js from sdk/lib/_internal/compiler to pkg/compiler
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41514 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 08:51:01 +00:00
johnniwinther@google.com 8637cfd322 Revert "Move dart2js from sdk/lib/_internal/compiler to pkg/compiler"
This reverts commit r41512.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41513 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 08:15:26 +00:00
johnniwinther@google.com 2b336e17f0 Move dart2js from sdk/lib/_internal/compiler to pkg/compiler
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41512 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 07:09:04 +00:00
leafp@google.com be08f872c5 Redirect blink calls through instance
Use a singleton instance object for dispatching calls from dart:html to dart:blink to make code more resilient against changes in web idl.

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41379 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-28 23:11:51 +00:00
leafp@google.com e7dfea4301 Stop generating dart:blink from dart scripts
This removes the dart:blink generation code from the dart html scripts.  The _blink_dartium template is removed, and the blink_nativeDOMImplementation html_nativeDOMImplementation split is eliminated, with the code for the former in the dartium generated code, and the latter moved back to native_DOMImplementation.dart.

BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41346 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-27 23:59:26 +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 302af90f0f Fix History Cross Frame resolver string
TBR=vsm@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41239 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-21 21:25:12 +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
rmacnak@google.com de9ba250c5 Reapply "Stop suppressing generation of bindings with Promise. Add some tests for DOM APIs that answer promises."
Fix static warning in storage_quota_test.

Fix status of fontface_loaded_test.

R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41210 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-20 18:27:03 +00:00
vsm@google.com 23b5353b0e Suppress new Request type in dart:html
This is conflicting with the Request type in IDB.  Hiding it for now.  We may want to expose with a different name or factor out into a service worker library.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41208 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-20 17:57:14 +00:00
rmacnak@google.com f310862906 Revert "Stop suppressing generation of bindings with Promise. Add some tests for DOM APIs that answer promises."
TBR=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41138 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-16 02:54:14 +00:00
rmacnak@google.com 5178314123 Stop suppressing generation of bindings with Promise. Add some tests for DOM APIs that answer promises.
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41136 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-16 01:17:45 +00:00
vsm@google.com 8a39ccb8df Fix for web_gl statics
This was fixed on trunk / 1.7 separately.  Here's the same for bleeding_edge:

BUG=https://code.google.com/p/dart/issues/detail?id=21173
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41045 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-10 16:40:01 +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
terry@google.com 905ee314e0 Starting cleanup
Reviewers=vsm@google.com,leafp@google.com

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40784 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-29 20:11:59 +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
terry@google.com 5e96fad938 Fixing treeshaking problem with 37 roll
Reviewers=vsm@google.com, sra@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40665 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-25 02:40:36 +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
terry@google.com 42a229cbb7 Fixed removing of pure interface (implements) operations
Reviewers:vsm@google.com,leafp@google.com

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40227 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-12 23:50:35 +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
terry@google.com 9fa7c2cff9 Suppport DartCustom for proper native callback
Reviews:vsm,leafp

R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40096 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-10 16:22:08 +00:00
terry@google.com ddf659197c Reviewers=vsm,leafp
Fixed emitting problems with default/optional.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40054 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 20:59:03 +00:00
terry@google.com ecceb75d35 Begin hookup of Blink IDL parser for dart:* libraries.
BUG=
R=vsm@google.com

Committed: https://code.google.com/p/dart/source/detail?r=39948

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40026 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 13:18:24 +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
terry@google.com ac72bce2f1 "Reverting 39948"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39999 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-08 20:58:19 +00:00
terry@google.com cf0c6a3565 Begin hookup of Blink IDL parser for dart:* libraries.
BUG=
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39948 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-08 02:33:50 +00:00
vsm@google.com c67d8ea77f Update idlsync to pull in bindings python scripts
R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39830 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-03 20:24:54 +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
vsm@google.com d7919adbb9 A type for unsupported browser objects
This should fix the crash in bug 20592.  We currently crash if we do not find the right type in the type table.  Siva found it on AnimationTimeline, but there may be others now and going forward.

(Note, objects of this type could actually be used in dart:_blink since they have the right c++ pointer and type id.)

This is the Blink side:
https://chromiumcodereview.appspot.com/490033005/

BUG=dartbug.com/20592
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39577 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 07:47:32 +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
rmacnak@google.com 3ab2f9d392 Add parseJson to DartUtilities and mark xhr_test/json as passing.
BUG=http://dartbug.com/13069
R=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39158 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-12 18:44:00 +00:00
efortuna@google.com 1c90159fe2 Document DOMApplicationCache as fix for https://code.google.com/p/dart/issues/detail?id=3688.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39096 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-11 17:56:53 +00:00
efortuna@google.com 7cbe70fb2c Deprecate MouseEvent.elementTo and elementFrom since they have the same
functionality as relatedTarget.

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39050 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-08 21:07:24 +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
leafp@google.com 445e8fda3d Eliminate the old non blink code paths from idl generation
During the transition to the dart:html dart:blink split, we needed to support generating the old style and the new style.  This CL eliminates the code paths for the old style generation now that they're no longer needed.

BUG=
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39005 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 20:04:18 +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
leafp@google.com a20d4b09d2 Remove dart:blink dependency on dart:html. This CL moves all of the
overload resolution (dependent on dart specific types) over to the
dart:html side, along with the type resolution maps.  This is a first
step to generating dart:blink from the dartium idl.  There is a paired
blink CL which switches the type map lookup from dart:blink to dart:html.

BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38993 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-07 16:12:50 +00:00
vsm@google.com 3aff966aa6 Fix broken FileReader API in _blink_dartium
TBR=leafp@google.com,terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38926 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-06 11:27:47 +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
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