Title: [195157] trunk
Revision
195157
Author
[email protected]
Date
2016-01-15 16:08:44 -0800 (Fri, 15 Jan 2016)

Log Message

Drop obsolete DocumentType.entities / notations
https://bugs.webkit.org/show_bug.cgi?id=153147

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Rebaseline W3C test now that more checks are passing.

* web-platform-tests/dom/historical-expected.txt:

Source/WebCore:

Drop obsolete DocumentType.entities / notations attributes.

Firefox and Chrome already dropped those. We already dropped support for
entities and notations so these always returned null.

No new tests, already covered by existing tests.

* dom/DocumentType.h:
* dom/DocumentType.idl:

Modified Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (195156 => 195157)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2016-01-15 23:57:41 UTC (rev 195156)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2016-01-16 00:08:44 UTC (rev 195157)
@@ -1,3 +1,14 @@
+2016-01-15  Chris Dumez  <[email protected]>
+
+        Drop obsolete DocumentType.entities / notations
+        https://bugs.webkit.org/show_bug.cgi?id=153147
+
+        Reviewed by Ryosuke Niwa.
+
+        Rebaseline W3C test now that more checks are passing.
+
+        * web-platform-tests/dom/historical-expected.txt:
+
 2016-01-15  Ryosuke Niwa  <[email protected]>
 
         createElementNS and createAttributeNS should treat undefined namespaceURI as null string

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/historical-expected.txt (195156 => 195157)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/historical-expected.txt	2016-01-15 23:57:41 UTC (rev 195156)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/historical-expected.txt	2016-01-16 00:08:44 UTC (rev 195157)
@@ -35,8 +35,8 @@
 PASS Historical DOM features must be removed: setIdAttribute 
 PASS Historical DOM features must be removed: setIdAttributeNS 
 PASS Historical DOM features must be removed: setIdAttributeNode 
-FAIL DocumentType member must be nuked: entities assert_equals: expected (undefined) undefined but got (object) null
-FAIL DocumentType member must be nuked: notations assert_equals: expected (undefined) undefined but got (object) null
+PASS DocumentType member must be nuked: entities 
+PASS DocumentType member must be nuked: notations 
 FAIL DocumentType member must be nuked: internalSubset assert_equals: expected (undefined) undefined but got (object) null
 PASS Text member must be nuked: isElementContentWhitespace 
 FAIL Text member must be nuked: replaceWholeText assert_equals: expected (undefined) undefined but got (function) function "function replaceWholeText() {

Modified: trunk/Source/WebCore/ChangeLog (195156 => 195157)


--- trunk/Source/WebCore/ChangeLog	2016-01-15 23:57:41 UTC (rev 195156)
+++ trunk/Source/WebCore/ChangeLog	2016-01-16 00:08:44 UTC (rev 195157)
@@ -1,3 +1,20 @@
+2016-01-15  Chris Dumez  <[email protected]>
+
+        Drop obsolete DocumentType.entities / notations
+        https://bugs.webkit.org/show_bug.cgi?id=153147
+
+        Reviewed by Ryosuke Niwa.
+
+        Drop obsolete DocumentType.entities / notations attributes.
+
+        Firefox and Chrome already dropped those. We already dropped support for
+        entities and notations so these always returned null.
+
+        No new tests, already covered by existing tests.
+
+        * dom/DocumentType.h:
+        * dom/DocumentType.idl:
+
 2016-01-10  Simon Fraser  <[email protected]>
 
         Make a way to test display-list drawing

Modified: trunk/Source/WebCore/dom/DocumentType.h (195156 => 195157)


--- trunk/Source/WebCore/dom/DocumentType.h	2016-01-15 23:57:41 UTC (rev 195156)
+++ trunk/Source/WebCore/dom/DocumentType.h	2016-01-16 00:08:44 UTC (rev 195157)
@@ -37,9 +37,9 @@
         return adoptRef(*new DocumentType(document, name, publicId, systemId));
     }
 
-    // FIXME: We return null entities and notations. Current implementation of NamedNodeMap doesn't work without an associated Element yet.
-    NamedNodeMap* entities() const { return nullptr; }
-    NamedNodeMap* notations() const { return nullptr; }
+    // These is needed by native bindings for backward compatibility.
+    NamedNodeMap* entitiesForBindings() const { return nullptr; }
+    NamedNodeMap* notationsForBindings() const { return nullptr; }
 
     const String& name() const { return m_name; }
     const String& publicId() const { return m_publicId; }

Modified: trunk/Source/WebCore/dom/DocumentType.idl (195156 => 195157)


--- trunk/Source/WebCore/dom/DocumentType.idl	2016-01-15 23:57:41 UTC (rev 195156)
+++ trunk/Source/WebCore/dom/DocumentType.idl	2016-01-16 00:08:44 UTC (rev 195157)
@@ -25,9 +25,12 @@
     // DOM Level 1
 
     readonly attribute DOMString name;
-    readonly attribute NamedNodeMap entities;
-    readonly attribute NamedNodeMap notations;
 
+#if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
+    [ImplementedAs=entitiesForBindings] readonly attribute NamedNodeMap entities;
+    [ImplementedAs=notationsForBindings] readonly attribute NamedNodeMap notations;
+#endif
+
     // DOM Level 2
 
     [TreatReturnedNullStringAs=Null] readonly attribute DOMString publicId;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to