stylo: Add -moz-element support

This commit is contained in:
Nazım Can Altınova 2017-04-08 20:25:34 +03:00
parent e0731215c0
commit 9618363e08
No known key found for this signature in database
GPG key ID: AF9BCD7CE6449954
5 changed files with 64 additions and 4 deletions

View file

@ -657,6 +657,9 @@ impl FragmentDisplayListBuilding for Fragment {
Some(computed::Image::ImageRect(_)) => {
// TODO: Implement `-moz-image-rect`
}
Some(computed::Image::Element(_)) => {
// TODO: Implement `-moz-element`
}
}
}
}
@ -1154,6 +1157,9 @@ impl FragmentDisplayListBuilding for Fragment {
Some(computed::Image::ImageRect(..)) => {
// TODO: Handle border-image with `-moz-image-rect`.
}
Some(computed::Image::Element(..)) => {
// TODO: Handle border-image with `-moz-element`.
}
Some(computed::Image::Url(ref image_url)) => {
if let Some(url) = image_url.url() {
let webrender_image = state.layout_context