mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
script: Reflow 200 milliseconds after the <body>
is parsed, like Gecko
does.
This commit is contained in:
parent
8759d42559
commit
9e34e82aec
5 changed files with 65 additions and 7 deletions
|
@ -81,6 +81,7 @@ enum WindowState {
|
|||
#[derive(Debug)]
|
||||
pub enum ReflowReason {
|
||||
CachedPageNeededReflow,
|
||||
RefreshTick,
|
||||
FirstLoad,
|
||||
KeyEvent,
|
||||
MouseEvent,
|
||||
|
@ -1046,6 +1047,7 @@ fn debug_reflow_events(goal: &ReflowGoal, query_type: &ReflowQueryType, reason:
|
|||
|
||||
debug_msg.push_str(match *reason {
|
||||
ReflowReason::CachedPageNeededReflow => "\tCachedPageNeededReflow",
|
||||
ReflowReason::RefreshTick => "\tRefreshTick",
|
||||
ReflowReason::FirstLoad => "\tFirstLoad",
|
||||
ReflowReason::KeyEvent => "\tKeyEvent",
|
||||
ReflowReason::MouseEvent => "\tMouseEvent",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue