aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmldocument.rs
diff options
context:
space:
mode:
authorJack Moffitt <jack@metajack.im>2016-03-01 15:09:04 -0700
committerJack Moffitt <jack@metajack.im>2016-03-03 15:17:46 -0700
commit2507bfb2cf3a5d16d457bb8ebc56545d8d6cee09 (patch)
treeed3d6375a91b71c1a3dbac6ba4244b2e1d61e5f4 /components/script/dom/xmldocument.rs
parent056a7cf1a2284063e5d32c6627b86f6931957a74 (diff)
downloadservo-2507bfb2cf3a5d16d457bb8ebc56545d8d6cee09.tar.gz
servo-2507bfb2cf3a5d16d457bb8ebc56545d8d6cee09.zip
Suppress reflows before RefreshTick or FirstLoad
This fixes a bug where partially loaded content is displayed to the user before it should be, usually before stylesheets have loaded. This commit supresses reflows until either FirstLoad or RefreshTick, whichever comes first. Unfortunately, hit_test and mouse_over did not do reflows if they were necessary, and so by suppressing the initial spurious reflows, these methods started to panic without a display list to query. This patch also transforms these into queries similar to the other existing queries.
Diffstat (limited to 'components/script/dom/xmldocument.rs')
-rw-r--r--components/script/dom/xmldocument.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs
index e8cf284c7d1..6fc1ebfd267 100644
--- a/components/script/dom/xmldocument.rs
+++ b/components/script/dom/xmldocument.rs
@@ -6,7 +6,6 @@ use document_loader::DocumentLoader;
use dom::bindings::codegen::Bindings::DocumentBinding::DocumentMethods;
use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
use dom::bindings::codegen::Bindings::XMLDocumentBinding::{self, XMLDocumentMethods};
-use dom::bindings::error::Fallible;
use dom::bindings::global::GlobalRef;
use dom::bindings::inheritance::Castable;
use dom::bindings::js::{Root, RootedReference};