Changeset 267460 in webkit
- Timestamp:
- Sep 22, 2020, 8:48:22 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
layout/floats/FloatingState.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r267457 r267460 1 2020-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 1 13 2020-09-22 Lauro Moura <lmoura@igalia.com> 2 14 -
trunk/Source/WebCore/layout/floats/FloatingState.cpp
r267076 r267460 62 62 void FloatingState::append(FloatItem floatItem) 63 63 { 64 ASSERT(is<ContainerBox>(*m_formattingContextRoot));65 #if ASSERT_ENABLED66 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 #endif73 74 64 if (m_floats.isEmpty()) 75 65 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); 76 71 77 72 auto isLeftPositioned = floatItem.isLeftPositioned();
Note:
See TracChangeset
for help on using the changeset viewer.