Bug 144825

Summary: Introduce ParentNode.idl / NonDocumentTypeChildNode.idl
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, darin, rniwa, sam, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 144822    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews103 for mac-mavericks
none
Archive of layout-test-results from ews106 for mac-mavericks-wk2
none
Patch
none
Patch
none
Patch none

Description Chris Dumez 2015-05-08 22:23:24 PDT
Introduce ParentNode.idl / NonDocumentTypeChildNode.idl as per DOM spec and to avoid IDL code duplication:
https://dom.spec.whatwg.org/#interface-parentnode
https://dom.spec.whatwg.org/#interface-nondocumenttypechildnode
Comment 1 Chris Dumez 2015-05-08 23:18:38 PDT
Created attachment 252769 [details]
Patch
Comment 2 Build Bot 2015-05-09 01:54:58 PDT
Comment on attachment 252769 [details]
Patch

Attachment 252769 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/6043336133574656

New failing tests:
js/dom/dom-static-property-for-in-iteration.html
Comment 3 Build Bot 2015-05-09 01:55:03 PDT
Created attachment 252771 [details]
Archive of layout-test-results from ews103 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 4 Build Bot 2015-05-09 02:18:22 PDT
Comment on attachment 252769 [details]
Patch

Attachment 252769 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5107545974767616

New failing tests:
js/dom/dom-static-property-for-in-iteration.html
Comment 5 Build Bot 2015-05-09 02:18:26 PDT
Created attachment 252773 [details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 6 Chris Dumez 2015-05-09 09:42:35 PDT
Created attachment 252777 [details]
Patch
Comment 7 Chris Dumez 2015-05-09 10:46:45 PDT
Created attachment 252782 [details]
Patch
Comment 8 Sam Weinig 2015-05-09 14:56:51 PDT
Comment on attachment 252782 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=252782&action=review

Nice. I didn't realize we supported the implements syntax.

> Source/WebCore/dom/NonDocumentTypeChildNode.idl:18
> +/*
> + * Copyright (C) 2015 Apple Inc. All rights reserved.
> + *
> + * This library is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU Library General Public
> + * License as published by the Free Software Foundation; either
> + * version 2 of the License, or (at your option) any later version.
> + *
> + * This library is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> + * Library General Public License for more details.
> + *
> + * You should have received a copy of the GNU Library General Public License
> + * along with this library; see the file COPYING.LIB.  If not, write to
> + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
> + * Boston, MA 02110-1301, USA.
> + */

This should probably be the two-clause BSD license.

> Source/WebCore/dom/ParentNode.idl:18
> + * This library is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU Library General Public
> + * License as published by the Free Software Foundation; either
> + * version 2 of the License, or (at your option) any later version.
> + *
> + * This library is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> + * Library General Public License for more details.
> + *
> + * You should have received a copy of the GNU Library General Public License
> + * along with this library; see the file COPYING.LIB.  If not, write to
> + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
> + * Boston, MA 02110-1301, USA.
> + */

This should probably be the two-clause BSD license.
Comment 9 Chris Dumez 2015-05-09 20:22:13 PDT
Created attachment 252796 [details]
Patch
Comment 10 Chris Dumez 2015-05-09 20:23:44 PDT
Comment on attachment 252796 [details]
Patch

Clearing flags on attachment: 252796

Committed r184042: <http://trac.webkit.org/changeset/184042>
Comment 11 Chris Dumez 2015-05-09 20:23:51 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Chris Dumez 2015-05-09 20:25:59 PDT
(In reply to comment #8)
> Comment on attachment 252782 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=252782&action=review
> 
> Nice. I didn't realize we supported the implements syntax.

Yes, for almost 2 years: http://trac.webkit.org/changeset/151740. It was needed to get rid of IDL multiple inheritance in SVG.