Title: [241775] trunk/Source/WebCore
Revision
241775
Author
[email protected]
Date
2019-02-19 14:36:50 -0800 (Tue, 19 Feb 2019)

Log Message

Fix post-commit feedback.

Unreviewed.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (241774 => 241775)


--- trunk/Source/WebCore/ChangeLog	2019-02-19 22:33:43 UTC (rev 241774)
+++ trunk/Source/WebCore/ChangeLog	2019-02-19 22:36:50 UTC (rev 241775)
@@ -1,5 +1,14 @@
 2019-02-19  Zalan Bujtas  <[email protected]>
 
+        Fix post-commit feedback.
+
+        Unreviewed. 
+
+        * layout/floats/FloatingContext.cpp:
+        (WebCore::Layout::FloatingPair::intersects const):
+
+2019-02-19  Zalan Bujtas  <[email protected]>
+
         [LFC][Floats] Remove redundant intersecting logic
         https://bugs.webkit.org/show_bug.cgi?id=194804
 

Modified: trunk/Source/WebCore/layout/floats/FloatingContext.cpp (241774 => 241775)


--- trunk/Source/WebCore/layout/floats/FloatingContext.cpp	2019-02-19 22:33:43 UTC (rev 241774)
+++ trunk/Source/WebCore/layout/floats/FloatingContext.cpp	2019-02-19 22:36:50 UTC (rev 241775)
@@ -322,7 +322,7 @@
 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);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to