style: Remove unused style constant.

Also remove specified-value-only keywords, since those are handled
only in Rust code and C++ doesn't need to know about them.

Differential Revision: https://phabricator.services.mozilla.com/D9634
This commit is contained in:
Emilio Cobos Álvarez 2018-10-24 20:32:16 +00:00
parent 176d984b3b
commit 26040d1b00
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -488,12 +488,7 @@ impl TextAlign {
/// Convert an enumerated value coming from Gecko to a `TextAlign`.
#[cfg(feature = "gecko")]
pub fn from_gecko_keyword(kw: u32) -> Self {
use gecko_bindings::structs::NS_STYLE_TEXT_ALIGN_MATCH_PARENT;
if kw == NS_STYLE_TEXT_ALIGN_MATCH_PARENT {
TextAlign::MatchParent
} else {
TextAlign::Keyword(TextAlignKeyword::from_gecko_keyword(kw))
}
TextAlign::Keyword(TextAlignKeyword::from_gecko_keyword(kw))
}
}