Commit Graph

20 Commits

Author SHA1 Message Date
nweiz@google.com 08bcc46854 Improve the speed and memory efficiency of csslib parsing.
In particular, this avoids calling [FileSpan.start] and [FileSpan.end]
where possible, since they lazily instantiate objects.

R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42080 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-03 00:21:09 +00:00
srawlins@google.com fe9702df79 I was looking at the typo in 19178, and then the TODO in hexToInt. int.parse gained its radix parameter in https://code.google.com/p/dart/issues/detail?id=2624 around Dart SDK v1.1, so I bumped it in the pubspec.
Rewrite csslib's hexToInt

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41079 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-13 18:00:33 +00:00
nweiz@google.com 165ecfb408 Fix another csslib IE10 test failure.
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38763 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-30 23:42:03 +00:00
nweiz@google.com e572707842 Fix csslib test failures on IE10.
This will release csslib 0.11.0+1.

BUG=20274
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38753 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-30 21:30:35 +00:00
nweiz@google.com 466faa581f Use source_span rather than source_maps in csslib.
This will release csslib 0.11.0 and html5lib 0.11.0+2.

BUG=19930
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38716 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-30 00:13:19 +00:00
rnystrom@google.com ff23b25a81 Add .wasParsed() to ArgResults.
BUG=https://code.google.com/p/dart/issues/detail?id=16227
R=alanknight@google.com, nweiz@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38348 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-17 21:35:45 +00:00
nweiz@google.com 9f3e165c1e Make source map location information more readable.
This changes "file:1:2" to "line 1, column 2 of file" and ":1:2" to
"line 1, column 2" in [SourceFile.getLocationMessage]. The more
machine-readable colon-separated format doesn't make sense for a
message intended for humans.

Since [Location.formatString] seems more likely to be consumed by
machines, its format was left as-is.

This also prepares version 0.9.1 for release.

This was previously submitted as r36603. That caused buildbot errors and was
rolled back by r36615. This CL fixes the test errors in r36603.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36717 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 23:01:24 +00:00
sigmund@google.com e6de3def62 Update versions before releasing.
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36590 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 22:01:17 +00:00
sigmund@google.com 2507e2283a Fix status in bots.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36083 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-12 22:38:19 +00:00
jmesserly@google.com 06f8f2d16b [html5lib] implement querySelector/querySelectorAll
BUG= https://code.google.com/p/dart/issues/detail?id=18508

* tests from https://github.com/w3c/web-platform-tests/tree/master/selectors-api, kept as close to original as I could.

* src/query_selector.dart is most interesting file. It implements enough of selectors to pass the basic web platform tests. Ironically, it was the easiest part of this CL...

* many fixes to csslib. Almost all of the selector tests were skipped (https://github.com/dart-lang/csslib-test-suite/blob/master/suite/selectors3/selectors3_test.dart) and there was a lot of things broken: unicode, escaping, incorrectly treating ident-tokens as units, probably more that I am forgetting :). Fixed as much as I could without doing major surgery.

* a bunch of fixes to the htm5lib DOM to bring it closer in alignment with dom.spec.whatwg.org and dart:html. The driving force was to minimize the changes needed on the W3C tests.

Note: haven't updated things that depend on html5lib like Polymer yet.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35941 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 21:41:05 +00:00
rnystrom@google.com 5dd0a26730 Move allowTrailingOptions into ArgParser.
R=brianwilkerson@google.com, jmesserly@google.com, nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35837 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-06 23:25:59 +00:00
kevmoo@google.com ecf1fa6e1d pkg/csslib: fixed args dependency, drastically simplified pkg.status
Prepped v0.9.2+1

R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34516 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-28 19:28:33 +00:00
kevmoo@google.com 7ebebc7d74 use proper notation for true, false, and null in doc comments
BUG= https://code.google.com/p/dart/issues/detail?id=16193
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31947 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-19 19:24:06 +00:00
terry@google.com 6d41224b82 Fixed single quote escaping
BUG=
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31578 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 21:32:07 +00:00
jmesserly@google.com 66491b1f5c update pubspecs for pkg uploading
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31053 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-11 01:41:02 +00:00
nweiz@google.com 113bd79bc6 Make pkg/path 1.0.0 and upgrade dependencies appropriately.
All existing packages that use pkg/path (other than pkg/stack_trace,
which has already been updated) are compatible with both the pre-1.0
and post-1.0 path API, so I've marked their version constraints as
">=0.9.0 <2.0.0". I've also incremented their patch versions and I
intend to release new versions as soon as this CL lands.

R=alanknight@google.com, efortuna@google.com, jmesserly@google.com, rnystrom@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31005 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 00:24:01 +00:00
dgrove@google.com 18ca7d0036 Re-land r29957 (add versions and constraints for packages and samples), with
SDK constraints bumped from 1.0.0 to 0.8.10+6 .

R=ricow@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29986 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 18:28:22 +00:00
ajohnsen@google.com 61f6c51990 Revert "add versions and constraints for packages and samples"
This is currently blocking us from testing samples.

BUG=
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29960 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 09:09:18 +00:00
jmesserly@google.com 02638c5760 add versions and constraints for packages and samples
- all packages at 0.9.0, except "analyzer" which had a version already
- dependencies at ">=0.9.0 <0.10.0" except analyzer is ">=0.10.0 <0.11.0"
- sdk constraint ">=1.0.0 <2.0.0"

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29957 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 03:27:58 +00:00
jmesserly@google.com 9e5b240923 move csslib into dart svn
deleted files that duplicate those in the Dart repository (LICENSE, pubspec.yaml, codereview.settings, .gitignore)

Otherwise, just changed pkg.status and pubspec

R=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26155 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 21:11:30 +00:00