mirror of
https://github.com/servo/servo.git
synced 2025-09-17 02:18:23 +01:00
Stop using UnsafeNode in the StyleSharingCandidateCache.
This commit is contained in:
parent
c5f01fe3b8
commit
946e7fb7c3
7 changed files with 63 additions and 67 deletions
|
@ -875,12 +875,12 @@ pub extern "C" fn Servo_ResolveStyle(element: RawGeckoElementBorrowed,
|
|||
};
|
||||
|
||||
let mut tlc = ThreadLocalStyleContext::new(traversal.shared_context());
|
||||
let context = StyleContext {
|
||||
let mut context = StyleContext {
|
||||
shared: traversal.shared_context(),
|
||||
thread_local: &mut tlc,
|
||||
};
|
||||
|
||||
recalc_style_at(&traversal, &mut traversal_data, &context, element, &mut data);
|
||||
recalc_style_at(&traversal, &mut traversal_data, &mut context, element, &mut data);
|
||||
|
||||
// The element was either unstyled or needed restyle. If it was unstyled, it may have
|
||||
// additional unstyled children that subsequent traversals won't find now that the style
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue