mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make iframe's load event trigger a reflow of the enclosing window. Add a catch-all reflow for all same-origin pages sharing an event loop.a
This commit is contained in:
parent
e5a1af5b7a
commit
7eca462c5a
3 changed files with 19 additions and 1 deletions
|
@ -108,6 +108,8 @@ pub enum ReflowReason {
|
|||
RequestAnimationFrame,
|
||||
WebFontLoaded,
|
||||
FramedContentChanged,
|
||||
IFrameLoadEvent,
|
||||
MissingExplicitReflow,
|
||||
}
|
||||
|
||||
pub type ScrollPoint = Point2D<Au>;
|
||||
|
@ -1427,6 +1429,8 @@ fn debug_reflow_events(goal: &ReflowGoal, query_type: &ReflowQueryType, reason:
|
|||
ReflowReason::RequestAnimationFrame => "\tRequestAnimationFrame",
|
||||
ReflowReason::WebFontLoaded => "\tWebFontLoaded",
|
||||
ReflowReason::FramedContentChanged => "\tFramedContentChanged",
|
||||
ReflowReason::IFrameLoadEvent => "\tIFrameLoadEvent",
|
||||
ReflowReason::MissingExplicitReflow => "\tMissingExplicitReflow",
|
||||
});
|
||||
|
||||
println!("{}", debug_msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue