Simon Sapin
3f467023fe
Remove unused feature flag
2017-10-16 20:19:17 +02:00
Emilio Cobos Álvarez
99d241d517
style: Add a simple custom properties benchmark.
2017-10-08 13:03:38 +02:00
Manish Goregaokar
2ebce54d75
Remove testing feature from style crate
2017-08-07 14:30:31 -07:00
Nathan Froyd
018968877a
move specified values size testing entirely into stylo_tests
...
This change means that stylo_tests doesn't depend on a version of the
style crate with the `testing` feature defined.
2017-08-04 12:23:04 -04:00
Michael Partheil
b07ebbae6b
Replace all uses of the style::stylearc alias with servo_arc.
...
The alias is left there temporarilly and will be removed completely in a later commit where
also components/style/gecko/generated/structs_{debug|release}.rs are re-generated (they still
use the old alias).
2017-07-19 09:29:05 +02:00
Emilio Cobos Álvarez
cb06375fe2
style: Implement a more fine-grained invalidation method.
...
This commit also removes the old restyle_hints module and splits it into
multiple modules under components/style/invalidation/element/.
The basic approach is to walk down the tree using compound selectors as needed,
in order to do as little selector-matching as possible.
Bug: 1368240
MozReview-Commit-ID: 2YO8fKFygZI
2017-06-13 13:26:41 +02:00
Simon Sapin
5e60865d19
Use size_of_test! macro in style and stylo tests.
2017-05-18 17:17:29 +02:00
Juan C. Gonzalez-Zurita
a3dbf1d275
font-feature-settings gecko glue code
...
FeatureTagValue value property changed to use u32. ToCss for
FeatureTagValue changed to allow conversion from u32 to string. Parse
for the same struct updated to convert from string to u32. Added two
functions to transfer settings to gecko and copy settings.
2017-05-03 17:40:22 -04:00
bors-servo
3905b5af18
Auto merge of #16655 - servo:jdm-patch-1, r=emilio
...
Fix broken unit tests
These are tests that only get run on TravisCI, apparently, so they were broken by be0139ff3c
and 32c624e585
without anybody noticing.
<!-- 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/16655 )
<!-- Reviewable:end -->
2017-05-03 09:47:44 -05:00
Josh Matthews
f3f9e28e88
Make unit tests pass on TravisCI.
2017-05-03 10:32:27 -04:00
Simon Sapin
6c518c89b9
Upgrade to html5ever 0.16
2017-05-02 19:24:28 +02:00
Simon Sapin
1146921866
Keep custom-ident and string separate in animation/keyframes name.
2017-04-26 13:04:22 +09:00
J. Ryan Stinnett
0936dd24d0
Centralize ParserContext for tests
...
To simplify adding additional data to `ParserContext`, this moves test usages to
a few shared locations, instead of being spread across many tests.
MozReview-Commit-ID: 1OahV797eq
2017-04-14 17:22:14 +08:00
Simon Sapin
aeffca2a59
Replace RwLock<StyleRule> with Locked<StyleRule>
2017-03-19 22:30:37 +01:00
Emilio Cobos Álvarez
727be58b4a
style: Simplify style sharing code.
2017-03-09 19:31:03 +01:00
Xidorn Quan
6273fa0305
Make animation-name parse none
2017-03-06 22:00:04 +11:00
Bobby Holley
3a56899201
Revert "Auto merge of #15793 - upsuper:animation, r=emilio,bholley"
...
This reverts commit 7cd4c69c40
, reversing
changes made to 1b1fadb8b8
.
2017-03-03 11:50:15 -08:00
Xidorn Quan
550c64cbf2
Make animation-name parse none
2017-03-03 16:12:06 +11:00
Simon Sapin
bcd4d166ac
Fix unused warning
2017-02-28 17:16:34 +01:00
Nazım Can Altınova
9204f2aaad
Add a test to check the size of PropertyDeclaration
2017-02-09 10:26:59 +01:00
Hiroyuki Ikezoe
a80725c91b
Allow empty keyframe and keyframes with non-animatable properties.
...
We need to create CSS animations that have empty keyframe or keyframes
which have only invalid properties or non-animatable properties to fire
animation events for such animations.
2017-02-01 07:06:38 +09:00
Matt Brubeck
b3820c1296
Convert text-orientation to a Gecko-only property
...
Remove incomplete and buggy support for text-orientation in Servo.
Make the property values align with Gecko and the latest draft of CSS
Writing Modes Level 3.
2017-01-27 21:12:38 -08:00
Ms2ger
14fe337866
Update rustc to 1.16.0-nightly (7821a9b99 2017-01-23).
2017-01-24 11:02:51 +01:00
Bobby Holley
b9d99390ad
Switch to crates.io for atomic_refcell.
2017-01-03 18:14:27 -08:00
Hiroyuki Ikezoe
3320457c07
Interpolate colors with premultiplied alpha.
...
We need to clamp each interpolated values because some cubic-bezier functions
produce values that are out of range [0, 1].
2016-12-28 09:18:22 +09:00
Simon Sapin
01442ba1ae
Remove usage of std::intrinsics::discriminant_value.
2016-12-20 07:07:05 +01:00
Emilio Cobos Álvarez
e67ea42c3f
style: Add simple rule-tree benchmarks. Fix rule node drop race.
2016-12-19 09:46:59 +01:00
Alan Jeffrey
9be4fd56ce
Removed util.
2016-12-14 18:04:37 -06:00
Simon Sapin
97344b150d
cow_to_ascii_lowercase()
2016-12-09 10:56:20 -10:00
Simon Sapin
08066800cd
Rename selector_matching.rs to stylist.rs
2016-11-20 15:29:09 +01:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Simon Sapin
53b638c0e2
Update to string-cache 0.3
2016-11-03 16:23:05 +01:00
Bobby Holley
d252c8e42a
Implement AtomicRef::map.
...
MozReview-Commit-ID: 8iOALQylOuK
2016-11-01 20:39:51 +01:00
Rohit Burra
32ba45ab6f
Fix tidy issues
2016-11-01 11:35:40 +05:30
Bobby Holley
d73047584c
Implement OwningHandle in style.
...
I've also PR-ed this against upstream [1], but I don't want to block on that
in case it takes a while to be merged / published.
[1] https://github.com/Kimundi/owning-ref-rs/pull/15
2016-10-13 16:53:37 -06:00
Simon Sapin
89a29a7f12
Use parking_lot::RwLock instead of DOMRefCell for PropertyDeclarationBlock
2016-10-04 18:34:59 +02:00
Simon Sapin
5e4bdac2bd
Import SelectorMap unit tests from the selectors crate.
2016-08-21 03:40:39 +02:00
Manish Goregaokar
c6feae3c5c
Add roundtrip parsing tests for basic_shape/position
2016-08-02 15:57:35 +05:30
Simon Sapin
6d0e48f6cc
Remove some type aliases that are now just re-exports.
2016-07-20 08:42:47 +02:00
Shing Lyu
f754cacbd5
Only restyle viewport-relative nodes on viewport size change
2016-07-18 11:01:42 +08:00
Ms2ger
8dd711d3db
Move util::cache to style.
2016-07-08 16:44:47 +02:00
Anthony Ramine
8ecb5962f3
Move util::str to style
2016-07-05 10:43:54 +02:00
Matt Brubeck
96c69f852c
Fix warnings in unit tests
2016-05-12 12:22:00 -07:00
Simon Sapin
a3b271266c
Make css-properties.json checking a proper unit test.
2016-04-28 15:41:30 +02:00
Per Lundberg
4cb4cc93e4
Renamed TComputedValues to ComputedValues
...
This is a followup to #10210 , and a continuation of #10185 .
2016-03-29 23:30:13 +03:00
Bobby Holley
5c749127cc
Introduce traits for style structs and computed values.
2016-03-24 11:49:46 -07:00
Anthony Ramine
db8d502f41
Move util::logical_geometry to style
2016-02-18 10:17:13 +01:00
GauriGNaik
fc81276c8e
Add pipeline information to CSS error reporting.
2015-12-14 11:18:30 -05:00
Sam Gibson
9668500e97
Makes setting negative values to maxLength throw an IndexSize exception
2015-12-03 14:00:59 +11:00
Alan Jeffrey
3dec6edd10
Update string_cache to 0.2.
...
Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock.
Removed references to string_cache_plugin.
Import atom! and ns! from string_cache.
Replaced ns!("") by ns!().
Replaced ns!(XML) and co by ns!(xml) and co.
Replaced atom!(foo) by atom!("foo").
Replaced Atom::from_slice by Atom::from.
Replaced atom.as_slice() by &*atom.
2015-11-25 10:13:21 -06:00