aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-05-03 18:47:47 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-05-05 18:53:53 +0200
commit16815bf97fd5a6d84ff03faa8cfaffddd24ca9ef (patch)
tree6aae15771bda5dcb7002263674c3fc042ac1f0ed
parent56688121d3ea29887e1735670693ce2f40550736 (diff)
downloadservo-16815bf97fd5a6d84ff03faa8cfaffddd24ca9ef.tar.gz
servo-16815bf97fd5a6d84ff03faa8cfaffddd24ca9ef.zip
style: Remove code that is no longer called.
Au revoir! Bug: 1458814 Reviewed-by: hiro MozReview-Commit-ID: DjqszUSIzXs
-rw-r--r--ports/geckolib/glue.rs28
1 files changed, 1 insertions, 27 deletions
diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs
index 374941161f6..3b341cadbb5 100644
--- a/ports/geckolib/glue.rs
+++ b/ports/geckolib/glue.rs
@@ -73,7 +73,6 @@ use style::gecko_bindings::bindings::RawGeckoCSSPropertyIDListBorrowed;
use style::gecko_bindings::bindings::RawGeckoComputedKeyframeValuesListBorrowedMut;
use style::gecko_bindings::bindings::RawGeckoComputedTimingBorrowed;
use style::gecko_bindings::bindings::RawGeckoFontFaceRuleListBorrowedMut;
-use style::gecko_bindings::bindings::RawGeckoServoAnimationValueListBorrowed;
use style::gecko_bindings::bindings::RawGeckoServoAnimationValueListBorrowedMut;
use style::gecko_bindings::bindings::RawGeckoServoStyleRuleListBorrowedMut;
use style::gecko_bindings::bindings::RawServoAnimationValueBorrowed;
@@ -129,7 +128,7 @@ use style::invalidation::element::restyle_hints;
use style::media_queries::{MediaList, parse_media_query_list};
use style::parser::{Parse, ParserContext, self};
use style::properties::{ComputedValues, DeclarationSource, Importance};
-use style::properties::{LonghandId, LonghandIdSet, PropertyDeclaration, PropertyDeclarationBlock, PropertyId};
+use style::properties::{LonghandId, LonghandIdSet, PropertyDeclarationBlock, PropertyId};
use style::properties::{PropertyDeclarationId, ShorthandId};
use style::properties::{SourcePropertyDeclaration, StyleBuilder};
use style::properties::{parse_one_declaration_into, parse_style_attribute};
@@ -709,31 +708,6 @@ pub extern "C" fn Servo_AnimationValue_Serialize(
}
#[no_mangle]
-pub unsafe extern "C" fn Servo_Shorthand_AnimationValues_Serialize(
- shorthand_property: nsCSSPropertyID,
- values: RawGeckoServoAnimationValueListBorrowed,
- buffer: *mut nsAString,
-) {
- let property_id = get_property_id_from_nscsspropertyid!(shorthand_property, ());
- let shorthand = match property_id.as_shorthand() {
- Ok(shorthand) => shorthand,
- _ => return,
- };
-
- // Convert RawServoAnimationValue(s) into a vector of PropertyDeclaration
- // so that we can use reference of the PropertyDeclaration without worrying
- // about its lifetime. (longhands_to_css() expects &PropertyDeclaration
- // iterator.)
- let declarations: Vec<PropertyDeclaration> =
- values.iter().map(|v| AnimationValue::as_arc(&&*v.mRawPtr).uncompute()).collect();
-
- let _ = shorthand.longhands_to_css(
- declarations.iter(),
- &mut CssWriter::new(&mut *buffer),
- );
-}
-
-#[no_mangle]
pub extern "C" fn Servo_AnimationValue_GetOpacity(
value: RawServoAnimationValueBorrowed,
) -> f32 {