Commit Graph

107 Commits

Author SHA1 Message Date
amouravski@google.com c1eb44e3d0 Fix for getContextAttributes which wraps bare dictionary into a Dart type.
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29221 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 22:32:46 +00:00
efortuna@google.com 7e685302b9 Add back unseparated out version of method overloads in dart:html.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29135 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 00:07:45 +00:00
efortuna@google.com 951dca71cb Deprecate query and queryAll, also add back querySelector and querySelectorAll.
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28699 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 00:44:47 +00:00
efortuna@google.com c40372622f Update docs so that responseText returns empty String on failure.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28625 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 01:00:47 +00:00
blois@google.com b73395196c Fixing docs generation
From dartium revision, inlined createElement, so it's no longer getting this doc comment.

Also, this was recently made public as there are valid use cases for it, so the comment was misleading.

TBR
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27923 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 23:29:15 +00:00
efortuna@google.com f45e68f435 Adjusted HttpRequest documentation to discourage using open and send in simple cases.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27901 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 18:20:25 +00:00
whesse@google.com c41a588dc0 Disable 20s unittest timeout for docs_test and dartdoc_test.
Thes tests have started occationally timing out on the pub_linux buildbot.

BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27658 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-19 13:25:36 +00:00
blois@google.com 5f2320dea7 Making Document, Element and Window documentable via @DocsEditable
TBR
BUG=13291

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27503 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-13 21:23:07 +00:00
sigmund@google.com 6b27fc46fb Fix docs_test. I just learned that when updating docs under html we also need to
run:
   python tools/dom/dom.py docs

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27404 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 21:07:43 +00:00
blois@google.com b14e379d94 Cleaning up a bunch of DOM generation tables
Many unused keys and missing events, etc.

BUG=
R=efortuna@google.com, jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27137 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-04 18:30:54 +00:00
blois@google.com 0bea9648e1 Fixing console.
BUG=
R=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26955 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 22:32:32 +00:00
efortuna@google.com 90873051ad Making almost all dom_ methods private. Exceptions will be addressed in a later CL.
Current ones that still remain to be made private include createElement(NS),
createRange, all the Element properties, and childNodes.

BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26605 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-23 18:25:40 +00:00
efortuna@google.com b1045e115b More clean up for HttpRequest docs.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26091 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 22:58:27 +00:00
blois@google.com aea78f5a91 Fixing invalid code in docs for HttpRequest constructor.
BUG=11844
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25798 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-05 20:50:57 +00:00
kustermann@google.com cb18d8ba87 Removed compiler/ directory from repository
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25728 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-02 08:31:15 +00:00
rnystrom@google.com b39c2a5b60 Fix paths in DOM doc test.
BUG=
R=dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25428 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-24 17:37:42 +00:00
dgrove@google.com bdcb770310 Switch docs to path package (away from dart:io Path).
Review URL: https://codereview.chromium.org//19705015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25322 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-22 23:57:27 +00:00
efortuna@google.com 69a4edc59a Update HttpRequest.request documentation to mention ByteBuffer instead of ArrayBuffer.
BUG=https://code.google.com/p/dart/issues/detail?id=10299
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25240 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 20:16:33 +00:00
efortuna@google.com 2a070f0c72 Add point to Window class and Window polyfills of screen.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24987 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-13 00:40:26 +00:00
efortuna@google.com f160335229 Updated with ArrayBuffer => ByteBuffer rename in HttpRequest docs.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24985 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-13 00:08:53 +00:00
efortuna@google.com cc9f39dfba Add back appendBlob and send variants in WebSocket.
BUG=
R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24854 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-09 17:26:51 +00:00
amouravski@google.com c0a39d0412 Make html metadata follow the spec.
Per https://code.google.com/p/dart/issues/detail?id=11568

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24638 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-01 18:34:30 +00:00
amouravski@google.com a3f57b00ab Fixed old docs for WebSocket.
Bug: https://code.google.com/p/dart/issues/detail?id=10507

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24451 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:17:09 +00:00
amouravski@google.com 304a2c477b Fix typo in documentation of CanvasElement.toDataUrl.
Bug: https://code.google.com/p/dart/issues/detail?id=10994

