Manish Goregaokar
ff08de8ad1
stylo: Support stroke-dasharray and stroke-dashoffset
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:43:36 -08:00
Simon Sapin
c3cad2d6c7
Update cssparser to 0.9
2017-02-15 12:42:14 +01:00
Simon Sapin
9ec8418d8c
Rename CommaSeparated to OneOrMoreCommaSeparated, reflecting its behavior.
2017-02-03 13:15:53 +01:00
Simon Sapin
4701850f37
Add unicode-range descriptor to @font-face
2017-02-02 20:28:21 +01:00
Manish Goregaokar
b4a83b6cec
CSSOM bits for @supports: CSSConditionRule and CSSSupportsRule, with conditionText attribute
2017-01-07 23:17:52 -08:00
Emilio Cobos Álvarez
e8d947430a
style: Document and clean up the parser module.
2017-01-02 12:57:52 +01:00
Ravi Shankar
dee1a65a69
Use the ParserContext along with Parser in the parse function
2016-11-27 08:49:20 +05:30
Simon Sapin
82b13d50e3
Update to selectors 0.15
2016-11-22 14:50:21 +01:00
Simon Sapin
b203ab2419
Rename selector_impl.rs to selector_parser.rs
...
This makes it consistent with an upcoming update of the selectors crate.
2016-11-20 15:30:37 +01:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Emilio Cobos Álvarez
5f2e7af864
style: Centralize specified url value handling, and refcount urls.
2016-11-10 13:15:21 +01:00
Manish Goregaokar
2bde9462b1
Add safer bindings for RefPtr
2016-10-14 00:44:06 +05:30
Manish Goregaokar
254900bd1a
Add ShapeSource to basic-shape values
2016-08-18 11:38:33 +05:30
Simon Sapin
fdb2071b2d
Update to selectors 0.8.2
2016-08-09 18:18:38 +02:00
Ms2ger
79e0d18a1d
Add some documentation to the style crate.
2016-06-27 17:33:14 +02:00
Cameron McCormack
6d67aa8a01
Pass Gecko sheet base/referrer/principal from Servo_StylesheetFromUTF8Bytes through ParserContext.
2016-05-24 12:12:17 +10:00
Cameron McCormack
bb85f5faf0
Add an extra data field to ParserContext.
...
This will be used for passing Gecko-specific information through
the CSS parser in stylo.
2016-05-24 12:12:10 +10:00
Simon Sapin
6889f37d9e
Remove the url! plugin.
...
In rust-url 1.0 the `Url` struct is going to have private fields, and there
is no way to to create an aribitrary one without going through the parser.
The plugin never had a clear demonstrated performance benefit,
it was made mostly because it was possible and relatively easy at the time.
2016-04-14 15:35:28 +02:00
Bobby Holley
384cdfcfff
Hoist ParseErrorReporter into style and remove the dependency on msg.
...
The pipeline id stuff is currently unused. If someone needs it, they can add
an additional trait bound on their css error reporter to get the pipeline id.
2016-01-11 18:01:48 -08:00
Mathieu Agopian
11234f5370
Use Url.join instead of UrlParser.base_url(...).parse ( #9002 )
2015-12-18 17:02:41 +01:00
GauriGNaik
fc81276c8e
Add pipeline information to CSS error reporting.
2015-12-14 11:18:30 -05:00
Simon Sapin
b19cc7e44c
Fix warnings
...
Fixing unused attributes warnings required updating serde_macros
which required updating to rustc 1.6.0-nightly (a2866e387 2015-11-30)
which required updating some other dependencies.
2015-12-03 17:05:26 +01:00
GauriGNaik
afdc60fa57
Make log_css_error in parser.rs take a &ParserContext argument and call this method
2015-12-02 16:03:04 -05:00
GauriGNaik
996e9e06b2
Defined new trait ParseErrorReporter and added error_reporter member to ParserContext
2015-11-25 18:28:30 -05:00
Corey Farwell
f34da4120d
Implement 'url!(..)' macro
...
https://github.com/servo/rust-url/issues/136
https://github.com/servo/rust-url/pull/137
2015-11-21 08:15:56 -05:00
Brandon Fairchild
de3547e401
Fix reported test-tidy errors for unmerged import blocks
...
This merges import blocks that were reported by tidy as unmerged.
2015-09-19 12:50:14 -04:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Eduard Burtescu
00e8e5f77d
Use the correct log crate and setup env_logger in main.
2015-06-06 23:20:40 +03:00
James Gilbertson
3b14c07051
Implement parsing of an @viewport rule
2015-05-05 21:01:31 -06:00
Patrick Walton
750bbed2cb
gfx: Perform more aggressive caching in
...
`FontContext::get_layout_font_group_for_style()`.
There are several optimizations here:
* We make font families atoms, to allow for quicker comparisons.
* We precalculate an FNV hash of the relevant fields of the font style
structure.
* When obtaining a platform font group, we first check pointer equality
for the font style. If there's no match, we go to the FNV hash. Only
if both caches miss do we construct and cache a font group. Note that
individual fonts are *also* cached; thus there are two layers of
caching here.
15% improvement in total layout thread time for Facebook Timeline.
2015-04-01 08:58:16 -07:00
Simon Sapin
2a50755c8a
Move selector matching to an external library, for use outside Servo.
2015-02-23 16:29:34 +01:00
Simon Sapin
966af0030a
Upgrade to rust-cssparser master.
...
* Use associated types
* Avoid mutation to gather parsing results.
2015-01-30 15:07:29 +01:00
Simon Sapin
d034a6c6bc
Port to the new cssparser.
...
https://github.com/servo/rust-cssparser/pull/68
2015-01-21 22:23:46 +01:00