aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-12-01 20:10:09 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-12-02 03:23:22 +0100
commitd570fc81640d9a608a12b98e6a24c116cfff7545 (patch)
tree106ff787605901c844ef3fd7e2f47b8d2efe8a60 /ports
parent49e6594bc9f4c8178175232ab4a61581144dfa8e (diff)
downloadservo-d570fc81640d9a608a12b98e6a24c116cfff7545.tar.gz
servo-d570fc81640d9a608a12b98e6a24c116cfff7545.zip
style: Remove pretty useless layer of abstraction.
Diffstat (limited to 'ports')
-rw-r--r--ports/geckolib/glue.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs
index 35ca8d0f2fd..3a1af21f726 100644
--- a/ports/geckolib/glue.rs
+++ b/ports/geckolib/glue.rs
@@ -121,9 +121,9 @@ use style::properties::{CascadeFlags, ComputedValues, DeclarationSource, Importa
use style::properties::{LonghandId, LonghandIdSet, PropertyDeclaration, PropertyDeclarationBlock, PropertyId};
use style::properties::{PropertyDeclarationId, ShorthandId};
use style::properties::{SourcePropertyDeclaration, StyleBuilder};
+use style::properties::{parse_one_declaration_into, parse_style_attribute};
use style::properties::animated_properties::AnimationValue;
use style::properties::animated_properties::compare_property_priority;
-use style::properties::parse_one_declaration_into;
use style::rule_cache::RuleCacheConditions;
use style::rule_tree::{CascadeLevel, StrongRuleNode, StyleSource};
use style::selector_parser::{PseudoElementCascadeType, SelectorImpl};
@@ -2583,8 +2583,13 @@ pub extern "C" fn Servo_ParseStyleAttribute(
let reporter = ErrorReporter::new(ptr::null_mut(), loader, raw_extra_data);
let url_data = unsafe { RefPtr::from_ptr_ref(&raw_extra_data) };
Arc::new(global_style_data.shared_lock.wrap(
- GeckoElement::parse_style_attribute(value, url_data, quirks_mode.into(), &reporter)))
- .into_strong()
+ parse_style_attribute(
+ value,
+ url_data,
+ &reporter,
+ quirks_mode.into(),
+ )
+ )).into_strong()
}
#[no_mangle]