R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24449 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 06:12:21 +00:00
blois@google.com a1f522165f Modernizing HttpRequest documentation.
Also fixing docs so they get applied to Dartium.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23303 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 19:33:06 +00:00
jmesserly@google.com 9920deeb51 add doc for Node.append
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22657 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 23:32:29 +00:00
johnniwinther@google.com b92b6aa724 Pub test updated.
Review URL: https://codereview.chromium.org//14901002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22351 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 05:46:24 +00:00
johnniwinther@google.com 5a8e457362 Make source mirror ObjectMirror.getField synchronous
Review URL: https://codereview.chromium.org//14333011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22002 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 07:04:40 +00:00
johnniwinther@google.com 797c6aeeb9 Remove dartdoc specific methods from dart2js_mirror.
BUG=

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21924 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 07:31:39 +00:00
amouravski@google.com d6d7b02ff7 Fixed broken link in documentation.
BUG 9489 (dartbug.com/9489)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21842 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 21:39:07 +00:00
floitsch@google.com 466d6670c1 Refactor Future constructors.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
floitsch@google.com 07b02a845c Remove String.slice. Too much overlap with String.substring.
Review URL: https://codereview.chromium.org//13874008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21442 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 12:20:07 +00:00
blois@google.com 16ba7bbc02 Documenting misleading DataTransfer API.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21216 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 16:22:14 +00:00
blois@google.com 3f82bebebe Fixing dartdoc generation.
Went out of date with my last CL.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21013 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 00:24:43 +00:00
efortuna@google.com ae82b45193 Rename context2d to context2D.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21006 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 23:16:48 +00:00
amouravski@google.com 40f57a819d Put in a teardown for the docs test, fixed dom.py to actually run it correctly.
This also adds a PRESUBMIT.py, which will run on a commit and warn the
committer if the docs need to be regenerated. This only runs if
the html_dart2js, et. al. files have been modified.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20820 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 21:14:09 +00:00
nweiz@google.com c590e8ae0c Switch pkg packages, pub, and dartdoc to use package: imports.
This also changes the SDK layout by replacing the "pkg" directory, which
contained the full source of all the packages needed by pub and dartdoc, with a
"packages" directory that contains only their lib directories. This directory is
used as the package root for pub and dartdoc when run from the SDK.

BUG=6745

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20640 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 20:27:28 +00:00
amouravski@google.com 4f78a435db Added tests for docs.dart
Review URL: https://codereview.chromium.org//13000005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20630 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 18:25:23 +00:00
amouravski@google.com ac5ad0afce Fix docs.dart, which has been sad and neglected.
Review URL: https://codereview.chromium.org//13116021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20587 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 21:47:06 +00:00
blois@google.com 30764d4a5b Was benchmarking the differences between document.query and using the native DOM methods when available, and document.query is significantly worse in almost all scenarios.
Our current document.query can be optimized about 2x by caching the RegExps being used, but this is still not enough to get close to what they should be.

We special-cased a couple of queries to optimize those, but it appears that the browsers are optimizing those now as well and our optimizations are getting in the way, overall.

From my tests so far, this CL brings a speed improvement to document.query for all scenarios except for the name test:
document.queryAll('[name="test"]') which takes a fairly significant performance hit (runs close to 1/2 speed with this CL). This is mitigated by exposing getElementsByName which if used brings a 2x performance gain over queryAll.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19831 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 00:39:38 +00:00
amouravski@google.com 5d07be1a6c Added Web SQL to the docs.json generation.
Review URL: https://codereview.chromium.org//12334086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19062 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 17:54:28 +00:00
amouravski@google.com 4e66d9d8fe Remove old json files that aren't doing anything.
Review URL: https://codereview.chromium.org//12310124

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19029 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-26 03:28:00 +00:00
sethladd@google.com ab17470bcc adding docs to HRElement, testing HTML doc process
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18422 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 00:36:36 +00:00
amouravski@google.com f05f2c77cc 'Moved all documentation from old .dartdoc files.'
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18111 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 03:04:59 +00:00
amouravski@google.com 0f4a3a7c44 Finished porting code from the old html-json docs.
Review URL: https://codereview.chromium.org//12186024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18109 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 02:00:13 +00:00
amouravski@google.com 93a1b6edae Added Area Element class doc.
Review URL: https://codereview.chromium.org//12163006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18052 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 16:01:30 +00:00
amouravski@google.com ad62fa5ad3 A bunch more documentation.
Review URL: https://codereview.chromium.org//12156002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17987 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 17:53:16 +00:00
amouravski@google.com fcccafdd33 Add even more documentation back to HTML.
Review URL: https://codereview.chromium.org//12093101

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17955 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 23:30:22 +00:00
amouravski@google.com 956d645a0f Can now correctly add documentation to constructors.
Review URL: https://codereview.chromium.org//12087112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17954 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 23:11:31 +00:00
blois@google.com de9fbf0e90 Renaming dart:html library from 'html' to 'dart.html'
This should be invisible to end users, but basically brings dart:html in-line with the core libraries.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17929 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 17:25:55 +00:00