зеркало из https://github.com/mozilla/gecko-dev.git
Bug 641426. Part 6: Rename Empty to SetEmpty. r=cjones
This commit is contained in:
Родитель
a7b4f1246b
Коммит
fc7faceefc
|
@ -310,7 +310,7 @@ nsHyperTextAccessible::GetPosAndText(PRInt32& aStartOffset, PRInt32& aEndOffset,
|
|||
*aEndFrame = nsnull;
|
||||
}
|
||||
if (aBoundsRect) {
|
||||
aBoundsRect->Empty();
|
||||
aBoundsRect->SetEmpty();
|
||||
}
|
||||
if (aStartAcc)
|
||||
*aStartAcc = nsnull;
|
||||
|
|
|
@ -2930,7 +2930,7 @@ PluginInstanceChild::ShowPluginFrame()
|
|||
// Clear accRect here to be able to pass
|
||||
// test_invalidate_during_plugin_paint test
|
||||
nsIntRect rect = mAccumulatedInvalidRect;
|
||||
mAccumulatedInvalidRect.Empty();
|
||||
mAccumulatedInvalidRect.SetEmpty();
|
||||
|
||||
// Fix up old invalidations that might have been made when our
|
||||
// surface was a different size
|
||||
|
|
|
@ -101,7 +101,7 @@ public:
|
|||
{
|
||||
mBuffer = nsnull;
|
||||
mBufferDims.SizeTo(0, 0);
|
||||
mBufferRect.Empty();
|
||||
mBufferRect.SetEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -83,7 +83,7 @@ struct NS_GFX nsRect {
|
|||
PRBool IsEmpty() const {
|
||||
return (PRBool) ((height <= 0) || (width <= 0));
|
||||
}
|
||||
void Empty() {width = height = 0;}
|
||||
void SetEmpty() {width = height = 0;}
|
||||
|
||||
// Returns true if this rectangle contains the interior of aRect. Always
|
||||
// returns true if aRect is empty, and always returns false is aRect is
|
||||
|
@ -121,7 +121,7 @@ struct NS_GFX nsRect {
|
|||
//
|
||||
// 'this' can be the same object as either aRect1 or aRect2
|
||||
void UnionRectEdges(const nsRect& aRect1, const nsRect& aRect2);
|
||||
|
||||
|
||||
// Accessors
|
||||
void SetRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight) {
|
||||
x = aX; y = aY; width = aWidth; height = aHeight;
|
||||
|
|
|
@ -1094,7 +1094,7 @@ nsCaret::UpdateCaretRects(nsIFrame* aFrame, PRInt32 aFrameOffset)
|
|||
mCaretRect.x -= mCaretRect.width;
|
||||
|
||||
#ifdef IBMBIDI
|
||||
mHookRect.Empty();
|
||||
mHookRect.SetEmpty();
|
||||
|
||||
// Simon -- make a hook to draw to the left or right of the caret to show keyboard language direction
|
||||
PRBool isCaretRTL = PR_FALSE;
|
||||
|
|
|
@ -1387,7 +1387,7 @@ ComputeDisjointRectangles(const nsRegion& aRegion,
|
|||
|
||||
if (!accumulated.IsEmpty()) {
|
||||
aRects->AppendElement(accumulated);
|
||||
accumulated.Empty();
|
||||
accumulated.SetEmpty();
|
||||
}
|
||||
|
||||
if (!r)
|
||||
|
|
|
@ -497,7 +497,7 @@ nsFieldSetFrame::Reflow(nsPresContext* aPresContext,
|
|||
FinishReflowChild(mLegendFrame, aPresContext, &legendReflowState,
|
||||
legendDesiredSize, 0, 0, NS_FRAME_NO_MOVE_FRAME);
|
||||
} else if (!mLegendFrame) {
|
||||
mLegendRect.Empty();
|
||||
mLegendRect.SetEmpty();
|
||||
mLegendSpace = 0;
|
||||
} else {
|
||||
// mLegendSpace and mLegendRect haven't changed, but we need
|
||||
|
|
|
@ -1636,7 +1636,7 @@ nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
|
|||
// The out-of-flow frame did not intersect the dirty area. We may still
|
||||
// need to traverse into it, since it may contain placeholders we need
|
||||
// to enter to reach other out-of-flow frames that are visible.
|
||||
dirty.Empty();
|
||||
dirty.SetEmpty();
|
||||
}
|
||||
pseudoStackingContext = PR_TRUE;
|
||||
} else if (aBuilder->GetSelectedFramesOnly() &&
|
||||
|
|
|
@ -2951,7 +2951,7 @@ nsObjectFrame::StopPluginInternal(PRBool aDelayedStop)
|
|||
|
||||
// Make sure that our windowless rect has been zeroed out, so if we
|
||||
// get reinstantiated we'll send the right messages to the plug-in.
|
||||
mWindowlessRect.Empty();
|
||||
mWindowlessRect.SetEmpty();
|
||||
|
||||
PRBool oldVal = mPreventInstantiation;
|
||||
mPreventInstantiation = PR_TRUE;
|
||||
|
|
|
@ -474,7 +474,7 @@ nsSVGGlyphFrame::GetCoveredRegion()
|
|||
NS_IMETHODIMP
|
||||
nsSVGGlyphFrame::UpdateCoveredRegion()
|
||||
{
|
||||
mRect.Empty();
|
||||
mRect.SetEmpty();
|
||||
|
||||
gfxMatrix matrix = GetCanvasTM();
|
||||
if (matrix.IsSingular()) {
|
||||
|
|
|
@ -443,7 +443,7 @@ nsSVGImageFrame::GetType() const
|
|||
NS_IMETHODIMP
|
||||
nsSVGImageFrame::UpdateCoveredRegion()
|
||||
{
|
||||
mRect.Empty();
|
||||
mRect.SetEmpty();
|
||||
|
||||
gfxContext context(gfxPlatform::GetPlatform()->ScreenReferenceSurface());
|
||||
|
||||
|
|
|
@ -246,7 +246,7 @@ nsSVGPathGeometryFrame::GetCoveredRegion()
|
|||
NS_IMETHODIMP
|
||||
nsSVGPathGeometryFrame::UpdateCoveredRegion()
|
||||
{
|
||||
mRect.Empty();
|
||||
mRect.SetEmpty();
|
||||
|
||||
nsRefPtr<gfxContext> context =
|
||||
new gfxContext(gfxPlatform::GetPlatform()->ScreenReferenceSurface());
|
||||
|
|
|
@ -161,7 +161,7 @@ TableBackgroundPainter::TableBackgroundData::Destroy(nsPresContext* aPresContext
|
|||
void
|
||||
TableBackgroundPainter::TableBackgroundData::Clear()
|
||||
{
|
||||
mRect.Empty();
|
||||
mRect.SetEmpty();
|
||||
mFrame = nsnull;
|
||||
mBorder = nsnull;
|
||||
mVisible = PR_FALSE;
|
||||
|
|
|
@ -175,7 +175,7 @@ Decoder::FlushInvalidations()
|
|||
}
|
||||
|
||||
// Clear the invalidation rectangle
|
||||
mInvalidRect.Empty();
|
||||
mInvalidRect.SetEmpty();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -321,7 +321,7 @@ AndroidGeckoEvent::ReadRectField(JNIEnv *jenv)
|
|||
r.Right() - r.Left(),
|
||||
r.Bottom() - r.Top());
|
||||
} else {
|
||||
mRect.Empty();
|
||||
mRect.SetEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -438,7 +438,7 @@ void
|
|||
AndroidGeckoEvent::Init(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
mType = DRAW;
|
||||
mRect.Empty();
|
||||
mRect.SetEmpty();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -240,7 +240,7 @@ nsMenuItemIconX::GetIconURI(nsIURI** aIconURI)
|
|||
// Empty the mImageRegionRect initially as the image region CSS could
|
||||
// have been changed and now have an error or have been removed since the
|
||||
// last GetIconURI call.
|
||||
mImageRegionRect.Empty();
|
||||
mImageRegionRect.SetEmpty();
|
||||
|
||||
// If this menu item shouldn't have an icon, the string will be empty,
|
||||
// and NS_NewURI will fail.
|
||||
|
|
|
@ -170,7 +170,7 @@ nsresult nsWebShellWindow::Initialize(nsIXULWindow* aParent,
|
|||
&mOpenerScreenRect.width,
|
||||
&mOpenerScreenRect.height);
|
||||
if (NS_FAILED(rv)) {
|
||||
mOpenerScreenRect.Empty();
|
||||
mOpenerScreenRect.SetEmpty();
|
||||
} else {
|
||||
initialX = mOpenerScreenRect.x;
|
||||
initialY = mOpenerScreenRect.y;
|
||||
|
|
Загрузка…
Ссылка в новой задаче