mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
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:
parent
176d984b3b
commit
26040d1b00
1 changed files with 1 additions and 6 deletions
|
@ -488,12 +488,7 @@ impl TextAlign {
|
||||||
/// Convert an enumerated value coming from Gecko to a `TextAlign`.
|
/// Convert an enumerated value coming from Gecko to a `TextAlign`.
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
pub fn from_gecko_keyword(kw: u32) -> Self {
|
pub fn from_gecko_keyword(kw: u32) -> Self {
|
||||||
use gecko_bindings::structs::NS_STYLE_TEXT_ALIGN_MATCH_PARENT;
|
TextAlign::Keyword(TextAlignKeyword::from_gecko_keyword(kw))
|
||||||
if kw == NS_STYLE_TEXT_ALIGN_MATCH_PARENT {
|
|
||||||
TextAlign::MatchParent
|
|
||||||
} else {
|
|
||||||
TextAlign::Keyword(TextAlignKeyword::from_gecko_keyword(kw))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue