mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Don't send empty canvases to WebRender
If any dimension of a canvas is 0, don't try to render it as it causes problems inside webrender.
This commit is contained in:
parent
e66ab111a6
commit
61fb84d6a0
5 changed files with 34 additions and 0 deletions
|
@ -87,6 +87,7 @@ impl Fragment {
|
|||
.rect
|
||||
.to_physical(i.style.writing_mode, containing_block)
|
||||
.translate(containing_block.origin.to_vector());
|
||||
|
||||
let common = builder.common_properties(rect.clone().to_webrender());
|
||||
builder.wr.push_image(
|
||||
&common,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue