mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 919729 - Remove unnecessary MOZILLA_INTERNAL_API checks from nsIFrame.h. r=bz
This commit is contained in:
parent
d4ad11cf62
commit
b1a40a17a2
@ -345,7 +345,7 @@ NS_MergeReflowStatusInto(nsReflowStatus* aPrimary, nsReflowStatus aSecondary)
|
||||
}
|
||||
|
||||
void
|
||||
nsWeakFrame::InitInternal(nsIFrame* aFrame)
|
||||
nsWeakFrame::Init(nsIFrame* aFrame)
|
||||
{
|
||||
Clear(mFrame ? mFrame->PresContext()->GetPresShell() : nullptr);
|
||||
mFrame = aFrame;
|
||||
|
@ -806,11 +806,9 @@ public:
|
||||
#include "nsStyleStructList.h"
|
||||
#undef STYLE_STRUCT
|
||||
|
||||
#ifdef MOZILLA_INTERNAL_API
|
||||
/** Also forward GetVisitedDependentColor to the style context */
|
||||
nscolor GetVisitedDependentColor(nsCSSProperty aProperty)
|
||||
{ return mStyleContext->GetVisitedDependentColor(aProperty); }
|
||||
#endif
|
||||
|
||||
/**
|
||||
* These methods are to access any additional style contexts that
|
||||
@ -3249,29 +3247,7 @@ public:
|
||||
Clear(mFrame ? mFrame->PresContext()->GetPresShell() : nullptr);
|
||||
}
|
||||
private:
|
||||
void InitInternal(nsIFrame* aFrame);
|
||||
|
||||
void InitExternal(nsIFrame* aFrame) {
|
||||
Clear(mFrame ? mFrame->PresContext()->GetPresShell() : nullptr);
|
||||
mFrame = aFrame;
|
||||
if (mFrame) {
|
||||
nsIPresShell* shell = mFrame->PresContext()->GetPresShell();
|
||||
NS_WARN_IF_FALSE(shell, "Null PresShell in nsWeakFrame!");
|
||||
if (shell) {
|
||||
shell->AddWeakFrame(this);
|
||||
} else {
|
||||
mFrame = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Init(nsIFrame* aFrame) {
|
||||
#ifdef MOZILLA_INTERNAL_API
|
||||
InitInternal(aFrame);
|
||||
#else
|
||||
InitExternal(aFrame);
|
||||
#endif
|
||||
}
|
||||
void Init(nsIFrame* aFrame);
|
||||
|
||||
nsWeakFrame* mPrev;
|
||||
nsIFrame* mFrame;
|
||||
|
Loading…
Reference in New Issue
Block a user