Closed Bug 1412716 Opened 7 years ago Closed 6 years ago

Drop KeyframeEffectReadOnly::mIsComposingStyle flag

Categories

(Core :: DOM: Animation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(8 files)

Once we remove old gecko style system in bug 1395112, we don't need to worry about this recursive calls for ComposeStyle().
Comment on attachment 8966372 [details]
Bug 1412716 - Rewrite a comment without using |aStyle|.

https://reviewboard.mozilla.org/r/235062/#review240764
Attachment #8966372 - Flags: review?(emilio) → review+
Comment on attachment 8966373 [details]
Bug 1412716 - De-templatize Animation::ComposeStyle and relevant stuff.

https://reviewboard.mozilla.org/r/235064/#review240766
Attachment #8966373 - Flags: review?(emilio) → review+
Comment on attachment 8966374 [details]
Bug 1412716 - Drop KeyframeEffectReadOnly::mIsComposingStyle.

https://reviewboard.mozilla.org/r/235066/#review240768
Attachment #8966374 - Flags: review?(emilio) → review+
Comment on attachment 8966375 [details]
Bug 1412716 - De-templatize EffectCompositor::UpdateEffectProperties and relevant stuff.

https://reviewboard.mozilla.org/r/235068/#review240770
Attachment #8966375 - Flags: review?(emilio) → review+
Comment on attachment 8966376 [details]
Bug 1412716 - De-templatize functions used for in nsAnimationManager.

https://reviewboard.mozilla.org/r/235070/#review240772
Attachment #8966376 - Flags: review?(emilio) → review+
Comment on attachment 8966377 [details]
Bug 1412716 - De-templatize functions in nsTransitionManager.

https://reviewboard.mozilla.org/r/235072/#review240774

::: layout/style/nsTransitionManager.h:353
(Diff revision 1)
> -                               const nsStyleDisplay& aStyleDisplay,
> +                                    const nsStyleDisplay& aStyleDisplay,
> -                               uint32_t transitionIdx,
> +                                    uint32_t transitionIdx,
> -                               mozilla::dom::Element* aElement,
> +                                    mozilla::dom::Element* aElement,
> -                               mozilla::CSSPseudoElementType aPseudoType,
> +                                    mozilla::CSSPseudoElementType aPseudoType,
> -                               CSSTransitionCollection*& aElementTransitions,
> +                                    CSSTransitionCollection*& aElementTransitions,
> -                               StyleType aOldStyle,
> +                                    const mozilla::ComputedStyle* aOldStyle,

If you want to use const references here and in relevant places, that'd be awesome :)
Attachment #8966377 - Flags: review?(emilio) → review+
Comment on attachment 8966378 [details]
Bug 1412716 - Drop redundant forward declarations of ComputedStyle.

https://reviewboard.mozilla.org/r/235074/#review240776
Attachment #8966378 - Flags: review?(emilio) → review+
Comment on attachment 8966379 [details]
Bug 1412716 - Drop forward declarations of GeckoComputedStyle.

https://reviewboard.mozilla.org/r/235076/#review240778
Attachment #8966379 - Flags: review?(emilio) → review+
(In reply to Emilio Cobos Álvarez [:emilio] from comment #15)
> Comment on attachment 8966377 [details]
> Bug 1412716 - De-templatize functions in nsTransitionManager.
> 
> https://reviewboard.mozilla.org/r/235072/#review240774
> 
> ::: layout/style/nsTransitionManager.h:353
> (Diff revision 1)
> > -                               const nsStyleDisplay& aStyleDisplay,
> > +                                    const nsStyleDisplay& aStyleDisplay,
> > -                               uint32_t transitionIdx,
> > +                                    uint32_t transitionIdx,
> > -                               mozilla::dom::Element* aElement,
> > +                                    mozilla::dom::Element* aElement,
> > -                               mozilla::CSSPseudoElementType aPseudoType,
> > +                                    mozilla::CSSPseudoElementType aPseudoType,
> > -                               CSSTransitionCollection*& aElementTransitions,
> > +                                    CSSTransitionCollection*& aElementTransitions,
> > -                               StyleType aOldStyle,
> > +                                    const mozilla::ComputedStyle* aOldStyle,
> 
> If you want to use const references here and in relevant places, that'd be
> awesome :)

Done. :)
Pushed by hikezoe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/10477098a165
Rewrite a comment without using |aStyle|. r=emilio
https://hg.mozilla.org/integration/autoland/rev/9a88cf9d4308
De-templatize Animation::ComposeStyle and relevant stuff. r=emilio
https://hg.mozilla.org/integration/autoland/rev/607f333a9cd7
Drop KeyframeEffectReadOnly::mIsComposingStyle. r=emilio
https://hg.mozilla.org/integration/autoland/rev/187de5006e65
De-templatize EffectCompositor::UpdateEffectProperties and relevant stuff. r=emilio
https://hg.mozilla.org/integration/autoland/rev/471f6c02fe7e
De-templatize functions used for in nsAnimationManager. r=emilio
https://hg.mozilla.org/integration/autoland/rev/75c4a4f95797
De-templatize functions in nsTransitionManager. r=emilio
https://hg.mozilla.org/integration/autoland/rev/3da37134c45a
Drop redundant forward declarations of ComputedStyle. r=emilio
https://hg.mozilla.org/integration/autoland/rev/426b3bc75674
Drop forward declarations of GeckoComputedStyle. r=emilio
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: