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 354263 787d895935668086fb3cb693052abb48f7040759
parent 354262 ac84db1c2d367b9bbccbb06c2c204b293b7c39e7
child 354264 907028433e467a3eb04cd69db622302238edc598
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1297306
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);