mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Expose logical props in computed style.
Bug: 1116638 Reviewed-by: xidorn Differential Revision: https://phabricator.services.mozilla.com/D1862
This commit is contained in:
parent
6483a89848
commit
28c9820dd9
1 changed files with 4 additions and 0 deletions
|
@ -410,6 +410,7 @@ pub struct NonCustomPropertyId(usize);
|
|||
|
||||
impl NonCustomPropertyId {
|
||||
#[cfg(feature = "gecko")]
|
||||
#[inline]
|
||||
fn to_nscsspropertyid(self) -> nsCSSPropertyID {
|
||||
static MAP: [nsCSSPropertyID; ${len(data.longhands) + len(data.shorthands) + len(data.all_aliases())}] = [
|
||||
% for property in data.longhands + data.shorthands + data.all_aliases():
|
||||
|
@ -1710,6 +1711,9 @@ impl PropertyId {
|
|||
}
|
||||
|
||||
/// Returns a property id from Gecko's nsCSSPropertyID.
|
||||
///
|
||||
/// TODO(emilio): We should be able to make this a single integer cast to
|
||||
/// `NonCustomPropertyId`.
|
||||
#[cfg(feature = "gecko")]
|
||||
#[allow(non_upper_case_globals)]
|
||||
pub fn from_nscsspropertyid(id: nsCSSPropertyID) -> Result<Self, ()> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue