mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Rearrange some data structures in preparation for the new incremental restyle algorithm.
MozReview-Commit-ID: 8iOALQylOuK
This commit is contained in:
parent
6d29bf3f80
commit
adf0fe9b9a
14 changed files with 333 additions and 219 deletions
|
@ -253,8 +253,9 @@ pub extern "C" fn Servo_StyleSheet_Release(sheet: RawServoStyleSheetBorrowed) ->
|
|||
pub extern "C" fn Servo_ComputedValues_Get(node: RawGeckoNodeBorrowed)
|
||||
-> ServoComputedValuesStrong {
|
||||
let node = GeckoNode(node);
|
||||
let arc_cv = match node.get_existing_style() {
|
||||
Some(style) => style,
|
||||
let data = node.borrow_data();
|
||||
let arc_cv = match data.as_ref().and_then(|x| x.get_current_styles()) {
|
||||
Some(styles) => styles.primary.clone(),
|
||||
None => {
|
||||
// FIXME(bholley): This case subverts the intended semantics of this
|
||||
// function, and exists only to make stylo builds more robust corner-
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue