Closed Bug 1447827 Opened 7 years ago Closed 7 years ago

Unify RestyleManager and ServoRestyleManager.

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(5 files)

We can do it now that GeckoRestyleManager is gone.
[Triage 2018/03/23 - P3]
Priority: -- → P3
Assignee: nobody → emilio
Comment on attachment 8965526 [details] Bug 1447827: Move members from ServoRestyleManager to RestyleManager. https://reviewboard.mozilla.org/r/234318/#review239904 r=me with comments addressed. ::: layout/base/RestyleManager.h:29 (Diff revision 2) > +class nsStyleChangeList; > class nsStyleChangeList; > > namespace mozilla { > > class EventStates; You probably should still add forward declaration for `ServoStyleSet` (that you are removing from ServoRestyleManager). It doesn't seem to me this is defined in any headers this includes. ::: layout/base/RestyleManager.h:346 (Diff revision 2) > - inline void ProcessPendingRestyles(); > - inline void ContentStateChanged(nsIContent* aContent, > - EventStates aStateMask); > - inline void AttributeWillChange(dom::Element* aElement, > + > + void ProcessPendingRestyles(); > + void ProcessAllPendingAttributeAndStateInvalidations(); > + > + void ContentStateChanged(nsIContent* aContent, EventStates aStateMask); > + void AttributeWillChange(Element* aElement, `dom::`? ::: layout/base/RestyleManager.h:457 (Diff revision 2) > MOZ_ASSERT(!mAnimationsWithDestroyedFrame, > "leaving dangling pointers from AnimationsWithDestroyedFrame"); The destructor of the old `ServoRestyleManager` asserts `!mReentrantChanges`, maybe you should add it here?
Attachment #8965526 - Flags: review?(xidorn+moz) → review+
Comment on attachment 8965527 [details] Bug 1447827: Move ServoRestyleManager.cpp into RestyleManager.cpp. https://reviewboard.mozilla.org/r/234320/#review239906
Attachment #8965527 - Flags: review?(xidorn+moz) → review+
Attachment #8965528 - Flags: review?(xidorn+moz) → review+
Comment on attachment 8965526 [details] Bug 1447827: Move members from ServoRestyleManager to RestyleManager. https://reviewboard.mozilla.org/r/234318/#review239904 > You probably should still add forward declaration for `ServoStyleSet` (that you are removing from ServoRestyleManager). It doesn't seem to me this is defined in any headers this includes. Good point, will fix. > `dom::`? There's a `typedef mozilla::dom::Element Element;` at the beginning of RestyleManager. > The destructor of the old `ServoRestyleManager` asserts `!mReentrantChanges`, maybe you should add it here? Yup, indeed.
Attachment #8965531 - Flags: review?(xidorn+moz) → review+
Comment on attachment 8965532 [details] Bug 1447827: Rename the reparenting stuff. https://reviewboard.mozilla.org/r/234330/#review239918 ::: layout/base/RestyleManager.cpp:3424 (Diff revision 1) > return; > } > > bool isElement = aFrame->GetContent()->IsElement(); > > - // We probably don't want to initiate transitions from > + // We probably don't want to initiate transitions from ReparentComputedStyle, ReparentComputedStyleForFirstLetter? ::: layout/base/RestyleManager.cpp:3473 (Diff revision 1) > } > } > ComputedStyle* layoutParent = providerFrame->Style(); > > RefPtr<ComputedStyle> newStyle = > aStyleSet.ReparentComputedStyle(oldStyle, You may also want to rename `ServoStyleSet::ReparentComputedStyle`?
Attachment #8965532 - Flags: review?(xidorn+moz) → review+
Pushed by ecoal95@gmail.com: https://hg.mozilla.org/integration/autoland/rev/750575e7a835 Move members from ServoRestyleManager to RestyleManager. r=xidorn https://hg.mozilla.org/integration/autoland/rev/03d83fe60bb9 Move ServoRestyleManager.cpp into RestyleManager.cpp. r=xidorn https://hg.mozilla.org/integration/autoland/rev/a32957ee77a6 Remove ServoRestyleManager. r=xidorn https://hg.mozilla.org/integration/autoland/rev/533fdeb7d3bb Remove unused hover generation. r=xidorn https://hg.mozilla.org/integration/autoland/rev/99569a0d505e Rename the reparenting stuff. r=xidorn
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: