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

Changeset 274437 in webkit


Ignore:
Timestamp:
Mar 15, 2021, 1:45:45 PM (5 years ago)
Author:
Alan Bujtas
Message:

Do not collapse the anonymous block when it is a candidate container for the list marker
https://bugs.webkit.org/show_bug.cgi?id=223196
<rdar://74574330>

Reviewed by Antti Koivisto.

Do not merge empty anonymous siblings when the callers says "do not collpase anonymous block". Those merge candidate
anonymous blocks may be candidate containers for some other conent (we expand on r238119 here).

  • rendering/updating/RenderTreeBuilderBlock.cpp:

(WebCore::RenderTreeBuilder::Block::detach):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r274436 r274437  
     12021-03-15  Zalan Bujtas  <zalan@apple.com>
     2
     3        Do not collapse the anonymous block when it is a candidate container for the list marker
     4        https://bugs.webkit.org/show_bug.cgi?id=223196
     5        <rdar://74574330>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Do not merge empty anonymous siblings when the callers says "do not collpase anonymous block". Those merge candidate
     10        anonymous blocks may be candidate containers for some other conent (we expand on r238119 here).
     11
     12        * rendering/updating/RenderTreeBuilderBlock.cpp:
     13        (WebCore::RenderTreeBuilder::Block::detach):
     14
    1152021-03-15  Simon Fraser  <simon.fraser@apple.com>
    216
  • trunk/Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp

    r271055 r274437  
    289289    auto prev = makeWeakPtr(oldChild.previousSibling());
    290290    auto next = makeWeakPtr(oldChild.nextSibling());
    291     bool canMergeAnonymousBlocks = canMergeContiguousAnonymousBlocks(oldChild, prev.get(), next.get());
     291    bool canMergeAnonymousBlocks = canCollapseAnonymousBlock == CanCollapseAnonymousBlock::Yes && canMergeContiguousAnonymousBlocks(oldChild, prev.get(), next.get());
    292292
    293293    auto takenChild = m_builder.detachFromRenderElement(parent, oldChild);
Note: See TracChangeset for help on using the changeset viewer.