mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Don't require a full SharedStyleContext for TreeStyleInvalidator.
We only use it to get the quirks mode, and a shared style context is a pretty heavy-weight struct. Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
1715329eb1
commit
40d9cd99b5
3 changed files with 31 additions and 20 deletions
|
@ -259,11 +259,12 @@ impl ElementData {
|
|||
return InvalidationResult::empty();
|
||||
}
|
||||
|
||||
let mut processor = StateAndAttrInvalidationProcessor;
|
||||
let mut processor =
|
||||
StateAndAttrInvalidationProcessor::new(shared_context);
|
||||
let invalidator = TreeStyleInvalidator::new(
|
||||
element,
|
||||
Some(self),
|
||||
shared_context,
|
||||
shared_context.quirks_mode(),
|
||||
stack_limit_checker,
|
||||
nth_index_cache,
|
||||
&mut processor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue