Closed
Bug 1447827
Opened 7 years ago
Closed 7 years ago
Unify RestyleManager and ServoRestyleManager.
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(5 files)
59 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
We can do it now that GeckoRestyleManager is gone.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → emilio
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 10•7 years ago
|
||
mozreview-review |
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 11•7 years ago
|
||
mozreview-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+
Comment 12•7 years ago
|
||
mozreview-review |
Comment on attachment 8965528 [details]
Bug 1447827: Remove ServoRestyleManager.
https://reviewboard.mozilla.org/r/234322/#review239908
Attachment #8965528 -
Flags: review?(xidorn+moz) → review+
Assignee | ||
Comment 13•7 years ago
|
||
mozreview-review-reply |
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.
Comment 14•7 years ago
|
||
mozreview-review |
Comment on attachment 8965531 [details]
Bug 1447827: Remove unused hover generation.
https://reviewboard.mozilla.org/r/234328/#review239916
Attachment #8965531 -
Flags: review?(xidorn+moz) → review+
Comment 15•7 years ago
|
||
mozreview-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+
Comment 16•7 years ago
|
||
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
Comment 17•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/750575e7a835
https://hg.mozilla.org/mozilla-central/rev/03d83fe60bb9
https://hg.mozilla.org/mozilla-central/rev/a32957ee77a6
https://hg.mozilla.org/mozilla-central/rev/533fdeb7d3bb
https://hg.mozilla.org/mozilla-central/rev/99569a0d505e
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•