зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1053986 - Rename nsBox::GetNextBox to GetNextXULBox. r=dholbert
Written purely with sed, over .h and .cpp files in layout/. MozReview-Commit-ID: 2idhqJgZLTe
This commit is contained in:
Родитель
f922950060
Коммит
758eb25ec4
|
@ -152,7 +152,7 @@ void ScrollBoxObject::ScrollByIndex(int32_t dindexes, ErrorResult& aRv)
|
|||
break;
|
||||
}
|
||||
}
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
curIndex++;
|
||||
}
|
||||
|
||||
|
@ -163,7 +163,7 @@ void ScrollBoxObject::ScrollByIndex(int32_t dindexes, ErrorResult& aRv)
|
|||
|
||||
if (dindexes > 0) {
|
||||
while(child) {
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
if (child) {
|
||||
rect = child->GetRect();
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ void ScrollBoxObject::ScrollByIndex(int32_t dindexes, ErrorResult& aRv)
|
|||
}
|
||||
|
||||
count++;
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -277,7 +277,7 @@ nsGrid::FindRowsAndColumns(nsIFrame** aRows, nsIFrame** aColumns)
|
|||
child = oldBox;
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -416,7 +416,7 @@ nsGrid::PopulateCellMap(nsGridRow* aRows, nsGridRow* aColumns, int32_t aRowCount
|
|||
else
|
||||
GetCellAt(i,j)->SetBoxInColumn(child);
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
|
||||
j++;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ nsGridRowGroupFrame::GetXULFlex()
|
|||
while (child)
|
||||
{
|
||||
totalFlex += child->GetXULFlex();
|
||||
child = GetNextBox(child);
|
||||
child = GetNextXULBox(child);
|
||||
}
|
||||
|
||||
mFlex = totalFlex;
|
||||
|
|
|
@ -169,7 +169,7 @@ nsGridRowGroupLayout::DirtyRows(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
if (monument)
|
||||
monument->DirtyRows(deepChild, aState);
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -191,12 +191,12 @@ nsGridRowGroupLayout::CountRowsColumns(nsIFrame* aBox, int32_t& aRowCount, int32
|
|||
nsIGridPart* monument = nsGrid::GetPartFromBox(deepChild);
|
||||
if (monument) {
|
||||
monument->CountRowsColumns(deepChild, aRowCount, aComputedColumnCount);
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
deepChild = child;
|
||||
continue;
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
|
||||
// if not a monument. Then count it. It will be a bogus row
|
||||
aRowCount++;
|
||||
|
@ -226,14 +226,14 @@ nsGridRowGroupLayout::BuildRows(nsIFrame* aBox, nsGridRow* aRows)
|
|||
nsIGridPart* monument = nsGrid::GetPartFromBox(deepChild);
|
||||
if (monument) {
|
||||
rowCount += monument->BuildRows(deepChild, &aRows[rowCount]);
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
deepChild = child;
|
||||
continue;
|
||||
}
|
||||
|
||||
aRows[rowCount].Init(child, true);
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
|
||||
// if not a monument. Then count it. It will be a bogus row
|
||||
rowCount++;
|
||||
|
|
|
@ -112,7 +112,7 @@ nsGridRowLayout::GetGrid(nsIFrame* aBox, int32_t* aIndex, nsGridRowLayout* aRequ
|
|||
} else
|
||||
count++;
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
// if we didn't find ourselves then the tree isn't properly formed yet
|
||||
|
@ -147,7 +147,7 @@ nsGridRowLayout::GetTotalMargin(nsIFrame* aBox, bool aIsHorizontal)
|
|||
aBox = nsGrid::GetScrollBox(aBox);
|
||||
|
||||
// see if we have a next to see if we are last
|
||||
nsIFrame* next = nsBox::GetNextBox(aBox);
|
||||
nsIFrame* next = nsBox::GetNextXULBox(aBox);
|
||||
|
||||
// get the parent first child to see if we are first
|
||||
nsIFrame* child = nsBox::GetChildXULBox(parent);
|
||||
|
|
|
@ -205,7 +205,7 @@ nsGridRowLeafLayout::PopulateBoxSizes(nsIFrame* aBox, nsBoxLayoutState& aState,
|
|||
}
|
||||
|
||||
if (child && !column->mIsBogus)
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
|
||||
}
|
||||
aBoxSizes = start;
|
||||
|
@ -303,7 +303,7 @@ nsGridRowLeafLayout::CountRowsColumns(nsIFrame* aBox, int32_t& aRowCount, int32_
|
|||
// count the children
|
||||
int32_t columnCount = 0;
|
||||
while(child) {
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
columnCount++;
|
||||
}
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ nsBox::BeginLayout(nsBoxLayoutState& aState)
|
|||
// If the parent is dirty, all the children are dirty (nsHTMLReflowState
|
||||
// does this too).
|
||||
nsIFrame* box;
|
||||
for (box = GetChildXULBox(this); box; box = GetNextBox(box))
|
||||
for (box = GetChildXULBox(this); box; box = GetNextXULBox(box))
|
||||
box->AddStateBits(NS_FRAME_IS_DIRTY);
|
||||
}
|
||||
|
||||
|
@ -930,7 +930,7 @@ nsBox::GetChildXULBox(const nsIFrame* aFrame)
|
|||
}
|
||||
|
||||
/*static*/ nsIFrame*
|
||||
nsBox::GetNextBox(const nsIFrame* aFrame)
|
||||
nsBox::GetNextXULBox(const nsIFrame* aFrame)
|
||||
{
|
||||
return aFrame->GetParent() &&
|
||||
aFrame->GetParent()->IsXULBoxFrame() ? aFrame->GetNextSibling() : nullptr;
|
||||
|
@ -968,7 +968,7 @@ nsBox::GetDebugBoxAt( const nsPoint& aPoint,
|
|||
if (NS_SUCCEEDED(rv) && hit) {
|
||||
*aBox = hit;
|
||||
}
|
||||
child = GetNextBox(child);
|
||||
child = GetNextXULBox(child);
|
||||
}
|
||||
|
||||
// found a child
|
||||
|
|
|
@ -78,7 +78,7 @@ rollbox.
|
|||
static nscoord BoundsCheck(nscoord aMinSize, nscoord aPrefSize, nscoord aMaxSize);
|
||||
|
||||
static nsIFrame* GetChildXULBox(const nsIFrame* aFrame);
|
||||
static nsIFrame* GetNextBox(const nsIFrame* aFrame);
|
||||
static nsIFrame* GetNextXULBox(const nsIFrame* aFrame);
|
||||
static nsIFrame* GetParentBox(const nsIFrame* aFrame);
|
||||
|
||||
protected:
|
||||
|
|
|
@ -1510,7 +1510,7 @@ nsBoxFrame::PaintXULDebugOverlay(DrawTarget& aDrawTarget, nsPoint aPt)
|
|||
DrawSpacer(GetPresContext(), aDrawTarget, isHorizontal, flex, x, y, borderSize, spacerSize);
|
||||
}
|
||||
|
||||
kid = GetNextBox(kid);
|
||||
kid = GetNextXULBox(kid);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -1823,7 +1823,7 @@ nsBoxFrame::DisplayDebugInfoFor(nsIFrame* aBox,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
child = GetNextBox(child);
|
||||
child = GetNextXULBox(child);
|
||||
count++;
|
||||
}
|
||||
} else {
|
||||
|
@ -1841,7 +1841,7 @@ nsBoxFrame::SetDebugOnChildList(nsBoxLayoutState& aState, nsIFrame* aChild, bool
|
|||
while (child)
|
||||
{
|
||||
child->SetDebug(aState, aDebug);
|
||||
child = GetNextBox(child);
|
||||
child = GetNextXULBox(child);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1955,7 +1955,7 @@ nsBoxFrame::RelayoutChildAtOrdinal(nsIFrame* aChild)
|
|||
newPrevSib = child;
|
||||
}
|
||||
|
||||
child = GetNextBox(child);
|
||||
child = GetNextXULBox(child);
|
||||
}
|
||||
|
||||
if (aChild->GetPrevSibling() == newPrevSib) {
|
||||
|
|
|
@ -220,7 +220,7 @@ nsDeckFrame::DoLayout(nsBoxLayoutState& aState)
|
|||
if (count != mIndex)
|
||||
HideBox(box);
|
||||
|
||||
box = GetNextBox(box);
|
||||
box = GetNextXULBox(box);
|
||||
count++;
|
||||
}
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ nsListBoxLayout::LayoutInternal(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
yOffset += size;
|
||||
availableHeight -= size;
|
||||
|
||||
box = nsBox::GetNextBox(box);
|
||||
box = nsBox::GetNextXULBox(box);
|
||||
}
|
||||
|
||||
// We have enough available height left to add some more rows
|
||||
|
|
|
@ -712,7 +712,7 @@ nsSplitterFrameInner::MouseDown(nsIDOMEvent* aMouseEvent)
|
|||
}
|
||||
}
|
||||
|
||||
childBox = nsBox::GetNextBox(childBox);
|
||||
childBox = nsBox::GetNextXULBox(childBox);
|
||||
count++;
|
||||
}
|
||||
|
||||
|
@ -903,7 +903,7 @@ static nsIFrame* GetChildBoxForContent(nsIFrame* aParentBox, nsIContent* aConten
|
|||
if (childBox->GetContent() == aContent) {
|
||||
return childBox;
|
||||
}
|
||||
childBox = nsBox::GetNextBox(childBox);
|
||||
childBox = nsBox::GetNextXULBox(childBox);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -922,7 +922,7 @@ nsSplitterFrameInner::AdjustChildren(nsPresContext* aPresContext, nsSplitterInfo
|
|||
while(child)
|
||||
{
|
||||
SetPreferredSize(state, child, onePixel, aIsHorizontal, nullptr);
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
// now set our changed widths.
|
||||
|
|
|
@ -177,7 +177,7 @@ nsSprocketLayout::XULLayout(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
while(child)
|
||||
{
|
||||
nsBoxFrame::LayoutChildAt(aState, child, nsRect(0,0,0,0));
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -565,7 +565,7 @@ nsSprocketLayout::XULLayout(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
childComputedBoxSize = childComputedBoxSize->next;
|
||||
childBoxSize = childBoxSize->next;
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
count++;
|
||||
}
|
||||
|
||||
|
@ -629,7 +629,7 @@ nsSprocketLayout::XULLayout(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
childRect.x += (x - origX);
|
||||
childRect.y += (y - origY);
|
||||
child->SetXULBounds(aState, childRect);
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -714,7 +714,7 @@ nsSprocketLayout::PopulateBoxSizes(nsIFrame* aBox, nsBoxLayoutState& aState, nsB
|
|||
if (flex > 0)
|
||||
aFlexes++;
|
||||
|
||||
child = GetNextBox(child);
|
||||
child = GetNextXULBox(child);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -838,7 +838,7 @@ nsSprocketLayout::PopulateBoxSizes(nsIFrame* aBox, nsBoxLayoutState& aState, nsB
|
|||
currentBox->collapsed = collapsed;
|
||||
aFlexes += currentBox->flex;
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
|
||||
last = currentBox;
|
||||
currentBox = currentBox->next;
|
||||
|
@ -1006,7 +1006,7 @@ nsSprocketLayout::AlignChildren(nsIFrame* aBox,
|
|||
child->SetXULBounds(aState, childRect);
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1343,7 +1343,7 @@ nsSprocketLayout::GetXULPrefSize(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
count++;
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
if (isEqual) {
|
||||
|
@ -1411,7 +1411,7 @@ nsSprocketLayout::GetXULMinSize(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
count++;
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1471,7 +1471,7 @@ nsSprocketLayout::GetXULMaxSize(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
count++;
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
if (isEqual) {
|
||||
|
@ -1529,7 +1529,7 @@ nsSprocketLayout::GetAscent(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
}
|
||||
//}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
nsMargin borderPadding;
|
||||
|
|
|
@ -76,7 +76,7 @@ nsStackLayout::GetXULPrefSize(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
AddLargestSize(prefSize, pref);
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
AddBorderAndPadding(aBox, prefSize);
|
||||
|
@ -102,7 +102,7 @@ nsStackLayout::GetXULMinSize(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
AddLargestSize(minSize, min);
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
AddBorderAndPadding(aBox, minSize);
|
||||
|
@ -131,7 +131,7 @@ nsStackLayout::GetXULMaxSize(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
AddSmallestSize(maxSize, max);
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
AddBorderAndPadding(aBox, maxSize);
|
||||
|
@ -154,7 +154,7 @@ nsStackLayout::GetAscent(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
if (ascent > vAscent)
|
||||
vAscent = ascent;
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
|
||||
return vAscent;
|
||||
|
@ -359,7 +359,7 @@ nsStackLayout::XULLayout(nsIFrame* aBox, nsBoxLayoutState& aState)
|
|||
}
|
||||
}
|
||||
|
||||
child = nsBox::GetNextBox(child);
|
||||
child = nsBox::GetNextXULBox(child);
|
||||
}
|
||||
} while (grow);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче