<!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>[209987] 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/209987">209987</a></dd>
<dt>Author</dt> <dd>weinig@apple.com</dd>
<dt>Date</dt> <dd>2016-12-19 09:53:00 -0800 (Mon, 19 Dec 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>[WebIDL] Remove custom binding for the named Image constructor
https://bugs.webkit.org/show_bug.cgi?id=166023
Reviewed by Alex Christensen.
* bindings/js/JSBindingsAllInOne.cpp:
* CMakeLists.txt:
* WebCore.xcodeproj/project.pbxproj:
Remove JSImageConstructor.
* bindings/js/JSImageConstructor.cpp: Removed.
* bindings/js/JSImageConstructor.h: Removed.
* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::JSDOMWindow::image): Deleted.
* page/DOMWindow.idl:
Remove custom getter for the constructor.
* html/HTMLImageElement.idl:
Add NamedConstructor annotation.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSBindingsAllInOnecpp">trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMWindowCustomcpp">trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLImageElementidl">trunk/Source/WebCore/html/HTMLImageElement.idl</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowidl">trunk/Source/WebCore/page/DOMWindow.idl</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCorebindingsjsJSImageConstructorcpp">trunk/Source/WebCore/bindings/js/JSImageConstructor.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSImageConstructorh">trunk/Source/WebCore/bindings/js/JSImageConstructor.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (209986 => 209987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2016-12-19 17:37:11 UTC (rev 209986)
+++ trunk/Source/WebCore/CMakeLists.txt        2016-12-19 17:53:00 UTC (rev 209987)
</span><span class="lines">@@ -1157,7 +1157,6 @@
</span><span class="cx"> bindings/js/JSIDBObjectStoreCustom.cpp
</span><span class="cx"> bindings/js/JSIDBRequestCustom.cpp
</span><span class="cx"> bindings/js/JSIDBTransactionCustom.cpp
</span><del>- bindings/js/JSImageConstructor.cpp
</del><span class="cx"> bindings/js/JSImageDataCustom.cpp
</span><span class="cx"> bindings/js/JSInspectorFrontendHostCustom.cpp
</span><span class="cx"> bindings/js/JSLazyEventListener.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (209986 => 209987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-12-19 17:37:11 UTC (rev 209986)
+++ trunk/Source/WebCore/ChangeLog        2016-12-19 17:53:00 UTC (rev 209987)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2016-12-19 Sam Weinig <sam@webkit.org>
+
+ [WebIDL] Remove custom binding for the named Image constructor
+ https://bugs.webkit.org/show_bug.cgi?id=166023
+
+ Reviewed by Alex Christensen.
+
+ * bindings/js/JSBindingsAllInOne.cpp:
+ * CMakeLists.txt:
+ * WebCore.xcodeproj/project.pbxproj:
+ Remove JSImageConstructor.
+
+ * bindings/js/JSImageConstructor.cpp: Removed.
+ * bindings/js/JSImageConstructor.h: Removed.
+
+ * bindings/js/JSDOMWindowCustom.cpp:
+ (WebCore::JSDOMWindow::image): Deleted.
+ * page/DOMWindow.idl:
+ Remove custom getter for the constructor.
+
+ * html/HTMLImageElement.idl:
+ Add NamedConstructor annotation.
+
</ins><span class="cx"> 2016-12-19 Antti Koivisto <antti@apple.com>
</span><span class="cx">
</span><span class="cx"> Remove RenderObject::requiresForcedStyleRecalcPropagation
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (209986 => 209987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-12-19 17:37:11 UTC (rev 209986)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-12-19 17:53:00 UTC (rev 209987)
</span><span class="lines">@@ -5347,8 +5347,6 @@
</span><span class="cx">                 BC64B4DC0CB4298A005F2B62 /* CSSFontSelector.h in Headers */ = {isa = PBXBuildFile; fileRef = BC64B4D40CB4298A005F2B62 /* CSSFontSelector.h */; };
</span><span class="cx">                 BC6932730D7E293900AE44D1 /* JSDOMWindowBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC6932710D7E293900AE44D1 /* JSDOMWindowBase.cpp */; };
</span><span class="cx">                 BC6932740D7E293900AE44D1 /* JSDOMWindowBase.h in Headers */ = {isa = PBXBuildFile; fileRef = BC6932720D7E293900AE44D1 /* JSDOMWindowBase.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                BC6C49F30D7DBA0500FFA558 /* JSImageConstructor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC6C49F10D7DBA0500FFA558 /* JSImageConstructor.cpp */; };
-                BC6C49F40D7DBA0500FFA558 /* JSImageConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = BC6C49F20D7DBA0500FFA558 /* JSImageConstructor.h */; };
</del><span class="cx">                 BC6D44BE0C07EFB60072D2C9 /* JSHTMLEmbedElementCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC6D44BD0C07EFB60072D2C9 /* JSHTMLEmbedElementCustom.cpp */; };
</span><span class="cx">                 BC6D44EC0C07F2ED0072D2C9 /* JSHTMLEmbedElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC6D44EA0C07F2ED0072D2C9 /* JSHTMLEmbedElement.cpp */; };
</span><span class="cx">                 BC6D44ED0C07F2ED0072D2C9 /* JSHTMLEmbedElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC6D44EB0C07F2ED0072D2C9 /* JSHTMLEmbedElement.h */; };
</span><span class="lines">@@ -13248,8 +13246,6 @@
</span><span class="cx">                 BC64B4D40CB4298A005F2B62 /* CSSFontSelector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSFontSelector.h; sourceTree = "<group>"; };
</span><span class="cx">                 BC6932710D7E293900AE44D1 /* JSDOMWindowBase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMWindowBase.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 BC6932720D7E293900AE44D1 /* JSDOMWindowBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMWindowBase.h; sourceTree = "<group>"; };
</span><del>-                BC6C49F10D7DBA0500FFA558 /* JSImageConstructor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSImageConstructor.cpp; sourceTree = "<group>"; };
-                BC6C49F20D7DBA0500FFA558 /* JSImageConstructor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSImageConstructor.h; sourceTree = "<group>"; };
</del><span class="cx">                 BC6D44BD0C07EFB60072D2C9 /* JSHTMLEmbedElementCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLEmbedElementCustom.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 BC6D44EA0C07F2ED0072D2C9 /* JSHTMLEmbedElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLEmbedElement.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 BC6D44EB0C07F2ED0072D2C9 /* JSHTMLEmbedElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLEmbedElement.h; sourceTree = "<group>"; };
</span><span class="lines">@@ -22510,8 +22506,6 @@
</span><span class="cx">                         isa = PBXGroup;
</span><span class="cx">                         children = (
</span><span class="cx">                                 CE261694187E6469007955F3 /* ios */,
</span><del>-                                BC6C49F10D7DBA0500FFA558 /* JSImageConstructor.cpp */,
-                                BC6C49F20D7DBA0500FFA558 /* JSImageConstructor.h */,
</del><span class="cx">                         );
</span><span class="cx">                         name = Constructors;
</span><span class="cx">                         sourceTree = "<group>";
</span><span class="lines">@@ -26348,7 +26342,6 @@
</span><span class="cx">                                 B6566270120B1227006EA85C /* JSIDBTransaction.h in Headers */,
</span><span class="cx">                                 838EF53C1DC14A7C008F0C39 /* JSIDBTransactionMode.h in Headers */,
</span><span class="cx">                                 269239961505E1AA009E57FC /* JSIDBVersionChangeEvent.h in Headers */,
</span><del>-                                BC6C49F40D7DBA0500FFA558 /* JSImageConstructor.h in Headers */,
</del><span class="cx">                                 A77979290D6B9E64003851B9 /* JSImageData.h in Headers */,
</span><span class="cx">                                 A86629D309DA2B48009633A6 /* JSInputEvent.h in Headers */,
</span><span class="cx">                                 7A0E771F10C00DB100A0276E /* JSInspectorFrontendHost.h in Headers */,
</span><span class="lines">@@ -30129,7 +30122,6 @@
</span><span class="cx">                                 51E269331DD3BC4E006B6A58 /* JSIDBTransactionCustom.cpp in Sources */,
</span><span class="cx">                                 838EF53B1DC14A7C008F0C39 /* JSIDBTransactionMode.cpp in Sources */,
</span><span class="cx">                                 511EF2CB17F0FD3500E4FA16 /* JSIDBVersionChangeEvent.cpp in Sources */,
</span><del>-                                BC6C49F30D7DBA0500FFA558 /* JSImageConstructor.cpp in Sources */,
</del><span class="cx">                                 A77979280D6B9E64003851B9 /* JSImageData.cpp in Sources */,
</span><span class="cx">                                 A7D0318E0E93540300E24ACD /* JSImageDataCustom.cpp in Sources */,
</span><span class="cx">                                 A86629D409DA2B48009633A6 /* JSInputEvent.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSBindingsAllInOnecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp (209986 => 209987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp        2016-12-19 17:37:11 UTC (rev 209986)
+++ trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp        2016-12-19 17:53:00 UTC (rev 209987)
</span><span class="lines">@@ -91,7 +91,6 @@
</span><span class="cx"> #include "JSHTMLSelectElementCustom.cpp"
</span><span class="cx"> #include "JSHTMLTemplateElementCustom.cpp"
</span><span class="cx"> #include "JSHistoryCustom.cpp"
</span><del>-#include "JSImageConstructor.cpp"
</del><span class="cx"> #include "JSImageDataCustom.cpp"
</span><span class="cx"> #include "JSInspectorFrontendHostCustom.cpp"
</span><span class="cx"> #include "JSLazyEventListener.cpp"
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMWindowCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp (209986 => 209987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp        2016-12-19 17:37:11 UTC (rev 209986)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp        2016-12-19 17:53:00 UTC (rev 209987)
</span><span class="lines">@@ -31,7 +31,6 @@
</span><span class="cx"> #include "JSHTMLCollection.h"
</span><span class="cx"> #include "JSHTMLOptionElement.h"
</span><span class="cx"> #include "JSIDBFactory.h"
</span><del>-#include "JSImageConstructor.h"
</del><span class="cx"> #include "JSWorker.h"
</span><span class="cx"> #include "Location.h"
</span><span class="cx"> #include "RuntimeEnabledFeatures.h"
</span><span class="lines">@@ -403,11 +402,6 @@
</span><span class="cx"> return toJS(&state, const_cast<JSDOMWindow*>(this), event);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-JSValue JSDOMWindow::image(ExecState& state) const
-{
- return createImageConstructor(state.vm(), *this);
-}
-
</del><span class="cx"> // Custom functions
</span><span class="cx">
</span><span class="cx"> JSValue JSDOMWindow::open(ExecState& state)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSImageConstructorcpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/bindings/js/JSImageConstructor.cpp (209986 => 209987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSImageConstructor.cpp        2016-12-19 17:37:11 UTC (rev 209986)
+++ trunk/Source/WebCore/bindings/js/JSImageConstructor.cpp        2016-12-19 17:53:00 UTC (rev 209987)
</span><span class="lines">@@ -1,80 +0,0 @@
</span><del>-/*
- * Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
- * Copyright (C) 2004-2008, 2010, 2016 Apple Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "config.h"
-#include "JSImageConstructor.h"
-
-#include "HTMLNames.h"
-#include "JSDOMConstructor.h"
-#include "JSHTMLImageElement.h"
-#include "JSNode.h"
-#include <runtime/Error.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-typedef JSDOMNamedConstructor<JSHTMLImageElement> JSImageConstructor;
-
-STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE(JSImageConstructor);
-
-template<> void JSImageConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject)
-{
- putDirect(vm, vm.propertyNames->prototype, JSHTMLImageElement::prototype(vm, &globalObject), None);
-}
-
-template<> JSValue JSImageConstructor::prototypeForStructure(VM& vm, const JSDOMGlobalObject& globalObject)
-{
- return JSHTMLElement::getConstructor(vm, &globalObject);
-}
-
-template<> EncodedJSValue JSImageConstructor::construct(ExecState* state)
-{
- VM& vm = state->vm();
- auto scope = DECLARE_THROW_SCOPE(vm);
-
- JSImageConstructor* jsConstructor = jsCast<JSImageConstructor*>(state->jsCallee());
- Document* document = jsConstructor->document();
- if (!document)
- return throwVMError(state, scope, createReferenceError(state, "Image constructor associated document is unavailable"));
-
- // Calling toJS on the document causes the JS document wrapper to be
- // added to the window object. This is done to ensure that JSDocument::visit
- // will be called, which will cause the image element to be marked if necessary.
- toJS(state, jsConstructor->globalObject(), *document);
- std::optional<unsigned> width;
- std::optional<unsigned> height;
- if (state->argumentCount() > 0) {
- width = state->uncheckedArgument(0).toUInt32(state);
- if (state->argumentCount() > 1)
- height = state->uncheckedArgument(1).toUInt32(state);
- }
-
- return JSValue::encode(asObject(toJS(state, jsConstructor->globalObject(),
- HTMLImageElement::createForJSConstructor(*document, width, height))));
-}
-
-template<> const ClassInfo JSImageConstructor::s_info = { "ImageConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSImageConstructor) };
-
-JSC::JSValue createImageConstructor(JSC::VM& vm, const JSDOMGlobalObject& globalObject)
-{
- return getDOMConstructor<JSImageConstructor>(vm, globalObject);
-}
-
-} // namespace WebCore
</del></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSImageConstructorh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/bindings/js/JSImageConstructor.h (209986 => 209987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSImageConstructor.h        2016-12-19 17:37:11 UTC (rev 209986)
+++ trunk/Source/WebCore/bindings/js/JSImageConstructor.h        2016-12-19 17:53:00 UTC (rev 209987)
</span><span class="lines">@@ -1,33 +0,0 @@
</span><del>-/*
- * Copyright (C) 1999 Harri Porten (porten@kde.org)
- * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#pragma once
-
-namespace JSC {
-class JSValue;
-class VM;
-}
-
-namespace WebCore {
-
-class JSDOMGlobalObject;
-
-JSC::JSValue createImageConstructor(JSC::VM&, const JSDOMGlobalObject&);
-
-} // namespace WebCore
</del></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLImageElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLImageElement.idl (209986 => 209987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLImageElement.idl        2016-12-19 17:37:11 UTC (rev 209986)
+++ trunk/Source/WebCore/html/HTMLImageElement.idl        2016-12-19 17:53:00 UTC (rev 209987)
</span><span class="lines">@@ -21,6 +21,7 @@
</span><span class="cx"> [
</span><span class="cx"> ExportMacro=WEBCORE_EXPORT,
</span><span class="cx"> JSGenerateToNativeObject,
</span><ins>+ NamedConstructor=Image(optional unsigned long width, optional unsigned long height)
</ins><span class="cx"> ] interface HTMLImageElement : HTMLElement {
</span><span class="cx"> [Reflect] attribute DOMString name;
</span><span class="cx"> [Reflect] attribute DOMString align;
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.idl (209986 => 209987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.idl        2016-12-19 17:37:11 UTC (rev 209986)
+++ trunk/Source/WebCore/page/DOMWindow.idl        2016-12-19 17:53:00 UTC (rev 209987)
</span><span class="lines">@@ -167,7 +167,6 @@
</span><span class="cx"> void captureEvents(); // Not implemented. Also not in modern standards. Empty function may help compatibility with legacy content.
</span><span class="cx"> void releaseEvents(); // Not implemented. Also not in modern standards. Empty function may help compatibility with legacy content.
</span><span class="cx">
</span><del>- [CustomGetter, CustomConstructor] attribute HTMLImageElementNamedConstructor Image;
</del><span class="cx"> attribute XMLDocumentConstructor SVGDocument;
</span><span class="cx">
</span><span class="cx"> attribute DOMURLConstructor webkitURL; // FIXME: Deprecate this.
</span></span></pre>
</div>
</div>
</body>
</html>