Emilio Cobos Álvarez
32c6d5b7c6
style: Refactor vector types.
...
This fixes clamping of mask-size and moves it out of mako while at it.
Bug: 1462829
Reviewed-by: hiro,xidorn
MozReview-Commit-ID: 9hiTe63odna
2018-05-28 15:37:28 +02:00
Xidorn Quan
0f19c25706
style: Add CAN_ANIMATE_ON_COMPOSITOR in Servo side and propagate it to ServoCSSPropList.h.
...
Bug: 1454830
Reviewed-by: emilio
MozReview-Commit-ID: 2OBCliDY02g
2018-04-28 10:26:02 +02:00
Manish Goregaokar
8c2b7b41ef
Autogenerate compute_damage ( fixes #10622 )
2018-02-09 08:48:04 -08:00
CYBAI
3f6a613bea
Use Python's True instead of string for arbitrary Python code in mako
2018-01-13 00:23:30 +08:00
Emilio Cobos Álvarez
187d28c732
style: Add gecko_pref annotation to the properties.
2017-11-16 02:44:35 +01:00
Gecko Backout
11c64178d8
Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/18809
2017-10-19 21:26:51 +00:00
Bastien Orivel
e8e2d0a4b2
Update bitflags to 1.0 in every servo crate
...
It still needs dependencies update to remove all the other bitflags
versions.
2017-10-19 15:01:17 +02:00
Boris Zbarsky
592a96fc06
Flag properties that apply to ::first-letter/::first-line/::placeholder. r=emilio
...
Part 2 of the fix for Gecko bug 1382786 <https://bugzilla.mozilla.org/show_bug.cgi?id=1382786 >.
2017-07-21 14:15:42 -04:00
Anthony Ramine
201d7e79e7
Make text-shadow and box-shadow use SimpleShadow
2017-06-28 16:28:25 +02:00
Anthony Ramine
395f6be0a6
Use the Separator trait for the filter property
2017-06-27 23:40:16 +02:00
Anthony Ramine
6f4061d4ad
Use generics for the filter property
...
This introduces an additional shadow type for drop-shadow().
2017-06-20 13:48:53 +02:00
Mantaroh Yoshinaga
87e580a33d
Make filter property animatable.
2017-06-19 09:47:26 +09:00
Simon Sapin
a5bb55790f
Untry style
2017-06-18 13:18:13 +02:00
Simon Sapin
b83afdedc8
Upgrade cssparser to 0.15
2017-06-16 15:05:46 +02:00
Josh Matthews
27ae1ef2e7
Thread ParseError return values through CSS parsing.
2017-06-09 16:46:25 -04:00
Xidorn Quan
3e47e6eab2
Make text-shadow reuse Shadow directly.
2017-06-07 13:32:17 +10:00
Xidorn Quan
ccd7022457
Reuse ToCss of Shadow types in drop-shadow filter.
2017-06-07 13:32:16 +10:00
Xidorn Quan
2bd1ff0450
Move ToCss impl for Shadow types to values mod.
2017-06-07 13:32:10 +10:00
Anthony Ramine
5d70580813
Make use of generics for transform-origin
...
This allows us to preserve keywords during serialisation.
2017-05-31 09:58:07 +02:00
Cameron McCormack
c768169149
style: Add support for disabled document colors.
2017-05-30 16:25:08 +08:00
daisuke
917dbdfdbd
Implements simple discrete animatable properties
2017-05-29 16:08:09 +09:00
Anthony Ramine
cb2e04acf6
Remove style::values::HasViewportPercentage reexport
2017-05-20 22:00:05 +02:00
Anthony Ramine
00bfc6b172
Remove a lot of unused imports
2017-05-20 15:23:19 +02:00
Anthony Ramine
90bae7f802
Derive HasViewportPercentage 🍷
2017-05-20 14:48:04 +02:00
Nazım Can Altınova
85fb3efd76
stylo: -moz-image-region shouldn't parse unitless lengths in quirks mode
2017-05-14 21:01:46 +03:00
Nazım Can Altınova
4483a7694a
stylo: Use computed Angle in computed value of filter property
...
Using specified Angle was wrong because it can keep calc
value and serialize with calc(). Also that will allow us to pass
angle unit later.
2017-05-01 14:28:04 +03:00
Hiroyuki Ikezoe
424e4f9d35
Use IntermediateColor for box-shadow.
2017-04-24 15:40:26 +09:00
Hiroyuki Ikezoe
e47d30f668
Rename 'normal' of animation_value_type to 'ComputedValue'.
2017-04-24 15:40:13 +09:00
Hiroyuki Ikezoe
94fb839fdd
Rename animation_type to animation_value_type.
2017-04-24 15:23:39 +09:00
Mantaroh Yoshinaga
ba34eacee0
Make clip property animatable.
2017-04-21 15:20:59 +09:00
Nazım Can Altınova
67799f9445
Create a generic flag system for properties
2017-04-19 22:08:50 +03:00
Anthony Ramine
ff2cf2c62f
Fix parsing of "center left" in parse_origin ( fixes #15750 )
2017-04-13 16:59:40 +02:00
J. Ryan Stinnett
1a31b87c22
Pass ParserContext down to lengths
...
To make it possible to check the rule type when parsing lengths, we need to pass
the `ParserContext` down through many layers to the place where length units are
parsed.
This change leaves it unused, so it's only to prepare for the next change.
MozReview-Commit-ID: 70YwtcCxnWw
2017-04-12 16:40:48 +08:00
Hiroyuki Ikezoe
03d354afba
Rename animatable to animation_type.
...
animation_type takes following values:
animation_type="none" for non-animatable properties
animation_type="normal" for animatable properties
animation_type="discrete" for animatable but discrete type of animations
We use string value to distinguish the case where no animation_type is
specified.
animation_type="discrete" will be used in a subsequent patch to make a property
animatable as discrete type.
2017-04-07 10:38:28 +09:00
Nikita-04
ce7d63bbd5
Properly serialize <box-shadow>
2017-03-23 23:26:18 +05:30
Nazım Can Altınova
a3862780ac
Add flags to longhands for gecko glue
...
The flags are creates_stacking_context, fixpos_cb and abspos_cb. These will be needed in will-change glue.
2017-03-21 21:10:01 +03:00
Xidorn Quan
a407b589db
Don't serialize url() twice
2017-03-15 15:42:40 +11:00
Jason Tran
b7edf34c8c
Reject negative factors in filter functions ( fixes #15494 )
2017-03-08 11:54:12 +01:00
Neck Varentsov
e165d1f885
fix {transform,perspective}-origin accepts (and ignores) anything for their second part of value
2017-02-26 20:54:14 +03: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
Nazım Can Altınova
c3da55dd74
Implement gecko glue for clip property
2017-02-24 15:17:23 +03:00
Manish Goregaokar
2942e3b2ea
stylo: Support URL filters
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:42:53 -08:00
Manish Goregaokar
6b0d3902de
Factor out ClipRect type into values; use Either for clip
...
MozReview-Commit-ID: C3R1erJdiID
2017-02-09 15:09:35 -08:00
Nazım Can Altınova
78afe2b8d1
Box larger specified values to avoid memmove impact
2017-02-09 11:10:08 +01:00
Ravi Shankar
590c9579f0
Change LengthOrPercentage to make use of NoCalcLength
2017-01-29 02:30:25 +05:30
Ravi Shankar
377a23df50
Refactor and modify stuff to make use of NoCalcLength
2017-01-29 02:04:24 +05:30
Xidorn Quan
0a027c414f
Use whitespace to separate params of drop-shadow
2017-01-25 18:17:11 +11:00
Manish Goregaokar
f59557d2f2
Box CalcLengthOrPercentage to reduce inline size of PropertyDeclaration(s)
2017-01-17 08:09:54 -08:00
Xidorn Quan
8a8ef48fb3
Add other property aliases
2017-01-11 11:18:01 +11:00
Manish Goregaokar
c89368dcc5
Add spec links for opacity
2017-01-03 14:03:40 -08:00