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

Changeset 280894 in webkit


Ignore:
Timestamp:
Aug 11, 2021, 3:15:10 AM (5 years ago)
Author:
Adrian Perez de Castro
Message:

Merge r274437 - 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:
releases/WebKitGTK/webkit-2.32/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog

    r280893 r280894  
     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-14  Zalan Bujtas  <zalan@apple.com>
    216
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp

    r271055 r280894  
    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.