From d65b29da2710f49b98eb1df93346ec68f5e1b66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 7 Jun 2018 21:07:28 +0200 Subject: [PATCH] style: Add CssPropFlags::SerializedByServo and use it on some simple properties. The idea is to turn the simple properties into a blacklist instead really soon, and fix the offending ones soon after, so that only shorthands and properties with layout dependence (and maybe the scrollbar properties, because the poke at LookAndFeel) are not serialized by Servo. Bug: 1467536 Reviewed-by: xidorn MozReview-Commit-ID: JTLNnmXzny8 --- components/style/properties/data.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/style/properties/data.py b/components/style/properties/data.py index 0ac42b365ee..fca4b536e01 100644 --- a/components/style/properties/data.py +++ b/components/style/properties/data.py @@ -226,6 +226,10 @@ class Longhand(object): # See compute_damage for the various values this can take self.servo_restyle_damage = servo_restyle_damage + @staticmethod + def type(): + return "longhand" + def experimental(self, product): if product == "gecko": return bool(self.gecko_pref) @@ -361,6 +365,10 @@ class Shorthand(object): animatable = property(get_animatable) transitionable = property(get_transitionable) + @staticmethod + def type(): + return "shorthand" + def experimental(self, product): if product == "gecko": return bool(self.gecko_pref) @@ -392,6 +400,10 @@ class Alias(object): self.allowed_in_page_rule = original.allowed_in_page_rule self.allowed_in_keyframe_block = original.allowed_in_keyframe_block + @staticmethod + def type(): + return "alias" + def experimental(self, product): if product == "gecko": return bool(self.gecko_pref)