mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Support full <image> syntax in list-style-image as per spec.
This allows supporting image-set(), etc, and simplifies the bullet frame code significantly, too thanks to two changes: * Instead of manually managing the image request, use the CSS image loader, with the `REQUEST_REQUIRES_REFLOW` flag, to handle image loads correctly. This didn't exist when this code was initially implemented, but we can nicely use it now. * Instead of re-implementing another WebRender command-builder thing, we can just reuse the nsImageRenderer code. Differential Revision: https://phabricator.services.mozilla.com/D100774
This commit is contained in:
parent
a4506d94ec
commit
65a06d5003
4 changed files with 7 additions and 13 deletions
|
@ -13,6 +13,3 @@ pub use crate::servo::url::{ComputedImageUrl, ComputedUrl};
|
|||
|
||||
/// Computed <url> | <none>
|
||||
pub type UrlOrNone = GenericUrlOrNone<ComputedUrl>;
|
||||
|
||||
/// Computed image <url> | <none>
|
||||
pub type ImageUrlOrNone = GenericUrlOrNone<ComputedImageUrl>;
|
||||
|
|
|
@ -13,6 +13,3 @@ pub use crate::servo::url::{SpecifiedImageUrl, SpecifiedUrl};
|
|||
|
||||
/// Specified <url> | <none>
|
||||
pub type UrlOrNone = GenericUrlOrNone<SpecifiedUrl>;
|
||||
|
||||
/// Specified image <url> | <none>
|
||||
pub type ImageUrlOrNone = GenericUrlOrNone<SpecifiedImageUrl>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue