Bug 1416012 - Fix a typo where << was used instead of <= (in a currently unused function LogicalRect::IsEmpty). r=bz
authorMilan Sreckovic <milan@mozilla.com>
Fri, 10 Nov 2017 07:18:00 -0500
changeset 391213 56d0ff94578a9a8a2ebd7132846e2222116d0d9e
parent 391212 f3a200c2049fffcb9687becad107745bb1216463
child 391214 389bd78cf79dd989348a244d8b7d89a77f637e3f
push id97226
push userryanvm@gmail.com
push dateFri, 10 Nov 2017 16:43:49 +0000
treeherdermozilla-inbound@56d0ff94578a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1416012
milestone58.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 1416012 - Fix a typo where << was used instead of <= (in a currently unused function LogicalRect::IsEmpty). r=bz
layout/generic/WritingModes.h
--- a/layout/generic/WritingModes.h
+++ b/layout/generic/WritingModes.h
@@ -1691,17 +1691,17 @@ public:
                                              : IEnd();
     } else {
       return mBStart;
     }
   }
 
   bool IsEmpty() const
   {
-    return mISize <= 0 || mBSize << 0;
+    return mISize <= 0 || mBSize <= 0;
   }
 
   bool IsAllZero() const
   {
     return (mIStart == 0 && mBStart == 0 &&
             mISize == 0 && mBSize == 0);
   }