Changeset 256094 in webkit


Ignore:
Timestamp:
Feb 8, 2020 1:54:58 PM (4 years ago)
Author:
Alan Bujtas
Message:

[LFC][BFC] Box::isFloatAvoider should not check for isFloatingPositioned()
https://bugs.webkit.org/show_bug.cgi?id=207429
<rdar://problem/59288204>

Reviewed by Antti Koivisto.

Box::isFloatAvoider() already checks for establishesBlockFormattingContext() (and floats do establish BFCs).

  • layout/layouttree/LayoutBox.cpp:

(WebCore::Layout::Box::isFloatAvoider const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r256091 r256094  
     12020-02-08  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][BFC] Box::isFloatAvoider should not check for isFloatingPositioned()
     4        https://bugs.webkit.org/show_bug.cgi?id=207429
     5        <rdar://problem/59288204>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Box::isFloatAvoider() already checks for establishesBlockFormattingContext() (and floats do establish BFCs).
     10
     11        * layout/layouttree/LayoutBox.cpp:
     12        (WebCore::Layout::Box::isFloatAvoider const):
     13
    1142020-02-08  Sam Weinig  <weinig@apple.com>
    215
  • trunk/Source/WebCore/layout/layouttree/LayoutBox.cpp

    r254977 r256094  
    195195bool Box::isFloatAvoider() const
    196196{
    197     return establishesBlockFormattingContext() || establishesTableFormattingContext() || isFloatingPositioned() || hasFloatClear();
     197    return establishesBlockFormattingContext() || establishesTableFormattingContext() || hasFloatClear();
    198198}
    199199
Note: See TracChangeset for help on using the changeset viewer.