[CSS Cascade Layers] Enable CSSImportRule.layerName for WebKitGTK
https://bugs.webkit.org/show_bug.cgi?id=235455

Reviewed by Darin Adler.

Source/WebCore:

Bug 231340 added support for CSSImportRule.layerName, but CMakeLists.txt
wasn't listing CSSImportRule+Layer.idl

So the attribute was not there when running WebKitGTK, built with CMake.

Tests: imported/w3c/web-platform-tests/css/css-cascade/idlharness.html
       imported/w3c/web-platform-tests/css/css-cascade/layer-rules-cssom.html

* CMakeLists.txt: link missing css/CSSImportRule+Layer.idl

LayoutTests:

Expect the tests to pass.

* platform/glib/imported/w3c/web-platform-tests/css/css-cascade/idlharness-expected.txt: Removed.
* platform/glib/imported/w3c/web-platform-tests/css/css-cascade/layer-rules-cssom-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@288404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index d983033..3ddfca8 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,15 @@
+2022-01-22  Oriol Brufau  <obrufau@igalia.com>
+
+        [CSS Cascade Layers] Enable CSSImportRule.layerName for WebKitGTK
+        https://bugs.webkit.org/show_bug.cgi?id=235455
+
+        Reviewed by Darin Adler.
+
+        Expect the tests to pass.
+
+        * platform/glib/imported/w3c/web-platform-tests/css/css-cascade/idlharness-expected.txt: Removed.
+        * platform/glib/imported/w3c/web-platform-tests/css/css-cascade/layer-rules-cssom-expected.txt: Removed.
+
 2022-01-21  Simon Fraser  <simon.fraser@apple.com>
 
         Unreviewed test resource change.
diff --git a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/idlharness-expected.txt b/LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/idlharness-expected.txt
deleted file mode 100644
index 4e98e9d..0000000
--- a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/idlharness-expected.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-
-PASS idl_test setup
-PASS idl_test validation
-PASS Partial interface CSSImportRule: original interface defined
-PASS Partial interface CSSImportRule: valid exposure set
-PASS Partial interface CSSImportRule: member names are unique
-PASS CSSLayerBlockRule interface: existence and properties of interface object
-PASS CSSLayerBlockRule interface object length
-PASS CSSLayerBlockRule interface object name
-PASS CSSLayerBlockRule interface: existence and properties of interface prototype object
-PASS CSSLayerBlockRule interface: existence and properties of interface prototype object's "constructor" property
-PASS CSSLayerBlockRule interface: existence and properties of interface prototype object's @@unscopables property
-PASS CSSLayerBlockRule interface: attribute name
-PASS CSSLayerBlockRule must be primary interface of block
-PASS Stringification of block
-PASS CSSLayerBlockRule interface: block must inherit property "name" with the proper type
-PASS CSSLayerStatementRule interface: existence and properties of interface object
-PASS CSSLayerStatementRule interface object length
-PASS CSSLayerStatementRule interface object name
-PASS CSSLayerStatementRule interface: existence and properties of interface prototype object
-PASS CSSLayerStatementRule interface: existence and properties of interface prototype object's "constructor" property
-PASS CSSLayerStatementRule interface: existence and properties of interface prototype object's @@unscopables property
-PASS CSSLayerStatementRule interface: attribute nameList
-PASS CSSLayerStatementRule must be primary interface of statement
-PASS Stringification of statement
-PASS CSSLayerStatementRule interface: statement must inherit property "nameList" with the proper type
-FAIL CSSImportRule interface: attribute layerName assert_true: The prototype object must have a property "layerName" expected true got false
-FAIL CSSImportRule interface: layeredImport must inherit property "layerName" with the proper type assert_inherits: property "layerName" not found in prototype chain
-
diff --git a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/layer-rules-cssom-expected.txt b/LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/layer-rules-cssom-expected.txt
deleted file mode 100644
index 2ffbaf0..0000000
--- a/LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/layer-rules-cssom-expected.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-
-PASS Basic layer block name
-PASS Anonymous layer block name
-PASS Basic layer statement name
-PASS Layer statement with multiple names
-PASS Nested layer block names
-PASS Nested layer statement name lists
-FAIL Import into anonymous layer assert_equals: expected (string) "" but got (undefined) undefined
-FAIL Import into named layer assert_equals: expected (string) "foo" but got (undefined) undefined
-FAIL Import without layer assert_equals: expected (object) null but got (undefined) undefined
-
diff --git a/Source/WebCore/CMakeLists.txt b/Source/WebCore/CMakeLists.txt
index 978a386..ccd76a1 100644
--- a/Source/WebCore/CMakeLists.txt
+++ b/Source/WebCore/CMakeLists.txt
@@ -758,6 +758,7 @@
     css/CSSFontFaceRule.idl
     css/CSSFontPaletteValuesRule.idl
     css/CSSGroupingRule.idl
+    css/CSSImportRule+Layer.idl
     css/CSSImportRule.idl
     css/CSSKeyframeRule.idl
     css/CSSKeyframesRule.idl
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index e40cf6c..aac132e3 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,20 @@
+2022-01-22  Oriol Brufau  <obrufau@igalia.com>
+
+        [CSS Cascade Layers] Enable CSSImportRule.layerName for WebKitGTK
+        https://bugs.webkit.org/show_bug.cgi?id=235455
+
+        Reviewed by Darin Adler.
+
+        Bug 231340 added support for CSSImportRule.layerName, but CMakeLists.txt
+        wasn't listing CSSImportRule+Layer.idl
+
+        So the attribute was not there when running WebKitGTK, built with CMake.
+
+        Tests: imported/w3c/web-platform-tests/css/css-cascade/idlharness.html
+               imported/w3c/web-platform-tests/css/css-cascade/layer-rules-cssom.html
+
+        * CMakeLists.txt: link missing css/CSSImportRule+Layer.idl
+
 2022-01-22  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK][a11y] Stop registering the tree when clients are connected with ATSPI