зеркало из https://github.com/mozilla/gecko-dev.git
Bug 233463, patch 4 - Make nsIFrame::mNextSibling private. r=bzbarsky
This commit is contained in:
Родитель
c3fb633256
Коммит
eb7a0b3a40
|
@ -353,8 +353,8 @@ nsBlockFrame::List(FILE* out, PRInt32 aIndent) const
|
|||
if (HasView()) {
|
||||
fprintf(out, " [view=%p]", static_cast<void*>(GetView()));
|
||||
}
|
||||
if (nsnull != mNextSibling) {
|
||||
fprintf(out, " next=%p", static_cast<void*>(mNextSibling));
|
||||
if (GetNextSibling()) {
|
||||
fprintf(out, " next=%p", static_cast<void*>(GetNextSibling()));
|
||||
}
|
||||
|
||||
// Output the flow linkage
|
||||
|
|
|
@ -1594,8 +1594,8 @@ nsContainerFrame::List(FILE* out, PRInt32 aIndent) const
|
|||
if (HasView()) {
|
||||
fprintf(out, " [view=%p]", static_cast<void*>(GetView()));
|
||||
}
|
||||
if (nsnull != mNextSibling) {
|
||||
fprintf(out, " next=%p", static_cast<void*>(mNextSibling));
|
||||
if (GetNextSibling()) {
|
||||
fprintf(out, " next=%p", static_cast<void*>(GetNextSibling()));
|
||||
}
|
||||
if (nsnull != GetPrevContinuation()) {
|
||||
fprintf(out, " prev-continuation=%p", static_cast<void*>(GetPrevContinuation()));
|
||||
|
|
|
@ -4320,9 +4320,9 @@ nsFrame::DumpRegressionData(nsPresContext* aPresContext, FILE* out, PRInt32 aInd
|
|||
void
|
||||
nsFrame::DumpBaseRegressionData(nsPresContext* aPresContext, FILE* out, PRInt32 aIndent)
|
||||
{
|
||||
if (nsnull != mNextSibling) {
|
||||
if (GetNextSibling()) {
|
||||
IndentBy(out, aIndent);
|
||||
fprintf(out, "<next-sibling va=\"%ld\"/>\n", PRUptrdiff(mNextSibling));
|
||||
fprintf(out, "<next-sibling va=\"%ld\"/>\n", PRUptrdiff(GetNextSibling()));
|
||||
}
|
||||
|
||||
if (HasView()) {
|
||||
|
|
|
@ -2323,7 +2323,9 @@ protected:
|
|||
nsIContent* mContent;
|
||||
nsStyleContext* mStyleContext;
|
||||
nsIFrame* mParent;
|
||||
private:
|
||||
nsIFrame* mNextSibling; // singly-linked list of frames
|
||||
protected:
|
||||
nsFrameState mState;
|
||||
|
||||
// When there is an overflow area only slightly larger than mRect,
|
||||
|
|
|
@ -6780,8 +6780,8 @@ nsTextFrame::List(FILE* out, PRInt32 aIndent) const
|
|||
GetContentOffset(), GetContentLength(),
|
||||
isComplete ? 'T':'F');
|
||||
|
||||
if (nsnull != mNextSibling) {
|
||||
fprintf(out, " next=%p", static_cast<void*>(mNextSibling));
|
||||
if (GetNextSibling()) {
|
||||
fprintf(out, " next=%p", static_cast<void*>(GetNextSibling()));
|
||||
}
|
||||
nsIFrame* prevContinuation = GetPrevContinuation();
|
||||
if (nsnull != prevContinuation) {
|
||||
|
|
|
@ -1219,7 +1219,7 @@ nsSVGGlyphFrame::GetFirstGlyphFragment()
|
|||
NS_IMETHODIMP_(nsISVGGlyphFragmentLeaf *)
|
||||
nsSVGGlyphFrame::GetNextGlyphFragment()
|
||||
{
|
||||
nsIFrame* sibling = mNextSibling;
|
||||
nsIFrame* sibling = GetNextSibling();
|
||||
while (sibling) {
|
||||
nsISVGGlyphFragmentNode *node = do_QueryFrame(sibling);
|
||||
if (node)
|
||||
|
@ -1229,8 +1229,8 @@ nsSVGGlyphFrame::GetNextGlyphFragment()
|
|||
|
||||
// no more siblings. go back up the tree.
|
||||
|
||||
NS_ASSERTION(mParent, "null parent");
|
||||
nsISVGGlyphFragmentNode *node = do_QueryFrame(mParent);
|
||||
NS_ASSERTION(GetParent(), "null parent");
|
||||
nsISVGGlyphFragmentNode *node = do_QueryFrame(GetParent());
|
||||
return node ? node->GetNextGlyphFragment() : nsnull;
|
||||
}
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ nsSVGTSpanFrame::GetFirstGlyphFragment()
|
|||
NS_IMETHODIMP_(nsISVGGlyphFragmentLeaf *)
|
||||
nsSVGTSpanFrame::GetNextGlyphFragment()
|
||||
{
|
||||
nsIFrame* sibling = mNextSibling;
|
||||
nsIFrame* sibling = GetNextSibling();
|
||||
while (sibling) {
|
||||
nsISVGGlyphFragmentNode *node = do_QueryFrame(sibling);
|
||||
if (node)
|
||||
|
@ -181,8 +181,8 @@ nsSVGTSpanFrame::GetNextGlyphFragment()
|
|||
|
||||
// no more siblings. go back up the tree.
|
||||
|
||||
NS_ASSERTION(mParent, "null parent");
|
||||
nsISVGGlyphFragmentNode *node = do_QueryFrame(mParent);
|
||||
NS_ASSERTION(GetParent(), "null parent");
|
||||
nsISVGGlyphFragmentNode *node = do_QueryFrame(GetParent());
|
||||
return node ? node->GetNextGlyphFragment() : nsnull;
|
||||
}
|
||||
|
||||
|
|
|
@ -317,8 +317,8 @@ nsPopupSetFrame::List(FILE* out, PRInt32 aIndent) const
|
|||
if (HasView()) {
|
||||
fprintf(out, " [view=%p]", static_cast<void*>(GetView()));
|
||||
}
|
||||
if (nsnull != mNextSibling) {
|
||||
fprintf(out, " next=%p", static_cast<void*>(mNextSibling));
|
||||
if (GetNextSibling()) {
|
||||
fprintf(out, " next=%p", static_cast<void*>(GetNextSibling()));
|
||||
}
|
||||
if (nsnull != GetPrevContinuation()) {
|
||||
fprintf(out, " prev-continuation=%p", static_cast<void*>(GetPrevContinuation()));
|
||||
|
|
Загрузка…
Ссылка в новой задаче