Title: [273600] trunk
Revision
273600
Author
[email protected]
Date
2021-02-26 16:11:11 -0800 (Fri, 26 Feb 2021)

Log Message

[LFC][Coverage] Do not bail out on text underline position when text-decoration is 'none'
https://bugs.webkit.org/show_bug.cgi?id=222481

Reviewed by Antti Koivisto.

Source/WebCore:

* layout/integration/LayoutIntegrationCoverage.cpp:
(WebCore::LayoutIntegration::canUseForStyle):

LayoutTests:

* fast/text/simple-line-layout-with-text-underline-position-expected.html:
* fast/text/simple-line-layout-with-text-underline-position.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (273599 => 273600)


--- trunk/LayoutTests/ChangeLog	2021-02-26 23:51:27 UTC (rev 273599)
+++ trunk/LayoutTests/ChangeLog	2021-02-27 00:11:11 UTC (rev 273600)
@@ -1,3 +1,13 @@
+2021-02-26  Zalan Bujtas  <[email protected]>
+
+        [LFC][Coverage] Do not bail out on text underline position when text-decoration is 'none'
+        https://bugs.webkit.org/show_bug.cgi?id=222481
+
+        Reviewed by Antti Koivisto.
+
+        * fast/text/simple-line-layout-with-text-underline-position-expected.html:
+        * fast/text/simple-line-layout-with-text-underline-position.html:
+
 2021-02-26  Amir Mark Jr  <[email protected]>
 
         [BigSur Wk1] platform/mac-bigsur/media/media-source/media-source-webm-vp8-malformed-header.html is consistently failing

Modified: trunk/LayoutTests/fast/text/simple-line-layout-with-text-underline-position-expected.html (273599 => 273600)


--- trunk/LayoutTests/fast/text/simple-line-layout-with-text-underline-position-expected.html	2021-02-26 23:51:27 UTC (rev 273599)
+++ trunk/LayoutTests/fast/text/simple-line-layout-with-text-underline-position-expected.html	2021-02-27 00:11:11 UTC (rev 273600)
@@ -12,6 +12,7 @@
 }
 .second, .first {
 	text-underline-position: under;
+	text-decoration: underline;
 }
 </style>
 <script>

Modified: trunk/LayoutTests/fast/text/simple-line-layout-with-text-underline-position.html (273599 => 273600)


--- trunk/LayoutTests/fast/text/simple-line-layout-with-text-underline-position.html	2021-02-26 23:51:27 UTC (rev 273599)
+++ trunk/LayoutTests/fast/text/simple-line-layout-with-text-underline-position.html	2021-02-27 00:11:11 UTC (rev 273600)
@@ -4,7 +4,7 @@
 <title>This tests that simple line layout is disabled for text-underline-position: under</title>
 <style>
 div {
-    color: white;      
+    color: white;
 }
 
 .first {
@@ -12,6 +12,7 @@
 }
 .second, .first {
 	text-underline-position: under;
+	text-decoration: underline;
 }
 </style>
 <script>

Modified: trunk/Source/WebCore/ChangeLog (273599 => 273600)


--- trunk/Source/WebCore/ChangeLog	2021-02-26 23:51:27 UTC (rev 273599)
+++ trunk/Source/WebCore/ChangeLog	2021-02-27 00:11:11 UTC (rev 273600)
@@ -1,3 +1,13 @@
+2021-02-26  Zalan Bujtas  <[email protected]>
+
+        [LFC][Coverage] Do not bail out on text underline position when text-decoration is 'none'
+        https://bugs.webkit.org/show_bug.cgi?id=222481
+
+        Reviewed by Antti Koivisto.
+
+        * layout/integration/LayoutIntegrationCoverage.cpp:
+        (WebCore::LayoutIntegration::canUseForStyle):
+
 2021-02-26  Devin Rousso  <[email protected]>
 
         [Payment Request] log when the request is cancelled while waiting for the `Promise` provided to `show()`/`updateWith()` to settle

Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp (273599 => 273600)


--- trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp	2021-02-26 23:51:27 UTC (rev 273599)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp	2021-02-27 00:11:11 UTC (rev 273600)
@@ -525,7 +525,7 @@
         SET_REASON_AND_RETURN_IF_NEEDED(FlowHasOverflowNotVisible, reasons, includeReasons);
     if (style.textOverflow() == TextOverflow::Ellipsis)
         SET_REASON_AND_RETURN_IF_NEEDED(FlowHasTextOverflow, reasons, includeReasons);
-    if (style.textUnderlinePosition() != TextUnderlinePosition::Auto || !style.textUnderlineOffset().isAuto() || !style.textDecorationThickness().isAuto())
+    if (!style.textDecorationsInEffect().isEmpty() && (style.textUnderlinePosition() != TextUnderlinePosition::Auto || !style.textUnderlineOffset().isAuto() || !style.textDecorationThickness().isAuto()))
         SET_REASON_AND_RETURN_IF_NEEDED(FlowHasUnsupportedUnderlineDecoration, reasons, includeReasons);
     if (!style.isLeftToRightDirection())
         SET_REASON_AND_RETURN_IF_NEEDED(FlowIsNotLTR, reasons, includeReasons);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to