Bug 1162366 - Fix spelling of nsPresContext::mSupressResizeReflow and associated methods. r=dholbert

This commit is contained in:
Cameron McCormack 2015-05-06 20:56:00 -04:00
parent 60fd9bac8f
commit d658249d6a
3 changed files with 6 additions and 6 deletions

View File

@ -1493,8 +1493,8 @@ nsPresContext::SetFullZoom(float aZoom)
float oldHeightDevPixels = oldHeightAppUnits / float(mCurAppUnitsPerDevPixel);
mDeviceContext->SetFullZoom(aZoom);
NS_ASSERTION(!mSupressResizeReflow, "two zooms happening at the same time? impossible!");
mSupressResizeReflow = true;
NS_ASSERTION(!mSuppressResizeReflow, "two zooms happening at the same time? impossible!");
mSuppressResizeReflow = true;
mFullZoom = aZoom;
mShell->GetViewManager()->
@ -1503,7 +1503,7 @@ nsPresContext::SetFullZoom(float aZoom)
AppUnitsPerDevPixelChanged();
mSupressResizeReflow = false;
mSuppressResizeReflow = false;
}
gfxSize

View File

@ -870,7 +870,7 @@ public:
// as that value may be out of date when mPaintFlashingInitialized is false.
bool GetPaintFlashing() const;
bool SupressingResizeReflow() const { return mSupressResizeReflow; }
bool SuppressingResizeReflow() const { return mSuppressResizeReflow; }
virtual gfxUserFontSet* GetUserFontSetExternal();
gfxUserFontSet* GetUserFontSetInternal();
@ -1374,7 +1374,7 @@ protected:
// resize reflow is suppressed when the only change has been to zoom
// the document rather than to change the document's dimensions
unsigned mSupressResizeReflow : 1;
unsigned mSuppressResizeReflow : 1;
unsigned mIsVisual : 1;

View File

@ -2041,7 +2041,7 @@ PresShell::ResizeReflowIgnoreOverride(nscoord aWidth, nscoord aHeight)
// Take this ref after viewManager so it'll make sure to go away first.
nsCOMPtr<nsIPresShell> kungFuDeathGrip(this);
if (!GetPresContext()->SupressingResizeReflow()) {
if (!GetPresContext()->SuppressingResizeReflow()) {
// Have to make sure that the content notifications are flushed before we
// start messing with the frame model; otherwise we can get content doubling.
mDocument->FlushPendingNotifications(Flush_ContentAndNotify);