Title: [293916] trunk/Source/WebCore
Revision
293916
Author
[email protected]
Date
2022-05-06 12:07:47 -0700 (Fri, 06 May 2022)

Log Message

ASSERT in WebCore::StyleProperties::getGridTemplateValue
https://bugs.webkit.org/show_bug.cgi?id=240172

Reviewed by Dean Jackson.

Update StyleProperties::getGridTemplateValue with a more thorough check
as it is currently only checking the grid:none/grid:initial special keyword.

* css/StyleProperties.cpp:
(WebCore::StyleProperties::getGridTemplateValue const):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (293915 => 293916)


--- trunk/Source/WebCore/ChangeLog	2022-05-06 19:06:10 UTC (rev 293915)
+++ trunk/Source/WebCore/ChangeLog	2022-05-06 19:07:47 UTC (rev 293916)
@@ -1,3 +1,16 @@
+2022-05-06  Gabriel Nava Marino  <[email protected]>
+
+        ASSERT in WebCore::StyleProperties::getGridTemplateValue
+        https://bugs.webkit.org/show_bug.cgi?id=240172
+
+        Reviewed by Dean Jackson.
+
+        Update StyleProperties::getGridTemplateValue with a more thorough check
+        as it is currently only checking the grid:none/grid:initial special keyword.
+
+        * css/StyleProperties.cpp:
+        (WebCore::StyleProperties::getGridTemplateValue const):
+
 2022-05-06  Brent Fulgham  <[email protected]>
 
         Remove the viewportFitEnabled WKPreference now that it is always on 

Modified: trunk/Source/WebCore/css/StyleProperties.cpp (293915 => 293916)


--- trunk/Source/WebCore/css/StyleProperties.cpp	2022-05-06 19:06:10 UTC (rev 293915)
+++ trunk/Source/WebCore/css/StyleProperties.cpp	2022-05-06 19:07:47 UTC (rev 293916)
@@ -880,7 +880,7 @@
         return String();
 
     auto areas = propertyAt(areasIndex);
-    if (isValueID(areas.value(), CSSValueNone) || areas.value()->isInitialValue()) {
+    if (!is<CSSGridTemplateAreasValue>(areas.value())) {
         String rowsText = rows->cssText();
         result.append(rowsText);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to