Emilio Cobos Álvarez
6c3458767b
style: Refactor and add infrastructure for font metrics in style.
...
This commit itself only moves things around and adds an extra parameter to the
`apply_declarations` function to eventually handle #14079 correctly.
Probably needs a more granular API to query fonts, á la nsFontMetrics, but
that's trivial to do once this is landed.
Then we should make the font provider mandatory, and implement the missing stylo
bits.
2016-11-13 11:54:10 +01:00
Emilio Cobos Álvarez
5f2e7af864
style: Centralize specified url value handling, and refcount urls.
2016-11-10 13:15:21 +01:00
Ravi Shankar
c4fc49c559
Make use of Either<A, B> for LengthOrNone
2016-11-09 13:04:26 +05:30
Ravi Shankar
6061985898
Prefer Servo-specific ToCss for all types
2016-11-07 09:14:22 +05:30
Nazım Can Altınova
7720fe4d9c
Move LengthOrNumber to style/values and implement GeckoStyleCoordConvertible
2016-11-06 20:08:31 +03:00
Yuki Izumi
f33f5605ba
Refactor style lengths per #13584
2016-11-06 14:11:37 +11:00
Cameron McCormack
75e97c02dc
Factor out a UrlOrNone value type and make -moz-binding use it.
...
MozReview-Commit-ID: L57QEf40e2m
2016-10-16 11:32:57 +08:00
Nazım Can Altınova
26c98edd68
Implement parsing of all gradients
2016-10-09 22:53:15 +03:00
Manish Goregaokar
d81c6af59c
Add from_computed_value() function for converting computed values to specified
2016-09-23 09:44:32 +05:30
Manish Goregaokar
7138ad7d7e
Bug 1300731 - stylo: Implement mask-image; r?heycam
2016-09-10 15:27:45 +08:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Emilio Cobos Álvarez
d02c5b0281
style: Don't incorrectly clamp values in calc that might not be only lengths.
...
Expressions with percentages may be negative or positive at computed value time.
So, we can only clamp lengths at computed value time, which is what the other
browsers do.
2016-09-01 23:39:40 -07:00
Emilio Cobos Álvarez
2617d15ed6
style: Properly track whether negative values of calc() are allowed
...
In order to clamp them at computed value time.
2016-08-30 19:17:16 -07:00
Emilio Cobos Álvarez
be7a44315d
style: Allow calc in media queries.
2016-08-30 13:48:55 -07:00
Ravi Shankar
a04028eede
Prefer length and percentage for word spacing
2016-08-09 17:53:40 +05:30
Manish Goregaokar
44e33bcdc5
Move Position into its own values module
2016-08-02 15:57:23 +05:30
Manish Goregaokar
2580c1dc6e
Add InsetRect, move BorderRadius to basic_shape.rs
2016-08-02 15:57:20 +05:30
Manish Goregaokar
149246e96a
style: Split values.rs into specified/computed module files
2016-07-29 18:43:42 +05:30