Emilio Cobos Álvarez
55e2cd5dc3
style: Remove unsound Atom From implementations.
...
Fixes #20158
2018-03-19 11:06:53 +01:00
Xidorn Quan
a99ca543cd
Add SpecifiedImageUrl for <url> used as images.
2018-03-08 23:34:32 +11:00
Xidorn Quan
14b708311b
Remove some useless clone() call on SpecifiedUrl::image_value.
2018-03-08 21:35:33 +11:00
Anthony Ramine
09e304adb3
Rename FillRule variants to follow the same rules as other enums
2018-02-01 12:43:29 +01:00
Bobby Holley
f858ce91e8
Avoid entraining various Debug impls in release builds.
...
MozReview-Commit-ID: Lp9i9EI5qdU
2018-01-13 09:51:46 -08:00
Nazım Can Altınova
9882d0bae5
style: Move text-align outside of the mako file.
2017-12-18 11:58:06 -06:00
Ting-Yu Lin
923ffcf2cc
style: Support shape-image: <image>
...
MozReview-Commit-ID: GSCZIMEpCS2
2017-11-29 11:27:31 +08:00
Gecko Backout
9651a5572e
Backed out changeset 1fdcd69d2524 for Build Bustage. r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/19376
2017-11-26 11:00:42 +00:00
Ting-Yu Lin
f3dbaad222
style: Support shape-image: <image>
...
MozReview-Commit-ID: GSCZIMEpCS2
2017-11-26 17:07:52 +08:00
Ting-Yu Lin
107a9b2c81
style: Use ComputedUrl instead of SpecifiedUrl in conversion.rs
...
In stylo, ComputedUrl and SpecifiedUrl happen to be the same. However, using
ComputedUrl can make code clearer that conversion.rs is for converting
computed values between gecko and servo types.
2017-11-21 15:08:44 +08:00
Emilio Cobos Álvarez
4927786d90
style: Implement css(dimension) and derive ToCss for a bunch of stuff.
...
For css(dimension), it'd be nice to derive(Parse) too, I think...
2017-11-12 16:22:45 +01:00
Ting-Yu Lin
db6acc7de4
style: Change URL value storage in StyleShapeSource.
...
This is due to Bug 1404243 Part 4.
MozReview-Commit-ID: CFRCdw2Dayy
2017-10-02 11:50:37 +08:00
Ting-Yu Lin
3547a59e28
style: Remove refcount for StyleBasicShape
...
This is due to Bug 1404243 Part 3.
MozReview-Commit-ID: DKymebmAYLX
2017-10-02 11:50:30 +08:00
Emilio Cobos Álvarez
2ac1327e4b
style: Make border-spacing serialization consistent, and move it to precomputed_type.
2017-09-17 21:33:17 +02:00
Boris Chiou
b89286e8e7
Use CSSPixelLength in LengthOrPercentage{*}.
...
Replace Au with CSSPixelLength in LengthOrPercentage,
LengthOrPercentageOrAuto, and LengthOrPercentageOrNone.
2017-09-13 18:10:46 +08:00
Boris Chiou
535c1e3c6f
Replace Au with CSSPixelLength in CalcLengthOrPercentage.
...
We replace Au with CSSPixelLength for the length part of
computed::CalcLengthOrPercentage. Therefore, it would be easier to use
CSSPixelLength for all other LengthOrPercentage{*} types.
2017-09-13 18:10:39 +08:00
Boris Chiou
a949e2a057
Introduce CSSPixelLength and update NonNegativeLength.
...
First, we define computed::CSSPixelLength which contains a CSSFloat, a
pixel value, and then we replace computed::Length with CSSPixelLength.
Therefore, the |ComputedValue| of NoCalcLength, AbsoluteLength,
FontRelativeLength, ViewportPercentageLength, CharacterWidth, and
PhysicalLength is CSSPixelLength.
Besides, we drop NonNegativeAu, and replace computed::NonNegativeLength
with NonNegative<computed::Length>. (i.e. NonNegative<CSSPixelLength>)
2017-09-13 18:05:14 +08:00
Emilio Cobos Álvarez
64ab73eabd
style: Properly use integers on grid properties, and derive ToComputedValue.
2017-09-11 11:29:27 +02:00
bors-servo
8129cf5563
Auto merge of #18206 - ferjm:bug1382369.grid.repeat.function, r=wafflespeanut
...
stylo: store specified value of grid layout repeat() function
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1382369](https://bugzilla.mozilla.org/show_bug.cgi?id=1382369 )
<!-- 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/18206 )
<!-- Reviewable:end -->
2017-09-11 02:32:38 -05:00
Boris Zbarsky
26b39241f9
Box gradients and rects in Image. r=xidorn
...
Gradients and rects are rare, and large. Image is much smaller with them boxed.
This is part of of the fix for Gecko bug 1397614
<https://bugzilla.mozilla.org/show_bug.cgi?id=1397614 >
2017-09-09 10:55:58 -04:00
Fernando Jiménez Moreno
8306946e7f
stylo: store specified value of grid layout repeat() function
2017-09-06 12:53:07 +02:00
Anthony Ramine
542a9337a4
Use generics for the vertical-align property
2017-08-30 23:01:12 +02:00
Simon Sapin
35282042bc
geckolib: Fix some warnings (treated as error) new in Rust Nigthly
2017-08-17 15:59:33 +02:00
Daisuke Akatsuka
c05baa2327
Implement clone_content method
2017-08-15 15:25:05 +09:00
Anthony Ramine
c4e33d9dca
Animate basic shapes
2017-08-11 10:25:03 +02:00
Xidorn Quan
f749aaee5e
Always set mBgPos for LineDirection::Vertical.
2017-08-04 19:29:01 +10:00
Fernando Jiménez Moreno
7fc3d59c0b
stylo: serialize radial gradients computed value using modern unprefixed style
2017-08-03 09:33:28 +02:00
Daisuke Akatsuka
2250e79976
Support calc for fit-content()
2017-08-01 17:13:01 +09:00
Emilio Cobos Álvarez
23369aee6d
style: Don't unconditionally generate Calc values when converting background-size from Gecko.
...
Bug: 1385140
MozReview-Commit-ID: ERwq50WSvLV
2017-07-28 14:50:01 +02:00
Emilio Cobos Álvarez
75a844cd32
Revert "Auto merge of #17868 - ferjm:bug1380259.radial.gradients, r=xidorn"
...
This reverts commit ef233381cc
, reversing
changes made to f61528d297
.
This broke a bunch of tests in m-c, like:
https://treeherder.mozilla.org/logviewer.html#?job_id=118007409&repo=autoland
2017-07-26 14:25:22 +02:00
Fernando Jiménez Moreno
c50e892a04
stylo: serialize radial gradients using modern unprefixed style
2017-07-26 12:00:15 +02:00
Emilio Cobos Álvarez
e374a54050
style: Cleanup the cascade a good bit.
2017-07-20 11:20:37 +02:00
Emilio Cobos Álvarez
310be02ba8
style: Respect calc for percentages.
2017-07-14 13:43:27 +02:00
Fernando Jiménez Moreno
6ae4bf6ee8
Implement serialization of linear-gradient the same ways as in Gecko
2017-07-13 12:20:30 +02:00
Anthony Ramine
7bc9a95b46
Rename MinMax to Minmax
2017-07-12 11:45:17 +02:00
Anthony Ramine
907d629ca4
Rename ImageRect to MozImageRect
2017-07-12 11:45:15 +02:00
Daisuke Akatsuka
d885747a18
implements nsStyleImage type properties animatable
2017-07-05 13:10:58 +09:00
Daisuke Akatsuka
a155a6341d
implements nsStyleSides type properties animatable
2017-07-05 12:57:30 +09:00
Daisuke Akatsuka
34980689a7
implements nsStyleGridLine type properties animatable
2017-07-05 12:55:51 +09:00
Nazım Can Altınova
d589645ee9
stylo: Implement -moz-prefixed radial gradients
2017-06-30 17:54:01 -07:00
Nazım Can Altınova
3e42684d3c
stylo: Implement -moz-prefixed linear gradients
2017-06-30 17:53:01 -07:00
Anthony Ramine
608e7f71a2
Make computed types hold Percentage instead of bare CSSFloat
2017-06-15 16:59:03 +02:00
Xidorn Quan
bf77f81ed6
Create RGBAColor for colors compute to RGBA.
2017-06-08 10:42:26 +10:00
Anthony Ramine
862fc4f88d
Rename BorderRadiusSize to BorderCornerSize
2017-05-29 00:58:53 +02:00
Anthony Ramine
af3ede418b
Refactor BorderRadius and move it to the border modules
...
BorderRadius now parses itself reusing Rect<T>.
2017-05-28 14:36:37 +02:00
Anthony Ramine
150c9df246
Use Rect in InsetRect
2017-05-25 17:27:19 +02:00
Anthony Ramine
a65c874ec8
Refactor basic shapes
2017-05-22 14:03:12 +02:00
Anthony Ramine
307dd74ecf
Introduce CalcLengthOrPercentage::unclamped_length
...
This is necessary for some operations, notably converting this to something
suitable for gecko.
2017-05-18 19:27:31 +02:00
Anthony Ramine
d0b9bd9c64
Refactor how calc() clamping is done on computed values ( fixes #15296 )
2017-05-18 10:14:59 +02:00
cku
f7e3c534e3
Stylo: Pass LayerImage's image_value to gecko.
2017-05-16 01:42:31 +08:00