Ennui Langeweile
f7c340f881
Implement support for the drop-shadow
filter ( #30439 )
...
* Implement support for `drop-shadow`
* Clean up remnant from early attempts
* Fix misleading comments on GenericSimpleShadow
If Servo-specific `style` changes will need to be upstreamed anyway, I might as well fix a thing that had thrown me off!
* Revert "Fix misleading comments on GenericSimpleShadow"
This reverts commit cdc810b826ac082041adc212c24649ee3b86ca0a.
* Clean up an import
* Update test expectations
* Fix missing expectation on Layout 2013
2023-10-04 11:32:45 +00:00
Emilio Cobos Álvarez
1af30fa0c9
style: rustfmt recent changes.
2019-07-08 12:45:56 +02:00
violet
2fba62aba9
style: Add computed value ZeroToOneNumber.
...
Correctly handle clamping to 1 behavior of grayscale(),
invert(), opacity() and sepia().
Differential Revision: https://phabricator.services.mozilla.com/D35509
2019-07-08 12:42:25 +02:00
Emilio Cobos Álvarez
57868f571f
style: Use cbindgen for filters.
...
Had to implement some OwnedSlice bits that the canvas code used.
Differential Revision: https://phabricator.services.mozilla.com/D31799
2019-06-04 01:03:52 -04:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Simon Sapin
b1822a39fa
cargo fix --edition --features gecko
2018-11-10 17:47:28 +01:00
Simon Sapin
a15d33a10e
cargo fix --edition
2018-11-10 17:47:28 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
chansuke
8dab4d659a
Format style component.
2018-09-09 16:24:45 +02:00
Dan Glastonbury
a055e8af89
style: Change nscolor to StyleComplexColor in nsCSSShadowItem.
...
Bug: 1467621
Reviewed-by: xidorn
MozReview-Commit-ID: moE2CI7fT8
2018-07-01 00:03:11 +02:00
Emilio Cobos Álvarez
2a5007926d
Fix Servo build.
2018-05-19 10:15:17 +02:00
Emilio Cobos Álvarez
1314f47da5
style: Distinguish between specified and computed URLs.
...
This is needed to serialize computed URLs correctly from getComputedStyle.
Bug: 1461288
Reviewed-by: xidorn
MozReview-Commit-ID: 9wakhqNrszb
2018-05-19 10:15:17 +02:00
Xidorn Quan
4e0b1071e7
Use Option<RGBA> for color in shadow
2017-08-19 00:20:24 +10:00
Boris Chiou
8651acd94c
Bug 1374233 - Part 13: Use NonNegative{*} types for components of Shadow and Filter.
...
MozReview-Commit-ID: Im4KGy1n9IJ
2017-08-04 14:23:30 +08:00
Anthony Ramine
201d7e79e7
Make text-shadow and box-shadow use SimpleShadow
2017-06-28 16:28:25 +02:00
Anthony Ramine
395f6be0a6
Use the Separator trait for the filter property
2017-06-27 23:40:16 +02:00
Anthony Ramine
81a01f6ce1
Use generics for SimpleShadow
2017-06-24 13:01:20 +02:00
Anthony Ramine
c9b123266d
Unconditionally compile SimpleShadow even in Servo
2017-06-23 16:26:09 +02:00
Anthony Ramine
ae1c890c9e
Rename DropShadow to SimpleShadow
2017-06-23 16:25:50 +02:00
Anthony Ramine
6f4061d4ad
Use generics for the filter property
...
This introduces an additional shadow type for drop-shadow().
2017-06-20 13:48:53 +02:00