Emilio Cobos Álvarez
b4de69e3eb
style: Avoid cloning all over the error reporter.
2017-03-14 00:49:18 +01:00
Matt Brubeck
16e318d055
Add support for non-standard -moz color keyword values.
...
Closes #15928
2017-03-14 00:49:08 +01:00
Abhishek Kumar
c7ed931276
text-overflow accepts only valid values for the second part of value
...
Fixes: https://github.com/servo/servo/issues/15491
2017-03-12 03:58:51 +05:30
projektir
b4c50de31e
Don't serialize initial text-decoration-style #15790
2017-03-09 00:33:17 -05:00
Xidorn Quan
2e07ce7e84
Add get_initial_specified_value to many longhands
2017-02-28 15:20:34 +11:00
Simon Sapin
86562992da
Cascade: skip duplicated properties before rather than after a virtual call.
2017-02-26 19:02:53 +01:00
Simon Sapin
0f2d000a23
Borrow input to match_ignore_ascii_case!
...
In cssparser version 0.11, this macro will stop implicitly borrowing its
own input.
2017-02-26 10:40:09 +01:00
Manish Goregaokar
ade09844b7
stylo: Support quirksmode text-decoration color override
2017-02-18 20:37:05 -08:00
deror1869107
2dec238d1c
Use bitflags for multikeyword properties
2017-02-19 01:22:56 +08:00
Emilio Cobos Álvarez
0c102e2350
style: Unbox a bunch of color properties.
...
This builds on https://github.com/servo/rust-cssparser/pull/118 .
2017-02-14 20:18:31 +01:00
Nazım Can Altınova
78afe2b8d1
Box larger specified values to avoid memmove impact
2017-02-09 11:10:08 +01:00
Nazım Can Altınova
abc40f61c0
Replace NoViewportPercentage with a macro
2017-02-09 10:41:16 +01:00
Alberto Leal
cf59be7f44
Fix text-overflow serialization.
...
Fixes https://github.com/servo/servo/issues/15208
2017-01-25 13:16:58 -05:00
Xidorn Quan
b0f5f20290
Serialize text-decoration-line to none if nothing specified
2017-01-25 17:51:04 +11:00
Xidorn Quan
66af7e4d3a
Store blink value for text-decoration-line
...
The spec does say user agents may not blink, but it doesn't say this
value can be ignored during parsing.
2017-01-16 16:23:11 +11:00
Manish Goregaokar
450a5d1ae0
Add spec links for text properties
2017-01-03 14:03:35 -08:00
Ravi Shankar
dee1a65a69
Use the ParserContext along with Parser in the parse function
2016-11-27 08:49:20 +05:30
Nikhil Shagrithaya
4b2737606d
implemented string-valued text-overflow
2016-11-10 00:00:21 +05:30
Ravi Shankar
6061985898
Prefer Servo-specific ToCss for all types
2016-11-07 09:14:22 +05:30
Ravi Shankar
b446f0e28a
Auto-generate color glue
2016-10-22 14:27:01 +05:30
Manish Goregaokar
0c793d7277
Implement text-overflow using nsstring bindings
...
MozReview-Commit-ID: BxoFVigIOyV
2016-10-12 18:12:53 +05:30
Manish Goregaokar
e1e512f86b
Run style unit tests in testing mode, disable some properties in testing mode
2016-09-28 10:00:36 +02:00
Simon Sapin
4b7060554b
Rename ComputedValuesStruct to ComputedValues.
...
Doing this in a separate commit avoids mixups
with the ComputedValues trait that the previous commit removed.
2016-07-20 08:42:45 +02:00
Simon Sapin
789807b7b0
Remove the ComputedValue traits and style_struct_traits
2016-07-20 08:42:40 +02:00
Shing Lyu
f754cacbd5
Only restyle viewport-relative nodes on viewport size change
2016-07-18 11:01:42 +08:00
Emilio Cobos Álvarez
faed3df594
style: Take down the global animatable props list and use a kwarg instead
2016-06-28 15:28:00 +00:00
Simon Sapin
00b6210519
Make the style crate almost build on stable Rust.
...
`discriminant_value` will need to be replaced with something else later.
2016-06-22 15:44:13 +02:00
Cameron McCormack
0580e1854e
Support text-decoration-line and the text-decoration shorthand in geckolib.
2016-05-26 11:06:37 +10:00
Cameron McCormack
53a9defa9f
Don't consume invalid idents when parsing text-decoration.
2016-05-26 11:06:30 +10:00
Cameron McCormack
61fd5e79f7
Make text-decoration-style initial value 'solid'.
2016-05-25 18:25:28 +10:00
Cameron McCormack
330c47f78e
Support {flood,lighting,stop,text-decoration}-color in geckolib.
2016-05-04 09:44:12 +10:00
Cameron McCormack
88f51af3f8
Add Servo_GetStyleFoo functions to get style structs from GeckoComputedValues.
...
While we're here we also:
* remove any code conditional on style_struct.gecko_ffi_name, since all
style structs now do have a corresponding Geckos struct
* add new UIReset and XUL style structs, so that all Gecko structs are
now present (apart from Variables, which is special)
2016-04-27 17:13:26 +10:00
Per Lundberg
4e8831457a
Moved the rest of the longhand structs to separate files.
...
Sorry for the bulk size of this; I know already it's not going to be a fun thing to review. Nevertheless, it should be done so we finalize the split of this huge file into smaller, more maintable parts.
The content of stuff being moved to separate files is unchanged. Only some minor formatting changes have been made and similar, but nothing of particular interest. IMHO it should be safe to merge if all the tests are fine.
2016-04-25 21:36:58 +03:00