Bug 1297306 - part1:remove unused NS_STYLE_CLEAR_* condition. draft
authorJeremy Chen <jeremychen@mozilla.com>
Wed, 07 Sep 2016 10:20:16 +0800
changeset 410884 5f0e269e059416d90c6e23cd1a866a44d1c712b4
parent 410870 91c2b9d5c1354ca79e5b174591dbb03b32b15bbf
child 410885 f5bcd380d88f52e3bb2a39686f7d0b3559a39115
push id28778
push userjichen@mozilla.com
push dateWed, 07 Sep 2016 02:21:00 +0000
bugs1297306
milestone51.0a1
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
layout/generic/nsLineBox.cpp
--- 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);