Bug 1053986 - Rename nsFrame.cpp static method IsBoxWrapped to IsXULBoxWrapped. r=dholbert

Written purely with sed, over .h and .cpp files in layout/.

MozReview-Commit-ID: EOh204RMxmi
This commit is contained in:
L. David Baron
2016-04-20 21:28:30 -07:00
parent 7511e4ea42
commit 2f53d7f019
3 changed files with 9 additions and 9 deletions

View File

@@ -182,7 +182,7 @@ InitBoxMetrics(nsIFrame* aFrame, bool aClear)
} }
static bool static bool
IsBoxWrapped(const nsIFrame* aFrame) IsXULBoxWrapped(const nsIFrame* aFrame)
{ {
return aFrame->GetParent() && return aFrame->GetParent() &&
aFrame->GetParent()->IsXULBoxFrame() && aFrame->GetParent()->IsXULBoxFrame() &&
@@ -608,7 +608,7 @@ nsFrame::Init(nsIContent* aContent,
DidSetStyleContext(nullptr); DidSetStyleContext(nullptr);
if (::IsBoxWrapped(this)) if (::IsXULBoxWrapped(this))
::InitBoxMetrics(this, false); ::InitBoxMetrics(this, false);
} }
@@ -4242,7 +4242,7 @@ nsFrame::MarkIntrinsicISizesDirty()
{ {
// This version is meant only for what used to be box-to-block adaptors. // This version is meant only for what used to be box-to-block adaptors.
// It should not be called by other derived classes. // It should not be called by other derived classes.
if (::IsBoxWrapped(this)) { if (::IsXULBoxWrapped(this)) {
nsBoxLayoutMetrics *metrics = BoxMetrics(); nsBoxLayoutMetrics *metrics = BoxMetrics();
SizeNeedsRecalc(metrics->mPrefSize); SizeNeedsRecalc(metrics->mPrefSize);
@@ -5881,7 +5881,7 @@ nsFrame::UpdateOverflow()
nsOverflowAreas overflowAreas(rect, rect); nsOverflowAreas overflowAreas(rect, rect);
if (!DoesClipChildren() && if (!DoesClipChildren() &&
!(IsCollapsed() && (IsXULBoxFrame() || ::IsBoxWrapped(this)))) { !(IsCollapsed() && (IsXULBoxFrame() || ::IsXULBoxWrapped(this)))) {
nsLayoutUtils::UnionChildOverflow(this, overflowAreas); nsLayoutUtils::UnionChildOverflow(this, overflowAreas);
} }
@@ -7971,7 +7971,7 @@ nsIFrame::FinishAndStoreOverflow(nsOverflowAreas& aOverflowAreas,
// Note that NS_STYLE_OVERFLOW_CLIP doesn't clip the frame background, // Note that NS_STYLE_OVERFLOW_CLIP doesn't clip the frame background,
// so we add theme background overflow here so it's not clipped. // so we add theme background overflow here so it's not clipped.
if (!::IsBoxWrapped(this) && IsThemed(disp)) { if (!::IsXULBoxWrapped(this) && IsThemed(disp)) {
nsRect r(bounds); nsRect r(bounds);
nsPresContext *presContext = PresContext(); nsPresContext *presContext = PresContext();
if (presContext->GetTheme()-> if (presContext->GetTheme()->
@@ -9208,12 +9208,12 @@ nsIFrame::SetParent(nsContainerFrame* aParent)
{ {
// Note that the current mParent may already be destroyed at this point. // Note that the current mParent may already be destroyed at this point.
mParent = aParent; mParent = aParent;
if (::IsBoxWrapped(this)) { if (::IsXULBoxWrapped(this)) {
::InitBoxMetrics(this, true); ::InitBoxMetrics(this, true);
} else { } else {
// We could call Properties().Delete(BoxMetricsProperty()); here but // We could call Properties().Delete(BoxMetricsProperty()); here but
// that's kind of slow and re-parenting in such a way that we were // that's kind of slow and re-parenting in such a way that we were
// IsBoxWrapped() before but not now should be very rare, so we'll just // IsXULBoxWrapped() before but not now should be very rare, so we'll just
// keep this unused frame property until this frame dies instead. // keep this unused frame property until this frame dies instead.
} }

View File

@@ -1004,7 +1004,7 @@ nsBoxFrame::MarkIntrinsicISizesDirty()
} }
// Don't call base class method, since everything it does is within an // Don't call base class method, since everything it does is within an
// IsBoxWrapped check. // IsXULBoxWrapped check.
} }
void void

View File

@@ -380,7 +380,7 @@ nsLeafBoxFrame::GetBoxAscent(nsBoxLayoutState& aState)
nsLeafBoxFrame::MarkIntrinsicISizesDirty() nsLeafBoxFrame::MarkIntrinsicISizesDirty()
{ {
// Don't call base class method, since everything it does is within an // Don't call base class method, since everything it does is within an
// IsBoxWrapped check. // IsXULBoxWrapped check.
} }
NS_IMETHODIMP NS_IMETHODIMP