Title: [274437] trunk/Source/WebCore
- Revision
- 274437
- Author
- [email protected]
- Date
- 2021-03-15 13:45:45 -0700 (Mon, 15 Mar 2021)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (274436 => 274437)
--- trunk/Source/WebCore/ChangeLog 2021-03-15 20:43:16 UTC (rev 274436)
+++ trunk/Source/WebCore/ChangeLog 2021-03-15 20:45:45 UTC (rev 274437)
@@ -1,3 +1,17 @@
+2021-03-15 Zalan Bujtas <[email protected]>
+
+ 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):
+
2021-03-15 Simon Fraser <[email protected]>
Change canvasChanged() to take a Optional<FloatRect>
Modified: trunk/Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp (274436 => 274437)
--- trunk/Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp 2021-03-15 20:43:16 UTC (rev 274436)
+++ trunk/Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp 2021-03-15 20:45:45 UTC (rev 274437)
@@ -288,7 +288,7 @@
// with inline content, then we can fold the inline content back together.
auto prev = makeWeakPtr(oldChild.previousSibling());
auto next = makeWeakPtr(oldChild.nextSibling());
- bool canMergeAnonymousBlocks = canMergeContiguousAnonymousBlocks(oldChild, prev.get(), next.get());
+ bool canMergeAnonymousBlocks = canCollapseAnonymousBlock == CanCollapseAnonymousBlock::Yes && canMergeContiguousAnonymousBlocks(oldChild, prev.get(), next.get());
auto takenChild = m_builder.detachFromRenderElement(parent, oldChild);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes