style: Convert GetStringValue to use Servo.

And remove gPropertyTable / kCSSRawProperties while at it.

Differential Revision: https://phabricator.services.mozilla.com/D2516
This commit is contained in:
Emilio Cobos Álvarez 2018-07-30 18:04:05 +02:00
parent 694d00eb5e
commit eb49995737
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -427,9 +427,10 @@ impl NonCustomPropertyId {
unsafe { ::std::mem::transmute(self.0 as i32) }
}
/// Convert an `nsCSSPropertyID` into a `NonCustomPropertyId`.
#[cfg(feature = "gecko")]
#[inline]
fn from_nscsspropertyid(prop: nsCSSPropertyID) -> Result<Self, ()> {
pub fn from_nscsspropertyid(prop: nsCSSPropertyID) -> Result<Self, ()> {
let prop = prop as i32;
if prop < 0 {
return Err(());
@ -443,7 +444,7 @@ impl NonCustomPropertyId {
/// Get the property name.
#[inline]
fn name(self) -> &'static str {
pub fn name(self) -> &'static str {
static MAP: [&'static str; ${len(data.longhands) + len(data.shorthands) + len(data.all_aliases())}] = [
% for property in data.longhands + data.shorthands + data.all_aliases():
"${property.name}",