mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Combine ReflowGoal and ReflowQueryType
This simplifies the logic in the layout_thread and makes it clearer which types of reflows generate display lists and cause display updates.
This commit is contained in:
parent
75a4dcf293
commit
0380431157
9 changed files with 177 additions and 267 deletions
|
@ -819,15 +819,6 @@ pub struct StyleContext<'a, E: TElement + 'a> {
|
|||
pub thread_local: &'a mut ThreadLocalStyleContext<E>,
|
||||
}
|
||||
|
||||
/// Why we're doing reflow.
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum ReflowGoal {
|
||||
/// We're reflowing in order to send a display list to the screen.
|
||||
ForDisplay,
|
||||
/// We're reflowing in order to satisfy a script query. No display list will be created.
|
||||
ForScriptQuery,
|
||||
}
|
||||
|
||||
/// A registered painter
|
||||
#[cfg(feature = "servo")]
|
||||
pub trait RegisteredSpeculativePainter: SpeculativePainter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue