aboutsummaryrefslogtreecommitdiffstats
path: root/components/compositing/headless.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2015-02-25 13:46:02 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2015-03-03 07:46:26 +1000
commitf68386f0fa9dfe79deb8a73f45a93afe40f2561d (patch)
tree03191c812289cb1966968c35857e27dc6146c106 /components/compositing/headless.rs
parentcbc4b9520e8fb609fa068bb53193a95202f3a0a7 (diff)
downloadservo-f68386f0fa9dfe79deb8a73f45a93afe40f2561d.tar.gz
servo-f68386f0fa9dfe79deb8a73f45a93afe40f2561d.zip
Fix making an iframe visible when it was initially set to display:none.
When an iframe is created with display:none it sets the root layer to be zero width and height. When updating the rect of the iframe from layout send the entire rect rather than just the new origin, which handles the case where the iframe has been made visible and now has a non-zero rect.
Diffstat (limited to 'components/compositing/headless.rs')
-rw-r--r--components/compositing/headless.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/compositing/headless.rs b/components/compositing/headless.rs
index 3c57b0e3b82..0c38846d1d0 100644
--- a/components/compositing/headless.rs
+++ b/components/compositing/headless.rs
@@ -104,7 +104,7 @@ impl CompositorEventListener for NullCompositor {
Msg::CreateOrUpdateBaseLayer(..) |
Msg::CreateOrUpdateDescendantLayer(..) |
- Msg::SetLayerOrigin(..) |
+ Msg::SetLayerRect(..) |
Msg::AssignPaintedBuffers(..) |
Msg::ChangeReadyState(..) |
Msg::ChangePaintState(..) |