Title: [285642] trunk/Source/WebCore
- Revision
- 285642
- Author
- [email protected]
- Date
- 2021-11-11 11:06:54 -0800 (Thu, 11 Nov 2021)
Log Message
[LFC][IFC] Reset InlineTextItem width on bidi split
https://bugs.webkit.org/show_bug.cgi?id=233002
Reviewed by Darin Adler.
We remeasure the individual inline items right before line breaking.
* layout/formattingContexts/inline/InlineTextItem.cpp:
(WebCore::Layout::InlineTextItem::split):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (285641 => 285642)
--- trunk/Source/WebCore/ChangeLog 2021-11-11 19:05:58 UTC (rev 285641)
+++ trunk/Source/WebCore/ChangeLog 2021-11-11 19:06:54 UTC (rev 285642)
@@ -1,3 +1,15 @@
+2021-11-11 Alan Bujtas <[email protected]>
+
+ [LFC][IFC] Reset InlineTextItem width on bidi split
+ https://bugs.webkit.org/show_bug.cgi?id=233002
+
+ Reviewed by Darin Adler.
+
+ We remeasure the individual inline items right before line breaking.
+
+ * layout/formattingContexts/inline/InlineTextItem.cpp:
+ (WebCore::Layout::InlineTextItem::split):
+
2021-11-11 Nikolaos Mouchtaris <[email protected]>
Make scroll granularity an enum class
Modified: trunk/Source/WebCore/layout/formattingContexts/inline/InlineTextItem.cpp (285641 => 285642)
--- trunk/Source/WebCore/layout/formattingContexts/inline/InlineTextItem.cpp 2021-11-11 19:05:58 UTC (rev 285641)
+++ trunk/Source/WebCore/layout/formattingContexts/inline/InlineTextItem.cpp 2021-11-11 19:06:54 UTC (rev 285642)
@@ -77,6 +77,8 @@
RELEASE_ASSERT(leftSideLength && leftSideLength < length());
auto rightSide = right(length() - leftSideLength, { });
m_length = length() - rightSide.length();
+ m_hasWidth = false;
+ m_width = { };
return rightSide;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes