mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #16319 - canaltinova:element, r=upsuper
stylo: Add -moz-element support Implemented -moz-element for background property. r=upsuper --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15443 and [Bug 1341761](https://bugzilla.mozilla.org/show_bug.cgi?id=1341761) <!-- 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/16319) <!-- Reviewable:end -->
This commit is contained in:
commit
3620e755a9
5 changed files with 64 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue