Closed Bug 1364264 Opened 7 years ago Closed 7 years ago

stylo: Check ElementHasAnimations before calling Gecko_ElementHasAnimations

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hiro, Assigned: hiro)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Comment on attachment 8867013 [details]
Bug 1364264 - Check ElementHasAnimations flag in rust side.

https://reviewboard.mozilla.org/r/138618/#review141882

Nice!

::: servo/components/style/gecko/wrapper.rs:412
(Diff revision 1)
>          }
>      }
> +
> +    fn may_have_animations(&self) -> bool {
> +        use gecko_bindings::structs::nsINode_BooleanFlag;
> +        self.as_node().bool_flags() & (1u32 << nsINode_BooleanFlag::ElementHasAnimations as u32) != 0

Nit: This line appears to be > 100 chars
Attachment #8867013 - Flags: review?(bbirtles) → review+
Thank you for the review!

https://github.com/servo/servo/pull/16826
https://hg.mozilla.org/integration/autoland/rev/2c47afd31dd132c9478a3e520ef02f55c53434ef
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: