Title: [290773] trunk/Source/WebCore
Revision
290773
Author
[email protected]
Date
2022-03-03 03:06:57 -0800 (Thu, 03 Mar 2022)

Log Message

REGRESSION (r290512): imported/blink/fast/table/crash-output-element-as-column-group.html asserts sometimes
https://bugs.webkit.org/show_bug.cgi?id=237393

Reviewed by Simon Fraser.

Merging https://chromium.googlesource.com/chromium/src/+/1cfc9b9c37f43567529b09a9824d6d3a7bd9abb6%5E%21/#F2
The reason why crash-output-element-as-column-group.html crashes after r290512 is because
now we allow colgroup after the table content (thead, tbody) -prior to r290512, this test was pretty much a no-op.

* rendering/RenderTableCol.cpp:
(WebCore::RenderTableCol::updateFromElement):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (290772 => 290773)


--- trunk/Source/WebCore/ChangeLog	2022-03-03 10:08:44 UTC (rev 290772)
+++ trunk/Source/WebCore/ChangeLog	2022-03-03 11:06:57 UTC (rev 290773)
@@ -1,3 +1,17 @@
+2022-03-03  Alan Bujtas  <[email protected]>
+
+        REGRESSION (r290512): imported/blink/fast/table/crash-output-element-as-column-group.html asserts sometimes
+        https://bugs.webkit.org/show_bug.cgi?id=237393
+
+        Reviewed by Simon Fraser.
+
+        Merging https://chromium.googlesource.com/chromium/src/+/1cfc9b9c37f43567529b09a9824d6d3a7bd9abb6%5E%21/#F2
+        The reason why crash-output-element-as-column-group.html crashes after r290512 is because
+        now we allow colgroup after the table content (thead, tbody) -prior to r290512, this test was pretty much a no-op.
+
+        * rendering/RenderTableCol.cpp:
+        (WebCore::RenderTableCol::updateFromElement):
+
 2022-03-03  Commit Queue  <[email protected]>
 
         Unreviewed, reverting r290756.

Modified: trunk/Source/WebCore/rendering/RenderTableCol.cpp (290772 => 290773)


--- trunk/Source/WebCore/rendering/RenderTableCol.cpp	2022-03-03 10:08:44 UTC (rev 290772)
+++ trunk/Source/WebCore/rendering/RenderTableCol.cpp	2022-03-03 11:06:57 UTC (rev 290773)
@@ -93,7 +93,7 @@
         HTMLTableColElement& tc = static_cast<HTMLTableColElement&>(*element());
         m_span = tc.span();
     } else
-        m_span = !(hasInitializedStyle() && style().display() == DisplayType::TableColumnGroup);
+        m_span = 1;
     if (m_span != oldSpan && hasInitializedStyle() && parent())
         setNeedsLayoutAndPrefWidthsRecalc();
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to