Fix post-commit feedback.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Feb 2019 22:36:50 +0000 (22:36 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Feb 2019 22:36:50 +0000 (22:36 +0000)
Unreviewed.

* layout/floats/FloatingContext.cpp:
(WebCore::Layout::FloatingPair::intersects const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241775 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/layout/floats/FloatingContext.cpp

index 787650f..ea2c31f 100644 (file)
@@ -1,5 +1,14 @@
 2019-02-19  Zalan Bujtas  <zalan@apple.com>
 
+        Fix post-commit feedback.
+
+        Unreviewed. 
+
+        * layout/floats/FloatingContext.cpp:
+        (WebCore::Layout::FloatingPair::intersects const):
+
+2019-02-19  Zalan Bujtas  <zalan@apple.com>
+
         [LFC][Floats] Remove redundant intersecting logic
         https://bugs.webkit.org/show_bug.cgi?id=194804
 
index 97cd83a..a123b2d 100644 (file)
@@ -322,7 +322,7 @@ const FloatingState::FloatItem* FloatingPair::right() const
 bool FloatingPair::intersects(const Display::Box::Rect& floatAvoiderRect) const
 {
     auto intersects = [&](auto* floating) {
-        return floating ? floating->rectWithMargin().intersects(floatAvoiderRect) : false;
+        return floating && floating->rectWithMargin().intersects(floatAvoiderRect);
     };
 
     ASSERT(m_leftIndex || m_rightIndex);