Emilio Cobos Álvarez
14bda8078e
Fix unit tests.
2020-04-16 18:29:30 +02:00
Jan Andre Ikenmeyer
f1f409ffb6
Update MPL license to https (part 5)
2018-11-27 19:09:17 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Josh Matthews
27ae1ef2e7
Thread ParseError return values through CSS parsing.
2017-06-09 16:46:25 -04:00
Anthony Ramine
fa5b46b6ee
Clean up methods on specified::Image
2017-05-15 15:36:19 +02:00
Anthony Ramine
abef5da9d8
Refactor Gradient
...
In a similar way to Position, now specified and computed gradients share
a common Gradient type defined in style::values::generics::image.
This allows us to reuse most code for many style traits like ToCss,
HasViewportPercentage and ToComputedValue.
The test changes are the fallout of the disappearance of AngleOrCorner::None,
which align our code to the spec for serialisation, where components that can
be omitted should be omitted.
2017-05-15 15:36:15 +02:00
Emilio Cobos Álvarez
3b857f1c4e
style: Add a StyleBuilder struct to avoid refcount and atomic CAS during the cascade.
...
This should fix most of the complaints that caused
https://bugzilla.mozilla.org/show_bug.cgi?id=1360889 to be open, and also fix a
bunch of other FIXMEs across the style system.
2017-04-30 23:45:40 +02:00
Anthony Ramine
f68e2fded9
Propagate quirks mode all the way to ParserContext
...
The quirks mode is still not properly propagated in geckolib.
2017-04-27 10:41:55 +02: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
J. Ryan Stinnett
4574cd8ea6
Pull rule_type into ParserContext
...
Absorb `rule_type` into the `ParserContext` so that it's easier to pass down to
deeper levels of the parser.
MozReview-Commit-ID: DjBNytLxGKX
2017-04-12 16:40:17 +08:00
Manish Goregaokar
25667d0321
stylo: Use gecko's font metrics
2017-04-10 14:29:51 +08:00
Manish Goregaokar
e402c72d0e
stylo: Store font metrics provider in thread local style context
2017-04-09 19:15:35 +08:00
Pyfisch
480f59c880
Implement serialization for transform functions.
...
Preserve more information from transform function parsing.
Preserve angle unit while parsing.
Simplify SpecifiedMatrix.
Use the write! macro for formatting with a helper called Css.
Implement ToCss for &T if T implements ToCss.
Add some tests and update others.
closes #15194
2017-04-04 19:04:19 +02:00
Emilio Cobos Álvarez
fc72f096a0
style: Properly track whether <angle> or <time> values came from calc() expressions.
2017-03-27 12:42:22 +02:00
Matt Brubeck
16e318d055
Add support for non-standard -moz color keyword values.
...
Closes #15928
2017-03-14 00:49:08 +01:00
Emilio Cobos Álvarez
6875c65d37
Bug 1341083: Implement dynamic restyling for display: contents. r=heycam
...
MozReview-Commit-ID: KimTU2j4V4p
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-02-25 19:58:56 +01:00
Boris Zbarsky
369fdddcd9
Bug 1298588 part 13. Make sure Device has a ComputedValues for stylo. r=bholley
2017-01-04 23:13:52 -05:00
Nick Price
23d4f04ce5
Default is top-to-bottom if unset, not bottom-to-top
2016-12-28 10:17:00 -05:00
Nick Price
5d56946bc2
Maintain Corner type, add None type to AngleOrCorner
2016-12-16 17:49:15 -05:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Ravi Shankar
5ac1c11e9e
Fix the unit tests to make use of local ToCss
2016-11-07 09:14:30 +05:30
Martin Naumann
ba96603b86
Adds parsing test for linear-gradient
2016-10-30 12:44:44 -07:00
Nazım Can Altınova
00244a2248
Add parsing tests for radial gradient
2016-10-19 16:35:02 +03:00