mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +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
|
|
@ -13,8 +13,7 @@
|
|||
#include "nsGkAtoms.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "nsFrameManager.h"
|
||||
#include "mozilla/RestyleManagerHandle.h"
|
||||
#include "mozilla/RestyleManagerHandleInlines.h"
|
||||
#include "mozilla/RestyleManager.h"
|
||||
#include "nsPlaceholderFrame.h"
|
||||
#include "nsCSSFrameConstructor.h"
|
||||
|
||||
|
|
@ -81,7 +80,7 @@ nsFirstLetterFrame::SetInitialChildList(ChildListID aListID,
|
|||
{
|
||||
MOZ_ASSERT(aListID == kPrincipalList, "Principal child list is the only "
|
||||
"list that nsFirstLetterFrame should set via this function");
|
||||
RestyleManagerHandle restyleManager = PresContext()->RestyleManager();
|
||||
RestyleManager* restyleManager = PresContext()->RestyleManager();
|
||||
|
||||
for (nsFrameList::Enumerator e(aChildList); !e.AtEnd(); e.Next()) {
|
||||
NS_ASSERTION(e.get()->GetParent() == this, "Unexpected parent");
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
#include "nsPresContext.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "nsCSSAnonBoxes.h"
|
||||
#include "mozilla/RestyleManagerHandle.h"
|
||||
#include "mozilla/RestyleManagerHandleInlines.h"
|
||||
#include "mozilla/RestyleManager.h"
|
||||
#include "nsDisplayList.h"
|
||||
#include "mozilla/Likely.h"
|
||||
#include "SVGTextFrame.h"
|
||||
|
|
@ -346,7 +345,7 @@ ReparentChildListStyle(nsPresContext* aPresContext,
|
|||
const nsFrameList::Slice& aFrames,
|
||||
nsIFrame* aParentFrame)
|
||||
{
|
||||
RestyleManagerHandle restyleManager = aPresContext->RestyleManager();
|
||||
RestyleManager* restyleManager = aPresContext->RestyleManager();
|
||||
|
||||
for (nsFrameList::Enumerator e(aFrames); !e.AtEnd(); e.Next()) {
|
||||
NS_ASSERTION(e.get()->GetParent() == aParentFrame, "Bogus parentage");
|
||||
|
|
@ -493,7 +492,7 @@ nsInlineFrame::DrainSelfOverflowListInternal(DrainFlags aFlags)
|
|||
if (!(aFlags & eDontReparentFrames)) {
|
||||
nsIFrame* firstChild = overflowFrames->FirstChild();
|
||||
const bool doReparentSC = (aFlags & eInFirstLine);
|
||||
RestyleManagerHandle restyleManager = PresContext()->RestyleManager();
|
||||
RestyleManager* restyleManager = PresContext()->RestyleManager();
|
||||
for (nsIFrame* f = firstChild; f; f = f->GetNextSibling()) {
|
||||
f->SetParent(this);
|
||||
if (doReparentSC) {
|
||||
|
|
@ -560,7 +559,7 @@ nsInlineFrame::ReflowFrames(nsPresContext* aPresContext,
|
|||
|
||||
nsLineLayout* lineLayout = aReflowInput.mLineLayout;
|
||||
bool inFirstLine = aReflowInput.mLineLayout->GetInFirstLine();
|
||||
RestyleManagerHandle restyleManager = aPresContext->RestyleManager();
|
||||
RestyleManager* restyleManager = aPresContext->RestyleManager();
|
||||
WritingMode frameWM = aReflowInput.GetWritingMode();
|
||||
WritingMode lineWM = aReflowInput.mLineLayout->mRootSpan->mWritingMode;
|
||||
LogicalMargin framePadding = aReflowInput.ComputedLogicalBorderPadding();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue