aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/rule_tree
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2017-06-08 10:42:27 +1000
committerXidorn Quan <me@upsuper.org>2017-06-08 12:59:22 +1000
commit7568a196885ed1f1ed2a38aa30d733e66a8e866e (patch)
tree730929c05ec3141b49ceab59f3e8dfe14b2a5127 /components/style/rule_tree
parentbf77f81ed639af0e9b305f6672db696f8a144ff4 (diff)
downloadservo-7568a196885ed1f1ed2a38aa30d733e66a8e866e.tar.gz
servo-7568a196885ed1f1ed2a38aa30d733e66a8e866e.zip
Merge CSSColor into Color.
Diffstat (limited to 'components/style/rule_tree')
-rw-r--r--components/style/rule_tree/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs
index 37e7334b9db..c51f6f94ff7 100644
--- a/components/style/rule_tree/mod.rs
+++ b/components/style/rule_tree/mod.rs
@@ -912,7 +912,6 @@ impl StrongRuleNode {
-> bool
where E: ::dom::TElement
{
- use cssparser::RGBA;
use gecko_bindings::structs::{NS_AUTHOR_SPECIFIED_BACKGROUND, NS_AUTHOR_SPECIFIED_BORDER};
use gecko_bindings::structs::{NS_AUTHOR_SPECIFIED_PADDING, NS_AUTHOR_SPECIFIED_TEXT_SHADOW};
use properties::{CSSWideKeyword, LonghandId, LonghandIdSet};
@@ -1083,7 +1082,7 @@ impl StrongRuleNode {
if properties.contains(id) {
if !author_colors_allowed {
if let PropertyDeclaration::BackgroundColor(ref color) = *declaration {
- return color.parsed == Color::RGBA(RGBA::transparent())
+ return *color == Color::transparent()
}
}
return true