diff options
author | Hiroyuki Ikezoe <hikezoe@mozilla.com> | 2017-11-22 11:02:46 +0900 |
---|---|---|
committer | Hiroyuki Ikezoe <hikezoe@mozilla.com> | 2017-11-22 11:06:05 +0900 |
commit | dcedf11013ce1498d17213c7e894f646ec2cdd31 (patch) | |
tree | 84eaed782532fdade022c0715dc04bfa4873e918 /ports | |
parent | 37fa711657e6684e234e855be03470a0e17307de (diff) | |
download | servo-dcedf11013ce1498d17213c7e894f646ec2cdd31.tar.gz servo-dcedf11013ce1498d17213c7e894f646ec2cdd31.zip |
Pass element or pseudo element to Servo_StyleSet_GetBaseComputedValuesForElement()
Diffstat (limited to 'ports')
-rw-r--r-- | ports/geckolib/glue.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index cca21a5c44e..15ee1e945fc 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -789,7 +789,6 @@ pub extern "C" fn Servo_StyleSet_GetBaseComputedValuesForElement( element: RawGeckoElementBorrowed, computed_values: ServoStyleContextBorrowed, snapshots: *const ServoElementSnapshotTable, - pseudo_type: CSSPseudoElementType ) -> ServoStyleContextStrong { debug_assert!(!snapshots.is_null()); let computed_values = unsafe { ArcBorrow::from_ref(computed_values) }; @@ -807,21 +806,6 @@ pub extern "C" fn Servo_StyleSet_GetBaseComputedValuesForElement( let element = GeckoElement(element); - let element_data = match element.borrow_data() { - Some(data) => data, - None => return computed_values.clone_arc().into(), - }; - - if let Some(pseudo) = PseudoElement::from_pseudo_type(pseudo_type) { - let styles = &element_data.styles; - // This style already doesn't have animations. - return styles - .pseudos - .get(&pseudo) - .expect("GetBaseComputedValuesForElement for an unexisting pseudo?") - .clone().into(); - } - let global_style_data = &*GLOBAL_STYLE_DATA; let guard = global_style_data.shared_lock.read(); let shared = create_shared_context(&global_style_data, |