⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267460 in webkit


Ignore:
Timestamp:
Sep 22, 2020, 8:48:22 PM (6 years ago)
Author:
Alan Bujtas
Message:

[LFC][Floats] Remove the redundant RuntimeEnabledFeatures::layoutFormattingContextIntegrationEnabled() check from FloatingState::append
https://bugs.webkit.org/show_bug.cgi?id=216866

Reviewed by Simon Fraser.

The no-layout-box-for-the-FloatItem codepath is reserved for the IFC integration. This is temporary anyway.

  • layout/floats/FloatingState.cpp:

(WebCore::Layout::FloatingState::append):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267457 r267460  
     12020-09-22  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][Floats] Remove the redundant RuntimeEnabledFeatures::layoutFormattingContextIntegrationEnabled() check from FloatingState::append
     4        https://bugs.webkit.org/show_bug.cgi?id=216866
     5
     6        Reviewed by Simon Fraser.
     7
     8        The no-layout-box-for-the-FloatItem codepath is reserved for the IFC integration. This is temporary anyway.
     9
     10        * layout/floats/FloatingState.cpp:
     11        (WebCore::Layout::FloatingState::append):
     12
    1132020-09-22  Lauro Moura  <lmoura@igalia.com>
    214
  • trunk/Source/WebCore/layout/floats/FloatingState.cpp

    r267076 r267460  
    6262void FloatingState::append(FloatItem floatItem)
    6363{
    64     ASSERT(is<ContainerBox>(*m_formattingContextRoot));
    65 #if ASSERT_ENABLED
    66     if (!RuntimeEnabledFeatures::sharedFeatures().layoutFormattingContextIntegrationEnabled()) {
    67         // The integration codepath does not construct a layout box for the float item.
    68         ASSERT(m_floats.findMatching([&] (auto& entry) {
    69             return entry.floatBox() == floatItem.floatBox();
    70         }) == notFound);
    71     }
    72 #endif
    73 
    7464    if (m_floats.isEmpty())
    7565        return m_floats.append(floatItem);
     66
     67    // The integration codepath does not construct a layout box for the float item.
     68    ASSERT_IMPLIES(floatItem.floatBox(), m_floats.findMatching([&] (auto& entry) {
     69        return entry.floatBox() == floatItem.floatBox();
     70    }) == notFound);
    7671
    7772    auto isLeftPositioned = floatItem.isLeftPositioned();
Note: See TracChangeset for help on using the changeset viewer.