mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #2488 - Part 4: Remove the RestyleManagerHandle smart pointer class
This commit is contained in:
parent
4bf43b8fb4
commit
6803c1f710
24 changed files with 55 additions and 414 deletions
|
|
@ -42,8 +42,6 @@
|
|||
#include "nsLayoutUtils.h"
|
||||
#include "LayoutLogging.h"
|
||||
#include "mozilla/RestyleManager.h"
|
||||
#include "mozilla/RestyleManagerHandle.h"
|
||||
#include "mozilla/RestyleManagerHandleInlines.h"
|
||||
|
||||
#include "nsIDOMNode.h"
|
||||
#include "nsISelection.h"
|
||||
|
|
@ -677,7 +675,7 @@ nsFrame::DestroyFrom(nsIFrame* aDestructRoot)
|
|||
// because what matters is whether the new style (not the old)
|
||||
// specifies CSS transitions.
|
||||
RestyleManager::ReframingStyleContexts* rsc =
|
||||
presContext->RestyleManager()->AsGecko()->GetReframingStyleContexts();
|
||||
presContext->RestyleManager()->GetReframingStyleContexts();
|
||||
if (rsc) {
|
||||
rsc->Put(mContent, mStyleContext);
|
||||
}
|
||||
|
|
@ -688,7 +686,7 @@ nsFrame::DestroyFrom(nsIFrame* aDestructRoot)
|
|||
// If no new frame for this element is created by the end of the
|
||||
// restyling process, stop animations and transitions for this frame
|
||||
RestyleManager::AnimationsWithDestroyedFrame* adf =
|
||||
presContext->RestyleManager()->AsGecko()->GetAnimationsWithDestroyedFrame();
|
||||
presContext->RestyleManager()->GetAnimationsWithDestroyedFrame();
|
||||
// AnimationsWithDestroyedFrame only lives during the restyling process.
|
||||
if (adf) {
|
||||
adf->Put(mContent, mStyleContext);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue