mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Handle None_ => None enum changes
This commit is contained in:
parent
957893bdc2
commit
3fe13a29f4
4 changed files with 17 additions and 20 deletions
|
@ -46,12 +46,9 @@ class Keyword(object):
|
|||
|
||||
def gecko_constant(self, value):
|
||||
if self.gecko_enum_prefix:
|
||||
if value == "none":
|
||||
return self.gecko_enum_prefix + "::None_"
|
||||
else:
|
||||
parts = value.replace("-moz-", "").split("-")
|
||||
parts = [p.title() for p in parts]
|
||||
return self.gecko_enum_prefix + "::" + "".join(parts)
|
||||
parts = value.replace("-moz-", "").split("-")
|
||||
parts = [p.title() for p in parts]
|
||||
return self.gecko_enum_prefix + "::" + "".join(parts)
|
||||
else:
|
||||
return self.gecko_constant_prefix + "_" + value.replace("-moz-", "").replace("-", "_").upper()
|
||||
|
||||
|
|
|
@ -1545,7 +1545,7 @@ fn static_assert() {
|
|||
// clean up existing struct
|
||||
unsafe { Gecko_DestroyClipPath(clip_path) };
|
||||
|
||||
clip_path.mType = StyleShapeSourceType::None_;
|
||||
clip_path.mType = StyleShapeSourceType::None;
|
||||
|
||||
match v {
|
||||
ShapeSource::Url(..) => println!("stylo: clip-path: url() not yet implemented"),
|
||||
|
@ -1646,7 +1646,7 @@ fn static_assert() {
|
|||
let ref clip_path = self.gecko.mClipPath;
|
||||
|
||||
match clip_path.mType {
|
||||
StyleShapeSourceType::None_ => ShapeSource::None,
|
||||
StyleShapeSourceType::None => ShapeSource::None,
|
||||
StyleShapeSourceType::Box => {
|
||||
ShapeSource::Box(clip_path.mReferenceBox.into())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue