Bug 1297306 - part1:remove unused NS_STYLE_CLEAR_* condition. r=xidorn
authorJeremy Chen <jeremychen@mozilla.com>
Wed, 07 Sep 2016 10:20:16 +0800
changeset 313039 787d895935668086fb3cb693052abb48f7040759
parent 313038 ac84db1c2d367b9bbccbb06c2c204b293b7c39e7
child 313040 907028433e467a3eb04cd69db622302238edc598
push id20479
push userkwierso@gmail.com
push dateThu, 08 Sep 2016 01:08:46 +0000
treeherderfx-team@fb7c6b034329 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1297306
milestone51.0a1
Bug 1297306 - part1:remove unused NS_STYLE_CLEAR_* condition. r=xidorn 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);