Bug 1297306 - part1:remove unused NS_STYLE_CLEAR_* condition.
NS_STYLE_CLEAR_NONE has been defined to 0 for like forever, so this code should
never be run. Remove it.
MozReview-Commit-ID: IQ73H6QGsPX
--- a/layout/generic/nsLineBox.cpp
+++ b/layout/generic/nsLineBox.cpp
@@ -47,19 +47,16 @@ nsLineBox::nsLineBox(nsIFrame* aFrame, i
NS_ASSERTION(aIsBlock == f->IsBlockOutside(),
"wrong kind of child frame");
}
#endif
static_assert(NS_STYLE_CLEAR_MAX <= 15,
"FlagBits needs more bits to store the full range of "
"break type ('clear') values");
-#if NS_STYLE_CLEAR_NONE > 0
- mFlags.mBreakType = NS_STYLE_CLEAR_NONE;
-#endif
mChildCount = aCount;
MarkDirty();
mFlags.mBlock = aIsBlock;
}
nsLineBox::~nsLineBox()
{
MOZ_COUNT_DTOR(nsLineBox);