зеркало из https://github.com/mozilla/pjs.git
Fixing bug 375175. Get rid of unused function nsSVGOuterSVGFrame::InitiateReflow. Patch by Eli Friedman <sharparrow1@yahoo.com>. r=jwatt@jwatt.org, sr=tor@acm.org, a=bzbarsky@mit.edu
This commit is contained in:
Родитель
9419feb114
Коммит
9f81ec0768
|
@ -148,7 +148,6 @@ NS_NewSVGOuterSVGFrame(nsIPresShell* aPresShell, nsIContent* aContent, nsStyleCo
|
|||
nsSVGOuterSVGFrame::nsSVGOuterSVGFrame(nsStyleContext* aContext)
|
||||
: nsSVGOuterSVGFrameBase(aContext),
|
||||
mRedrawSuspendCount(0),
|
||||
mNeedsReflow(PR_FALSE),
|
||||
mViewportInitialized(PR_FALSE)
|
||||
{
|
||||
}
|
||||
|
@ -510,16 +509,12 @@ nsSVGOuterSVGFrame::UnsuspendRedraw()
|
|||
#ifdef DEBUG
|
||||
// printf("unsuspend redraw (count=%d)\n", mRedrawSuspendCount);
|
||||
#endif
|
||||
|
||||
NS_ASSERTION(mRedrawSuspendCount >=0, "unbalanced suspend count!");
|
||||
|
||||
if (--mRedrawSuspendCount > 0)
|
||||
return NS_OK;
|
||||
|
||||
NS_ASSERTION(mRedrawSuspendCount >=0, "unbalanced suspend count!");
|
||||
|
||||
// If we need to reflow, do so before we update any of our
|
||||
// children. Reflows are likely to affect the display of children:
|
||||
if (mNeedsReflow)
|
||||
InitiateReflow();
|
||||
|
||||
|
||||
for (nsIFrame* kid = mFrames.FirstChild(); kid;
|
||||
kid = kid->GetNextSibling()) {
|
||||
nsISVGChildFrame* SVGFrame=nsnull;
|
||||
|
@ -601,20 +596,6 @@ nsSVGOuterSVGFrame::GetCanvasTM()
|
|||
//----------------------------------------------------------------------
|
||||
// Implementation helpers
|
||||
|
||||
void nsSVGOuterSVGFrame::InitiateReflow()
|
||||
{
|
||||
mNeedsReflow = PR_FALSE;
|
||||
|
||||
nsIPresShell* presShell = PresContext()->PresShell();
|
||||
presShell->FrameNeedsReflow(this, nsIPresShell::eStyleChange,
|
||||
NS_FRAME_IS_DIRTY);
|
||||
// XXXbz why is this synchronously flushing reflows, exactly? If it
|
||||
// needs to, why is it not using the presshell's reflow batching
|
||||
// instead of hacking its own?
|
||||
presShell->FlushPendingNotifications(Flush_OnlyReflow);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
nsSVGOuterSVGFrame::CalculateAvailableSpace(nsRect *maxRect,
|
||||
nsRect *preferredRect,
|
||||
|
|
|
@ -125,8 +125,6 @@ public:
|
|||
virtual already_AddRefed<nsIDOMSVGMatrix> GetCanvasTM();
|
||||
|
||||
protected:
|
||||
// implementation helpers:
|
||||
void InitiateReflow();
|
||||
|
||||
void CalculateAvailableSpace(nsRect *maxRect, nsRect *preferredRect,
|
||||
nsPresContext* aPresContext,
|
||||
|
@ -140,7 +138,6 @@ protected:
|
|||
nsCOMPtr<nsIDOMSVGPoint> mCurrentTranslate;
|
||||
nsCOMPtr<nsIDOMSVGNumber> mCurrentScale;
|
||||
|
||||
PRPackedBool mNeedsReflow;
|
||||
PRPackedBool mViewportInitialized;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче