mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Make reflow queries always perform reflow. Fixes #5458.
This commit is contained in:
parent
629edc5c46
commit
a3c13d8a40
2 changed files with 2 additions and 1 deletions
|
@ -537,7 +537,7 @@ impl<'a> WindowHelpers for JSRef<'a, Window> {
|
||||||
debug!("script: performing reflow for goal {:?}", goal);
|
debug!("script: performing reflow for goal {:?}", goal);
|
||||||
|
|
||||||
let root: JSRef<Node> = NodeCast::from_ref(root);
|
let root: JSRef<Node> = NodeCast::from_ref(root);
|
||||||
if !root.get_has_dirty_descendants() {
|
if query_type == ReflowQueryType::NoQuery && !root.get_has_dirty_descendants() {
|
||||||
debug!("root has no dirty descendants; avoiding reflow");
|
debug!("root has no dirty descendants; avoiding reflow");
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,7 @@ pub enum ReflowGoal {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Any query to perform with this reflow.
|
/// Any query to perform with this reflow.
|
||||||
|
#[derive(PartialEq)]
|
||||||
pub enum ReflowQueryType {
|
pub enum ReflowQueryType {
|
||||||
NoQuery,
|
NoQuery,
|
||||||
ContentBoxQuery(TrustedNodeAddress),
|
ContentBoxQuery(TrustedNodeAddress),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue