Title: [253323] trunk/Source/WebCore
- Revision
- 253323
- Author
- [email protected]
- Date
- 2019-12-10 06:38:06 -0800 (Tue, 10 Dec 2019)
Log Message
[LFC][IFC] Fix fast/text/simple-line-layout-hyphenation-constrains.html
https://bugs.webkit.org/show_bug.cgi?id=205048
<rdar://problem/57780425>
Reviewed by Antti Koivisto.
Remove this hack for now and come up with a more sensible fix later if it breaks some tests.
* layout/inlineformatting/InlineLineBreaker.cpp:
(WebCore::Layout::LineBreaker::tryBreakingTextRun const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253322 => 253323)
--- trunk/Source/WebCore/ChangeLog 2019-12-10 14:34:42 UTC (rev 253322)
+++ trunk/Source/WebCore/ChangeLog 2019-12-10 14:38:06 UTC (rev 253323)
@@ -1,5 +1,18 @@
2019-12-10 Zalan Bujtas <[email protected]>
+ [LFC][IFC] Fix fast/text/simple-line-layout-hyphenation-constrains.html
+ https://bugs.webkit.org/show_bug.cgi?id=205048
+ <rdar://problem/57780425>
+
+ Reviewed by Antti Koivisto.
+
+ Remove this hack for now and come up with a more sensible fix later if it breaks some tests.
+
+ * layout/inlineformatting/InlineLineBreaker.cpp:
+ (WebCore::Layout::LineBreaker::tryBreakingTextRun const):
+
+2019-12-10 Zalan Bujtas <[email protected]>
+
[LFC][IFC] Fix fast/text/basic/005.html
https://bugs.webkit.org/show_bug.cgi?id=205047
<rdar://problem/57780017>
Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLineBreaker.cpp (253322 => 253323)
--- trunk/Source/WebCore/layout/inlineformatting/InlineLineBreaker.cpp 2019-12-10 14:34:42 UTC (rev 253322)
+++ trunk/Source/WebCore/layout/inlineformatting/InlineLineBreaker.cpp 2019-12-10 14:38:06 UTC (rev 253323)
@@ -207,8 +207,7 @@
auto hyphenWidth = InlineLayoutUnit { fontCascade.width(TextRun { StringView { style.hyphenString() } }) };
auto availableWidthExcludingHyphen = availableWidth - hyphenWidth;
- // For spaceWidth() see webkit.org/b/169613
- if (availableWidthExcludingHyphen <= 0 || !enoughWidthForHyphenation(availableWidthExcludingHyphen + fontCascade.spaceWidth(), fontCascade.pixelSize()))
+ if (availableWidthExcludingHyphen <= 0 || !enoughWidthForHyphenation(availableWidthExcludingHyphen, fontCascade.pixelSize()))
return { };
leftSideLength = TextUtil::split(inlineTextItem.layoutBox(), inlineTextItem.start(), runLength, overflowRun.logicalWidth, availableWidthExcludingHyphen, { }).length;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes