Artem Biryukov
9564673b5a
Fix related to #14101
...
Add Parse trait implementation for some structures
2016-11-12 05:26:15 +03: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
Emilio Cobos Álvarez
de4fe6e2b6
Concurrent rule tree, v1
...
This patch introduces infrastructure for the rule tree, and constructs it.
We don't use it yet, nor have good heuristics for GC'ing it, but this should not
happen anymore once we store the rule node reference in the node.
I haven't messed up with memory orders because I want to do a try run with it,
then mess with them.
Take down the ApplicableDeclarationsCache, use the rule tree for doing the cascade.
2016-11-05 17:29:52 +01:00
Ting-Yu Lin
0fc38f79d6
Use enum BorderWidth as SpecifiedValue
...
Use enum BorderWidth instead of a tuple-like struct to store the specified
value. BorderWidth is needed to be used in both longhand and shorthand
border width properties, so I put it in `specified` module.
Fixed #13869 .
2016-10-26 16:24:12 +08: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
Manish Goregaokar
2bde9462b1
Add safer bindings for RefPtr
2016-10-14 00:44:06 +05:30
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
2f69e7ff8c
Use ComputedValueAsSpecified wherever possible
2016-09-22 18:45:34 +05:30
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
Emilio Cobos Álvarez
40c04b4c6b
style: Correcly track whether calc values support viewport sizes.
2016-08-14 01:37:28 -07:00
bors-servo
414204c909
Auto merge of #12712 - servo:rustup, r=Ms2ger
...
Update Rust to 1.12.0-nightly (545a3a94f 2016-08-04)
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12712 )
<!-- Reviewable:end -->
2016-08-05 07:46:27 -05:00
Anthony Ramine
f88302ebf3
Update Rust to 1.12.0-nightly (545a3a94f 2016-08-04)
2016-08-05 14:45:32 +02:00
Manish Goregaokar
e69f6396e2
Remove unused imports
2016-08-02 15:57:32 +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
Cameron McCormack
4a8c181419
Fix unused variable warning.
2016-08-02 11:43:44 +08:00
Manish Goregaokar
149246e96a
style: Split values.rs into specified/computed module files
2016-07-29 18:43:42 +05:30