Changeset 267133 in webkit


Ignore:
Timestamp:
Sep 15, 2020 9:33:04 PM (4 years ago)
Author:
Alan Bujtas
Message:

[LFC] Use isBlockBox() in Box::establishesBlockFormattingContext
https://bugs.webkit.org/show_bug.cgi?id=216595

Reviewed by Simon Fraser.

Let's use the Box::isBlockBox() function (now that we have it) to check if a box establishes a new BFC (this matches spec language now).

  • layout/layouttree/LayoutBox.cpp:

(WebCore::Layout::Box::establishesBlockFormattingContext const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267131 r267133  
     12020-09-15  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC] Use isBlockBox() in Box::establishesBlockFormattingContext
     4        https://bugs.webkit.org/show_bug.cgi?id=216595
     5
     6        Reviewed by Simon Fraser.
     7
     8        Let's use the Box::isBlockBox() function (now that we have it) to check if a box establishes a new BFC (this matches spec language now).
     9
     10        * layout/layouttree/LayoutBox.cpp:
     11        (WebCore::Layout::Box::establishesBlockFormattingContext const):
     12
    1132020-09-15  Aditya Keerthi  <akeerthi@apple.com>
    214
  • trunk/Source/WebCore/layout/layouttree/LayoutBox.cpp

    r267076 r267133  
    9696    }
    9797
    98     if (isBlockContainer() && !isBlockLevelBox())
    99         return true;
    100 
    101     if (isBlockLevelBox() && !isOverflowVisible())
     98    if (isBlockContainer() && !isBlockBox())
     99        return true;
     100
     101    if (isBlockBox() && !isOverflowVisible())
    102102        return true;
    103103
Note: See TracChangeset for help on using the changeset viewer.