Title: [272152] trunk/Source/WebCore
- Revision
- 272152
- Author
- [email protected]
- Date
- 2021-02-01 11:26:36 -0800 (Mon, 01 Feb 2021)
Log Message
[LFC][Integration] Fix editing/execCommand/primitive-value-cleanup-minimal.htm
https://bugs.webkit.org/show_bug.cgi?id=221212
Reviewed by Zalan Bujtas.
* layout/integration/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::enclosingBorderBoxRectFor const):
To match legacy make RenderInline height return zero when there are no runs.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (272151 => 272152)
--- trunk/Source/WebCore/ChangeLog 2021-02-01 19:25:07 UTC (rev 272151)
+++ trunk/Source/WebCore/ChangeLog 2021-02-01 19:26:36 UTC (rev 272152)
@@ -1,3 +1,15 @@
+2021-02-01 Antti Koivisto <[email protected]>
+
+ [LFC][Integration] Fix editing/execCommand/primitive-value-cleanup-minimal.htm
+ https://bugs.webkit.org/show_bug.cgi?id=221212
+
+ Reviewed by Zalan Bujtas.
+
+ * layout/integration/LayoutIntegrationLineLayout.cpp:
+ (WebCore::LayoutIntegration::LineLayout::enclosingBorderBoxRectFor const):
+
+ To match legacy make RenderInline height return zero when there are no runs.
+
2021-02-01 Sam Weinig <[email protected]>
Avoid unnecessary chromatic adaptation when converting between colors with the same white point
Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp (272151 => 272152)
--- trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp 2021-02-01 19:25:07 UTC (rev 272151)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp 2021-02-01 19:26:36 UTC (rev 272152)
@@ -394,6 +394,9 @@
if (!m_inlineContent)
return { };
+ if (m_inlineContent->runs.isEmpty())
+ return { };
+
auto boxGeometry = m_inlineFormattingState.boxGeometry(m_boxTree.layoutBoxForRenderer(renderInline));
return { Layout::BoxGeometry::borderBoxTopLeft(boxGeometry), boxGeometry.contentBox().size() };
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes