Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Sync changes from mozilla-central. #21036

Merged
merged 40 commits into from Jun 12, 2018
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ea5417b
style: Make contain:paint trigger clipping independent of the overflo…
muhammedyusuf-sermet May 30, 2018
35a1a30
style: Remove invalid assertion.
emilio Jun 4, 2018
6940787
style: Make the transition-property code make more sense.
emilio Jun 1, 2018
f6f421f
style: Hide multiple -moz-window-* properties from content.
emilio Jun 1, 2018
90ef560
style: Move TransitionProperty where it belongs.
emilio Jun 1, 2018
ce5a85d
style: Use custom_properties::Name in TransitionProperty.
emilio Jun 4, 2018
1da798e
style: Introduce css(parse_condition).
emilio Jun 2, 2018
cf7b10a
style: Hide -moz- display values from content behind a pref.
emilio Jun 2, 2018
618eef7
style: Don't hide -moz-box / -moz-inline-box yet.
emilio Jun 2, 2018
0f1b793
style: Minor indentation cleanup.
emilio Jun 4, 2018
4b10b2a
style: Update smallbitvec to v2.1.1.
emilio Jun 4, 2018
2baa794
style: Sprinkle some inline in methods that are just pointer-chasing …
emilio Jun 4, 2018
710184b
style: Sprinkle some #[inline] on methods that have inline fast-paths.
emilio Jun 4, 2018
f829300
style: Don't look at the rule type from value parsing.
emilio Jun 1, 2018
8d069d1
style: Work around a bindgen bug on Android.
emilio Jun 4, 2018
8821ad7
style: Make pseudo-elements work with :host.
emilio Jun 4, 2018
2c0a19e
style: Move some parsing-only attributes to use #[parse(..)] instead …
emilio Jun 4, 2018
d461a7d
style: Make the threadsafe refcounting macros more reusable.
emilio Jun 4, 2018
63ca2a8
style: Make clearing atoms slightly more ergonomic.
emilio Jun 4, 2018
c6e43c0
style: Avoid useless allocations in custom property name serialization.
emilio Jun 5, 2018
7529788
style: Make getting a property name explicitly an indexing operation.
emilio Jun 4, 2018
915c872
style: Remove PropertyId::name.
emilio Jun 4, 2018
3816143
style: Use Atomic<bool> for the staticpref version of layout.css.font…
bzbarsky Jun 6, 2018
255fe05
style: Extend StyleComplexColor to support additive blending.
djg May 23, 2018
9c51d31
style: Inline some trivial bits.
emilio Jun 4, 2018
e052666
style: Fix a typo.
emilio Jun 5, 2018
6ca324f
style: Remove unused PropertyDeclarationBlock::set_importance.
emilio Jun 5, 2018
3c7fb2a
style: Add a before-change callback to remove_property.
emilio Jun 5, 2018
cdbc409
style: Trivially simplify a condition.
emilio Jun 5, 2018
314b14d
style: Fix nsStyleBorder::mBorderColor for GCC.
djg Jun 5, 2018
5f74a15
style: Extract {animated,computed}::Color common parts.
djg Jun 5, 2018
011cad2
style: Add a Servo API to get the serialized style of a property.
emilio Jun 7, 2018
d65b29d
style: Add CssPropFlags::SerializedByServo and use it on some simple …
emilio Jun 7, 2018
572a931
style: Add diagnostics.
emilio Jun 9, 2018
078df23
style: Update cssparser.
emilio Jun 11, 2018
e94395b
style_derive: Fix tidy lint.
emilio Jun 11, 2018
ab76003
style: Fix servo build.
emilio Jun 11, 2018
4cd16ee
style: Derive Animate for ComplexColorRatios.
emilio Jun 11, 2018
0d0b0e0
Update WPT expectations.
emilio Jun 12, 2018
2106cc4
style: Update cssparser again to avoid intermittent stack overflows o…
emilio Jun 12, 2018
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

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
  • Loading branch information
emilio committed Jun 12, 2018
commit d65b29da2710f49b98eb1df93346ec68f5e1b66f
@@ -226,6 +226,10 @@ def __init__(self, style_struct, name, spec=None, animation_value_type=None, key
# 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 @@ def get_transitionable(self):
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 @@ def __init__(self, name, original, gecko_pref):
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)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.