<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[201541] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/201541">201541</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-05-31 17:45:59 -0700 (Tue, 31 May 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: ReportExtraMemoryCost IDL attribute should also be used to generate estimatedSize method
https://bugs.webkit.org/show_bug.cgi?id=158144

Patch by Joseph Pecoraro &lt;pecoraro@apple.com&gt; on 2016-05-31
Reviewed by Darin Adler.

* bindings/scripts/CodeGeneratorJS.pm:
(InstanceNeedsEstimatedSize):
(GenerateHeader):
(GenerateImplementation):
When an interface includes ReportExtraMemoryCost, generate an estimatedSize
method which includes the Base::estimatedSize and the memoryCost().

* bindings/scripts/test/GObject/WebKitDOMInterfaceName.cpp: Added.
(WebKit::kit):
(WebKit::core):
(WebKit::wrapInterfaceName):
(webkit_dom_interface_name_finalize):
(webkit_dom_interface_name_constructor):
(webkit_dom_interface_name_class_init):
(webkit_dom_interface_name_init):
* bindings/scripts/test/GObject/WebKitDOMInterfaceName.h: Added.
* bindings/scripts/test/GObject/WebKitDOMInterfaceNamePrivate.h: Added.
* bindings/scripts/test/JS/JSInterfaceName.cpp: Added.
(WebCore::JSInterfaceNamePrototype::create):
(WebCore::JSInterfaceNamePrototype::createStructure):
(WebCore::JSInterfaceNamePrototype::JSInterfaceNamePrototype):
(WebCore::JSInterfaceNameConstructor::prototypeForStructure):
(WebCore::JSInterfaceNameConstructor::initializeProperties):
(WebCore::JSInterfaceNamePrototype::finishCreation):
(WebCore::JSInterfaceName::JSInterfaceName):
(WebCore::JSInterfaceName::createPrototype):
(WebCore::JSInterfaceName::prototype):
(WebCore::JSInterfaceName::destroy):
(WebCore::jsInterfaceNameConstructor):
(WebCore::setJSInterfaceNameConstructor):
(WebCore::JSInterfaceName::getConstructor):
(WebCore::JSInterfaceName::visitChildren):
(WebCore::JSInterfaceName::estimatedSize):
(WebCore::JSInterfaceNameOwner::isReachableFromOpaqueRoots):
(WebCore::JSInterfaceNameOwner::finalize):
(WebCore::toJSNewlyCreated):
(WebCore::toJS):
(WebCore::JSInterfaceName::toWrapped):
* bindings/scripts/test/JS/JSInterfaceName.h: Added.
(WebCore::JSInterfaceName::create):
(WebCore::JSInterfaceName::createStructure):
(WebCore::JSInterfaceName::finishCreation):
(WebCore::wrapperOwner):
(WebCore::wrapperKey):
(WebCore::toJS):
(WebCore::toJSNewlyCreated):
* bindings/scripts/test/ObjC/DOMInterfaceName.h: Added.
* bindings/scripts/test/ObjC/DOMInterfaceName.mm: Added.
(-[DOMInterfaceName dealloc]):
(core):
(kit):
* bindings/scripts/test/ObjC/DOMInterfaceNameInternal.h: Added.
* bindings/scripts/test/TestReportExtraMemoryCost.idl: Added.
Include a test for the ReportExtraMemoryCost attribute.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMInterfaceNamecpp">trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceName.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMInterfaceNameh">trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceName.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMInterfaceNamePrivateh">trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceNamePrivate.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSInterfaceNamecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSInterfaceName.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSInterfaceNameh">trunk/Source/WebCore/bindings/scripts/test/JS/JSInterfaceName.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestObjCDOMInterfaceNameh">trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceName.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestObjCDOMInterfaceNamemm">trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceName.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestObjCDOMInterfaceNameInternalh">trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceNameInternal.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestTestReportExtraMemoryCostidl">trunk/Source/WebCore/bindings/scripts/test/TestReportExtraMemoryCost.idl</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (201540 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-06-01 00:31:13 UTC (rev 201540)
+++ trunk/Source/WebCore/ChangeLog        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -1,3 +1,65 @@
</span><ins>+2016-05-31  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
+
+        Web Inspector: ReportExtraMemoryCost IDL attribute should also be used to generate estimatedSize method
+        https://bugs.webkit.org/show_bug.cgi?id=158144
+
+        Reviewed by Darin Adler.
+
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (InstanceNeedsEstimatedSize):
+        (GenerateHeader):
+        (GenerateImplementation):
+        When an interface includes ReportExtraMemoryCost, generate an estimatedSize
+        method which includes the Base::estimatedSize and the memoryCost().
+
+        * bindings/scripts/test/GObject/WebKitDOMInterfaceName.cpp: Added.
+        (WebKit::kit):
+        (WebKit::core):
+        (WebKit::wrapInterfaceName):
+        (webkit_dom_interface_name_finalize):
+        (webkit_dom_interface_name_constructor):
+        (webkit_dom_interface_name_class_init):
+        (webkit_dom_interface_name_init):
+        * bindings/scripts/test/GObject/WebKitDOMInterfaceName.h: Added.
+        * bindings/scripts/test/GObject/WebKitDOMInterfaceNamePrivate.h: Added.
+        * bindings/scripts/test/JS/JSInterfaceName.cpp: Added.
+        (WebCore::JSInterfaceNamePrototype::create):
+        (WebCore::JSInterfaceNamePrototype::createStructure):
+        (WebCore::JSInterfaceNamePrototype::JSInterfaceNamePrototype):
+        (WebCore::JSInterfaceNameConstructor::prototypeForStructure):
+        (WebCore::JSInterfaceNameConstructor::initializeProperties):
+        (WebCore::JSInterfaceNamePrototype::finishCreation):
+        (WebCore::JSInterfaceName::JSInterfaceName):
+        (WebCore::JSInterfaceName::createPrototype):
+        (WebCore::JSInterfaceName::prototype):
+        (WebCore::JSInterfaceName::destroy):
+        (WebCore::jsInterfaceNameConstructor):
+        (WebCore::setJSInterfaceNameConstructor):
+        (WebCore::JSInterfaceName::getConstructor):
+        (WebCore::JSInterfaceName::visitChildren):
+        (WebCore::JSInterfaceName::estimatedSize):
+        (WebCore::JSInterfaceNameOwner::isReachableFromOpaqueRoots):
+        (WebCore::JSInterfaceNameOwner::finalize):
+        (WebCore::toJSNewlyCreated):
+        (WebCore::toJS):
+        (WebCore::JSInterfaceName::toWrapped):
+        * bindings/scripts/test/JS/JSInterfaceName.h: Added.
+        (WebCore::JSInterfaceName::create):
+        (WebCore::JSInterfaceName::createStructure):
+        (WebCore::JSInterfaceName::finishCreation):
+        (WebCore::wrapperOwner):
+        (WebCore::wrapperKey):
+        (WebCore::toJS):
+        (WebCore::toJSNewlyCreated):
+        * bindings/scripts/test/ObjC/DOMInterfaceName.h: Added.
+        * bindings/scripts/test/ObjC/DOMInterfaceName.mm: Added.
+        (-[DOMInterfaceName dealloc]):
+        (core):
+        (kit):
+        * bindings/scripts/test/ObjC/DOMInterfaceNameInternal.h: Added.
+        * bindings/scripts/test/TestReportExtraMemoryCost.idl: Added.
+        Include a test for the ReportExtraMemoryCost attribute.
+
</ins><span class="cx"> 2016-05-31  Alex Christensen  &lt;achristensen@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Fix assertion after r201447
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (201540 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-06-01 00:31:13 UTC (rev 201540)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -735,6 +735,12 @@
</span><span class="cx">         || IsJSBuiltinConstructor($interface)
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+sub InstanceNeedsEstimatedSize
+{
+    my $interface = shift;
+    return $interface-&gt;extendedAttributes-&gt;{&quot;ReportExtraMemoryCost&quot;};
+}
+
</ins><span class="cx"> sub GetImplClassName
</span><span class="cx"> {
</span><span class="cx">     my $name = shift;
</span><span class="lines">@@ -1318,6 +1324,10 @@
</span><span class="cx">         push(@headerContent, &quot;\n&quot;);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if (InstanceNeedsEstimatedSize($interface)) {
+        push(@headerContent, &quot;    static size_t estimatedSize(JSCell*);\n&quot;);
+    }
+
</ins><span class="cx">     if ($numCustomAttributes &gt; 0) {
</span><span class="cx">         push(@headerContent, &quot;\n    // Custom attributes\n&quot;);
</span><span class="cx"> 
</span><span class="lines">@@ -3261,6 +3271,14 @@
</span><span class="cx">         push(@implContent, &quot;}\n\n&quot;);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if (InstanceNeedsEstimatedSize($interface)) {
+        push(@implContent, &quot;size_t ${className}::estimatedSize(JSCell* cell)\n&quot;);
+        push(@implContent, &quot;{\n&quot;);
+        push(@implContent, &quot;    auto* thisObject = jsCast&lt;${className}*&gt;(cell);\n&quot;);
+        push(@implContent, &quot;    return Base::estimatedSize(thisObject) + thisObject-&gt;wrapped().memoryCost();\n&quot;);
+        push(@implContent, &quot;}\n\n&quot;);
+    }
+
</ins><span class="cx">     # Cached attributes are indeed allowed when there is a custom mark/visitChildren function.
</span><span class="cx">     # The custom function must make sure to account for the cached attribute.
</span><span class="cx">     # Uncomment the below line to temporarily enforce generated mark functions when cached attributes are present.
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMInterfaceNamecpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceName.cpp (0 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceName.cpp                                (rev 0)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceName.cpp        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -0,0 +1,104 @@
</span><ins>+/*
+ *  This file is part of the WebKit open source project.
+ *  This file has been generated by generate-bindings.pl. DO NOT MODIFY!
+ *
+ *  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.
+ */
+
+#include &quot;config.h&quot;
+#include &quot;WebKitDOMInterfaceName.h&quot;
+
+#include &quot;CSSImportRule.h&quot;
+#include &quot;DOMObjectCache.h&quot;
+#include &quot;Document.h&quot;
+#include &quot;ExceptionCode.h&quot;
+#include &quot;ExceptionCodeDescription.h&quot;
+#include &quot;JSMainThreadExecState.h&quot;
+#include &quot;WebKitDOMInterfaceNamePrivate.h&quot;
+#include &quot;WebKitDOMPrivate.h&quot;
+#include &quot;gobject/ConvertToUTF8String.h&quot;
+#include &lt;wtf/GetPtr.h&gt;
+#include &lt;wtf/RefPtr.h&gt;
+
+#define WEBKIT_DOM_INTERFACE_NAME_GET_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE(obj, WEBKIT_DOM_TYPE_INTERFACE_NAME, WebKitDOMInterfaceNamePrivate)
+
+typedef struct _WebKitDOMInterfaceNamePrivate {
+    RefPtr&lt;WebCore::InterfaceName&gt; coreObject;
+} WebKitDOMInterfaceNamePrivate;
+
+namespace WebKit {
+
+WebKitDOMInterfaceName* kit(WebCore::InterfaceName* obj)
+{
+    if (!obj)
+        return 0;
+
+    if (gpointer ret = DOMObjectCache::get(obj))
+        return WEBKIT_DOM_INTERFACE_NAME(ret);
+
+    return wrapInterfaceName(obj);
+}
+
+WebCore::InterfaceName* core(WebKitDOMInterfaceName* request)
+{
+    return request ? static_cast&lt;WebCore::InterfaceName*&gt;(WEBKIT_DOM_OBJECT(request)-&gt;coreObject) : 0;
+}
+
+WebKitDOMInterfaceName* wrapInterfaceName(WebCore::InterfaceName* coreObject)
+{
+    ASSERT(coreObject);
+    return WEBKIT_DOM_INTERFACE_NAME(g_object_new(WEBKIT_DOM_TYPE_INTERFACE_NAME, &quot;core-object&quot;, coreObject, nullptr));
+}
+
+} // namespace WebKit
+
+G_DEFINE_TYPE(WebKitDOMInterfaceName, webkit_dom_interface_name, WEBKIT_DOM_TYPE_OBJECT)
+
+static void webkit_dom_interface_name_finalize(GObject* object)
+{
+    WebKitDOMInterfaceNamePrivate* priv = WEBKIT_DOM_INTERFACE_NAME_GET_PRIVATE(object);
+
+    WebKit::DOMObjectCache::forget(priv-&gt;coreObject.get());
+
+    priv-&gt;~WebKitDOMInterfaceNamePrivate();
+    G_OBJECT_CLASS(webkit_dom_interface_name_parent_class)-&gt;finalize(object);
+}
+
+static GObject* webkit_dom_interface_name_constructor(GType type, guint constructPropertiesCount, GObjectConstructParam* constructProperties)
+{
+    GObject* object = G_OBJECT_CLASS(webkit_dom_interface_name_parent_class)-&gt;constructor(type, constructPropertiesCount, constructProperties);
+
+    WebKitDOMInterfaceNamePrivate* priv = WEBKIT_DOM_INTERFACE_NAME_GET_PRIVATE(object);
+    priv-&gt;coreObject = static_cast&lt;WebCore::InterfaceName*&gt;(WEBKIT_DOM_OBJECT(object)-&gt;coreObject);
+    WebKit::DOMObjectCache::put(priv-&gt;coreObject.get(), object);
+
+    return object;
+}
+
+static void webkit_dom_interface_name_class_init(WebKitDOMInterfaceNameClass* requestClass)
+{
+    GObjectClass* gobjectClass = G_OBJECT_CLASS(requestClass);
+    g_type_class_add_private(gobjectClass, sizeof(WebKitDOMInterfaceNamePrivate));
+    gobjectClass-&gt;constructor = webkit_dom_interface_name_constructor;
+    gobjectClass-&gt;finalize = webkit_dom_interface_name_finalize;
+}
+
+static void webkit_dom_interface_name_init(WebKitDOMInterfaceName* request)
+{
+    WebKitDOMInterfaceNamePrivate* priv = WEBKIT_DOM_INTERFACE_NAME_GET_PRIVATE(request);
+    new (priv) WebKitDOMInterfaceNamePrivate();
+}
+
</ins></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMInterfaceNameh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceName.h (0 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceName.h                                (rev 0)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceName.h        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+/*
+ *  This file is part of the WebKit open source project.
+ *  This file has been generated by generate-bindings.pl. DO NOT MODIFY!
+ *
+ *  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.
+ */
+
+#ifndef WebKitDOMInterfaceName_h
+#define WebKitDOMInterfaceName_h
+
+#ifdef WEBKIT_DOM_USE_UNSTABLE_API
+
+#include &lt;glib-object.h&gt;
+#include &lt;webkitdom/WebKitDOMObject.h&gt;
+#include &lt;webkitdom/webkitdomdefines-unstable.h&gt;
+
+G_BEGIN_DECLS
+
+#define WEBKIT_DOM_TYPE_INTERFACE_NAME            (webkit_dom_interface_name_get_type())
+#define WEBKIT_DOM_INTERFACE_NAME(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_INTERFACE_NAME, WebKitDOMInterfaceName))
+#define WEBKIT_DOM_INTERFACE_NAME_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),  WEBKIT_DOM_TYPE_INTERFACE_NAME, WebKitDOMInterfaceNameClass)
+#define WEBKIT_DOM_IS_INTERFACE_NAME(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_INTERFACE_NAME))
+#define WEBKIT_DOM_IS_INTERFACE_NAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),  WEBKIT_DOM_TYPE_INTERFACE_NAME))
+#define WEBKIT_DOM_INTERFACE_NAME_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),  WEBKIT_DOM_TYPE_INTERFACE_NAME, WebKitDOMInterfaceNameClass))
+
+struct _WebKitDOMInterfaceName {
+    WebKitDOMObject parent_instance;
+};
+
+struct _WebKitDOMInterfaceNameClass {
+    WebKitDOMObjectClass parent_class;
+};
+
+WEBKIT_API GType
+webkit_dom_interface_name_get_type(void);
+
+G_END_DECLS
+
+#endif /* WEBKIT_DOM_USE_UNSTABLE_API */
+#endif /* WebKitDOMInterfaceName_h */
</ins></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMInterfaceNamePrivateh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceNamePrivate.h (0 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceNamePrivate.h                                (rev 0)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMInterfaceNamePrivate.h        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+/*
+ *  This file is part of the WebKit open source project.
+ *  This file has been generated by generate-bindings.pl. DO NOT MODIFY!
+ *
+ *  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.
+ */
+
+#ifndef WebKitDOMInterfaceNamePrivate_h
+#define WebKitDOMInterfaceNamePrivate_h
+
+#include &quot;InterfaceName.h&quot;
+#include &lt;webkitdom/WebKitDOMInterfaceName.h&gt;
+
+namespace WebKit {
+WebKitDOMInterfaceName* wrapInterfaceName(WebCore::InterfaceName*);
+WebKitDOMInterfaceName* kit(WebCore::InterfaceName*);
+WebCore::InterfaceName* core(WebKitDOMInterfaceName*);
+} // namespace WebKit
+
+#endif /* WebKitDOMInterfaceNamePrivate_h */
</ins></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSInterfaceNamecpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/bindings/scripts/test/JS/JSInterfaceName.cpp (0 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSInterfaceName.cpp                                (rev 0)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSInterfaceName.cpp        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -0,0 +1,217 @@
</span><ins>+/*
+    This file is part of the WebKit open source project.
+    This file has been generated by generate-bindings.pl. DO NOT MODIFY!
+
+    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.
+*/
+
+#include &quot;config.h&quot;
+#include &quot;JSInterfaceName.h&quot;
+
+#include &quot;JSDOMBinding.h&quot;
+#include &quot;JSDOMConstructor.h&quot;
+#include &lt;runtime/FunctionPrototype.h&gt;
+#include &lt;wtf/GetPtr.h&gt;
+
+using namespace JSC;
+
+namespace WebCore {
+
+// Attributes
+
+JSC::EncodedJSValue jsInterfaceNameConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName, JSC::JSObject*);
+bool setJSInterfaceNameConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
+
+class JSInterfaceNamePrototype : public JSC::JSNonFinalObject {
+public:
+    typedef JSC::JSNonFinalObject Base;
+    static JSInterfaceNamePrototype* create(JSC::VM&amp; vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
+    {
+        JSInterfaceNamePrototype* ptr = new (NotNull, JSC::allocateCell&lt;JSInterfaceNamePrototype&gt;(vm.heap)) JSInterfaceNamePrototype(vm, globalObject, structure);
+        ptr-&gt;finishCreation(vm);
+        return ptr;
+    }
+
+    DECLARE_INFO;
+    static JSC::Structure* createStructure(JSC::VM&amp; vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
+    {
+        return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
+    }
+
+private:
+    JSInterfaceNamePrototype(JSC::VM&amp; vm, JSC::JSGlobalObject*, JSC::Structure* structure)
+        : JSC::JSNonFinalObject(vm, structure)
+    {
+    }
+
+    void finishCreation(JSC::VM&amp;);
+};
+
+typedef JSDOMConstructorNotConstructable&lt;JSInterfaceName&gt; JSInterfaceNameConstructor;
+
+template&lt;&gt; JSValue JSInterfaceNameConstructor::prototypeForStructure(JSC::VM&amp; vm, const JSDOMGlobalObject&amp; globalObject)
+{
+    UNUSED_PARAM(vm);
+    return globalObject.functionPrototype();
+}
+
+template&lt;&gt; void JSInterfaceNameConstructor::initializeProperties(VM&amp; vm, JSDOMGlobalObject&amp; globalObject)
+{
+    putDirect(vm, vm.propertyNames-&gt;prototype, JSInterfaceName::prototype(vm, &amp;globalObject), DontDelete | ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames-&gt;name, jsNontrivialString(&amp;vm, String(ASCIILiteral(&quot;InterfaceName&quot;))), ReadOnly | DontEnum);
+    putDirect(vm, vm.propertyNames-&gt;length, jsNumber(0), ReadOnly | DontEnum);
+}
+
+template&lt;&gt; const ClassInfo JSInterfaceNameConstructor::s_info = { &quot;InterfaceName&quot;, &amp;Base::s_info, 0, CREATE_METHOD_TABLE(JSInterfaceNameConstructor) };
+
+/* Hash table for prototype */
+
+static const HashTableValue JSInterfaceNamePrototypeTableValues[] =
+{
+    { &quot;constructor&quot;, DontEnum, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsInterfaceNameConstructor), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSInterfaceNameConstructor) } },
+};
+
+const ClassInfo JSInterfaceNamePrototype::s_info = { &quot;InterfaceNamePrototype&quot;, &amp;Base::s_info, 0, CREATE_METHOD_TABLE(JSInterfaceNamePrototype) };
+
+void JSInterfaceNamePrototype::finishCreation(VM&amp; vm)
+{
+    Base::finishCreation(vm);
+    reifyStaticProperties(vm, JSInterfaceNamePrototypeTableValues, *this);
+}
+
+const ClassInfo JSInterfaceName::s_info = { &quot;InterfaceName&quot;, &amp;Base::s_info, 0, CREATE_METHOD_TABLE(JSInterfaceName) };
+
+JSInterfaceName::JSInterfaceName(Structure* structure, JSDOMGlobalObject&amp; globalObject, Ref&lt;InterfaceName&gt;&amp;&amp; impl)
+    : JSDOMWrapper&lt;InterfaceName&gt;(structure, globalObject, WTFMove(impl))
+{
+}
+
+JSObject* JSInterfaceName::createPrototype(VM&amp; vm, JSGlobalObject* globalObject)
+{
+    return JSInterfaceNamePrototype::create(vm, globalObject, JSInterfaceNamePrototype::createStructure(vm, globalObject, globalObject-&gt;objectPrototype()));
+}
+
+JSObject* JSInterfaceName::prototype(VM&amp; vm, JSGlobalObject* globalObject)
+{
+    return getDOMPrototype&lt;JSInterfaceName&gt;(vm, globalObject);
+}
+
+void JSInterfaceName::destroy(JSC::JSCell* cell)
+{
+    JSInterfaceName* thisObject = static_cast&lt;JSInterfaceName*&gt;(cell);
+    thisObject-&gt;JSInterfaceName::~JSInterfaceName();
+}
+
+EncodedJSValue jsInterfaceNameConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName, JSObject*)
+{
+    JSInterfaceNamePrototype* domObject = jsDynamicCast&lt;JSInterfaceNamePrototype*&gt;(JSValue::decode(thisValue));
+    if (UNLIKELY(!domObject))
+        return throwVMTypeError(state);
+    return JSValue::encode(JSInterfaceName::getConstructor(state-&gt;vm(), domObject-&gt;globalObject()));
+}
+
+bool setJSInterfaceNameConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
+{
+    JSValue value = JSValue::decode(encodedValue);
+    JSInterfaceNamePrototype* domObject = jsDynamicCast&lt;JSInterfaceNamePrototype*&gt;(JSValue::decode(thisValue));
+    if (UNLIKELY(!domObject)) {
+        throwVMTypeError(state);
+        return false;
+    }
+    // Shadowing a built-in constructor
+    return domObject-&gt;putDirect(state-&gt;vm(), state-&gt;propertyNames().constructor, value);
+}
+
+JSValue JSInterfaceName::getConstructor(VM&amp; vm, const JSGlobalObject* globalObject)
+{
+    return getDOMConstructor&lt;JSInterfaceNameConstructor&gt;(vm, *jsCast&lt;const JSDOMGlobalObject*&gt;(globalObject));
+}
+
+void JSInterfaceName::visitChildren(JSCell* cell, SlotVisitor&amp; visitor)
+{
+    auto* thisObject = jsCast&lt;JSInterfaceName*&gt;(cell);
+    ASSERT_GC_OBJECT_INHERITS(thisObject, info());
+    Base::visitChildren(thisObject, visitor);
+    visitor.reportExtraMemoryVisited(thisObject-&gt;wrapped().memoryCost());
+}
+
+size_t JSInterfaceName::estimatedSize(JSCell* cell)
+{
+    auto* thisObject = jsCast&lt;JSInterfaceName*&gt;(cell);
+    return Base::estimatedSize(thisObject) + thisObject-&gt;wrapped().memoryCost();
+}
+
+bool JSInterfaceNameOwner::isReachableFromOpaqueRoots(JSC::Handle&lt;JSC::Unknown&gt; handle, void*, SlotVisitor&amp; visitor)
+{
+    UNUSED_PARAM(handle);
+    UNUSED_PARAM(visitor);
+    return false;
+}
+
+void JSInterfaceNameOwner::finalize(JSC::Handle&lt;JSC::Unknown&gt; handle, void* context)
+{
+    auto* jsInterfaceName = jsCast&lt;JSInterfaceName*&gt;(handle.slot()-&gt;asCell());
+    auto&amp; world = *static_cast&lt;DOMWrapperWorld*&gt;(context);
+    uncacheWrapper(world, &amp;jsInterfaceName-&gt;wrapped(), jsInterfaceName);
+}
+
+#if ENABLE(BINDING_INTEGRITY)
+#if PLATFORM(WIN)
+#pragma warning(disable: 4483)
+extern &quot;C&quot; { extern void (*const __identifier(&quot;??_7InterfaceName@WebCore@@6B@&quot;)[])(); }
+#else
+extern &quot;C&quot; { extern void* _ZTVN7WebCore13InterfaceNameE[]; }
+#endif
+#endif
+
+JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject* globalObject, Ref&lt;InterfaceName&gt;&amp;&amp; impl)
+{
+
+#if ENABLE(BINDING_INTEGRITY)
+    void* actualVTablePointer = *(reinterpret_cast&lt;void**&gt;(impl.ptr()));
+#if PLATFORM(WIN)
+    void* expectedVTablePointer = reinterpret_cast&lt;void*&gt;(__identifier(&quot;??_7InterfaceName@WebCore@@6B@&quot;));
+#else
+    void* expectedVTablePointer = &amp;_ZTVN7WebCore13InterfaceNameE[2];
+#if COMPILER(CLANG)
+    // If this fails InterfaceName does not have a vtable, so you need to add the
+    // ImplementationLacksVTable attribute to the interface definition
+    static_assert(__is_polymorphic(InterfaceName), &quot;InterfaceName is not polymorphic&quot;);
+#endif
+#endif
+    // If you hit this assertion you either have a use after free bug, or
+    // InterfaceName has subclasses. If InterfaceName has subclasses that get passed
+    // to toJS() we currently require InterfaceName you to opt out of binding hardening
+    // by adding the SkipVTableValidation attribute to the interface IDL definition
+    RELEASE_ASSERT(actualVTablePointer == expectedVTablePointer);
+#endif
+    globalObject-&gt;vm().heap.reportExtraMemoryAllocated(impl-&gt;memoryCost());
+    return createWrapper&lt;JSInterfaceName, InterfaceName&gt;(globalObject, WTFMove(impl));
+}
+
+JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, InterfaceName&amp; impl)
+{
+    return wrap(state, globalObject, impl);
+}
+
+InterfaceName* JSInterfaceName::toWrapped(JSC::JSValue value)
+{
+    if (auto* wrapper = jsDynamicCast&lt;JSInterfaceName*&gt;(value))
+        return &amp;wrapper-&gt;wrapped();
+    return nullptr;
+}
+
+}
</ins></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSInterfaceNameh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/bindings/scripts/test/JS/JSInterfaceName.h (0 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSInterfaceName.h                                (rev 0)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSInterfaceName.h        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -0,0 +1,91 @@
</span><ins>+/*
+    This file is part of the WebKit open source project.
+    This file has been generated by generate-bindings.pl. DO NOT MODIFY!
+
+    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.
+*/
+
+#pragma once
+
+#include &quot;InterfaceName.h&quot;
+#include &quot;JSDOMWrapper.h&quot;
+#include &lt;wtf/NeverDestroyed.h&gt;
+
+namespace WebCore {
+
+class JSInterfaceName : public JSDOMWrapper&lt;InterfaceName&gt; {
+public:
+    typedef JSDOMWrapper&lt;InterfaceName&gt; Base;
+    static JSInterfaceName* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref&lt;InterfaceName&gt;&amp;&amp; impl)
+    {
+        JSInterfaceName* ptr = new (NotNull, JSC::allocateCell&lt;JSInterfaceName&gt;(globalObject-&gt;vm().heap)) JSInterfaceName(structure, *globalObject, WTFMove(impl));
+        ptr-&gt;finishCreation(globalObject-&gt;vm());
+        return ptr;
+    }
+
+    static const bool hasStaticPropertyTable = false;
+
+    static JSC::JSObject* createPrototype(JSC::VM&amp;, JSC::JSGlobalObject*);
+    static JSC::JSObject* prototype(JSC::VM&amp;, JSC::JSGlobalObject*);
+    static InterfaceName* toWrapped(JSC::JSValue);
+    static void destroy(JSC::JSCell*);
+
+    DECLARE_INFO;
+
+    static JSC::Structure* createStructure(JSC::VM&amp; vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
+    {
+        return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
+    }
+
+    static JSC::JSValue getConstructor(JSC::VM&amp;, const JSC::JSGlobalObject*);
+    static void visitChildren(JSCell*, JSC::SlotVisitor&amp;);
+
+    static size_t estimatedSize(JSCell*);
+protected:
+    JSInterfaceName(JSC::Structure*, JSDOMGlobalObject&amp;, Ref&lt;InterfaceName&gt;&amp;&amp;);
+
+    void finishCreation(JSC::VM&amp; vm)
+    {
+        Base::finishCreation(vm);
+        ASSERT(inherits(info()));
+    }
+
+};
+
+class JSInterfaceNameOwner : public JSC::WeakHandleOwner {
+public:
+    virtual bool isReachableFromOpaqueRoots(JSC::Handle&lt;JSC::Unknown&gt;, void* context, JSC::SlotVisitor&amp;);
+    virtual void finalize(JSC::Handle&lt;JSC::Unknown&gt;, void* context);
+};
+
+inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, InterfaceName*)
+{
+    static NeverDestroyed&lt;JSInterfaceNameOwner&gt; owner;
+    return &amp;owner.get();
+}
+
+inline void* wrapperKey(InterfaceName* wrappableObject)
+{
+    return wrappableObject;
+}
+
+JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, InterfaceName&amp;);
+inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, InterfaceName* impl) { return impl ? toJS(state, globalObject, *impl) : JSC::jsNull(); }
+JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, Ref&lt;InterfaceName&gt;&amp;&amp;);
+inline JSC::JSValue toJSNewlyCreated(JSC::ExecState* state, JSDOMGlobalObject* globalObject, RefPtr&lt;InterfaceName&gt;&amp;&amp; impl) { return impl ? toJSNewlyCreated(state, globalObject, impl.releaseNonNull()) : JSC::jsNull(); }
+
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestObjCDOMInterfaceNameh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceName.h (0 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceName.h                                (rev 0)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceName.h        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+/*
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2006 Samuel Weinig &lt;sam.weinig@gmail.com&gt;
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#import &lt;WebCore/DOMObject.h&gt;
+
+WEBKIT_CLASS_AVAILABLE_MAC(9876_5)
+WEBCORE_EXPORT @interface DOMInterfaceName : DOMObject
+@end
</ins></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestObjCDOMInterfaceNamemm"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceName.mm (0 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceName.mm                                (rev 0)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceName.mm        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+/*
+ * This file is part of the WebKit open source project.
+ * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#import &quot;config.h&quot;
+#import &quot;DOMInternal.h&quot;
+
+#import &quot;DOMInterfaceName.h&quot;
+
+#import &quot;DOMInterfaceNameInternal.h&quot;
+#import &quot;DOMNodeInternal.h&quot;
+#import &quot;ExceptionHandlers.h&quot;
+#import &quot;InterfaceName.h&quot;
+#import &quot;JSMainThreadExecState.h&quot;
+#import &quot;ThreadCheck.h&quot;
+#import &quot;WebCoreObjCExtras.h&quot;
+#import &quot;WebScriptObjectPrivate.h&quot;
+#import &lt;wtf/GetPtr.h&gt;
+
+#define IMPL reinterpret_cast&lt;WebCore::InterfaceName*&gt;(_internal)
+
+@implementation DOMInterfaceName
+
+- (void)dealloc
+{
+    if (WebCoreObjCScheduleDeallocateOnMainThread([DOMInterfaceName class], self))
+        return;
+
+    if (_internal)
+        IMPL-&gt;deref();
+    [super dealloc];
+}
+
+@end
+
+WebCore::InterfaceName* core(DOMInterfaceName *wrapper)
+{
+    return wrapper ? reinterpret_cast&lt;WebCore::InterfaceName*&gt;(wrapper-&gt;_internal) : 0;
+}
+
+DOMInterfaceName *kit(WebCore::InterfaceName* value)
+{
+    WebCoreThreadViolationCheckRoundOne();
+    if (!value)
+        return nil;
+    if (DOMInterfaceName *wrapper = getDOMWrapper(value))
+        return [[wrapper retain] autorelease];
+    DOMInterfaceName *wrapper = [[DOMInterfaceName alloc] _init];
+    wrapper-&gt;_internal = reinterpret_cast&lt;DOMObjectInternal*&gt;(value);
+    value-&gt;ref();
+    addDOMWrapper(wrapper, value);
+    return [wrapper autorelease];
+}
</ins></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestObjCDOMInterfaceNameInternalh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceNameInternal.h (0 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceNameInternal.h                                (rev 0)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMInterfaceNameInternal.h        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+/*
+ * This file is part of the WebKit open source project.
+ * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#import &lt;WebCore/DOMInterfaceName.h&gt;
+
+namespace WebCore {
+class InterfaceName;
+}
+
+WEBCORE_EXPORT WebCore::InterfaceName* core(DOMInterfaceName *);
+WEBCORE_EXPORT DOMInterfaceName *kit(WebCore::InterfaceName*);
</ins></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestTestReportExtraMemoryCostidl"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/bindings/scripts/test/TestReportExtraMemoryCost.idl (0 => 201541)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/TestReportExtraMemoryCost.idl                                (rev 0)
+++ trunk/Source/WebCore/bindings/scripts/test/TestReportExtraMemoryCost.idl        2016-06-01 00:45:59 UTC (rev 201541)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+/*
+ * Copyright (C) 2016 Apple Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+[
+    ReportExtraMemoryCost,
+] interface InterfaceName {
+};
+
</ins></span></pre>
</div>
</div>

</body>
</html>