Source/WebCore/ChangeLog

 12012-02-23 Eric Seidel <eric@webkit.org>
 2
 3 Split out HTML constructors into new DOMWindowHTML suplemental idl
 4 https://bugs.webkit.org/show_bug.cgi?id=79377
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * CMakeLists.txt:
 9 * DerivedSources.make:
 10 * DerivedSources.pri:
 11 * GNUmakefile.list.am:
 12 * WebCore.gypi:
 13 * WebCore.xcodeproj/project.pbxproj:
 14 * html/DOMWindowHTML.idl: Added.
 15 * page/DOMWindow.idl:
 16
1172012-02-23 Anders Carlsson <andersca@apple.com>
218
319 Crash in ScrollElasticityController::snapRubberBandTimerFired()

Source/WebCore/CMakeLists.txt

@@SET(WebCore_IDL_FILES
216216 html/DOMSettableTokenList.idl
217217 html/DOMTokenList.idl
218218 html/DOMURL.idl
 219 html/DOMWindowHTML.idl
219220 html/HTMLAllCollection.idl
220221 html/HTMLAnchorElement.idl
221222 html/HTMLAppletElement.idl

Source/WebCore/DerivedSources.make

@@BINDING_IDLS = \
191191 $(WebCore)/html/DOMSettableTokenList.idl \
192192 $(WebCore)/html/DOMTokenList.idl \
193193 $(WebCore)/html/DOMURL.idl \
 194 $(WebCore)/html/DOMWindowHTML.idl \
194195 $(WebCore)/html/HTMLAllCollection.idl \
195196 $(WebCore)/html/HTMLAnchorElement.idl \
196197 $(WebCore)/html/HTMLAppletElement.idl \

Source/WebCore/DerivedSources.pri

@@IDL_BINDINGS += \
252252 $$PWD/html/DOMSettableTokenList.idl \
253253 $$PWD/html/DOMTokenList.idl \
254254 $$PWD/html/DOMURL.idl \
 255 $$PWD/html/DOMWindowHTML.idl \
255256 $$PWD/html/HTMLAllCollection.idl \
256257 $$PWD/html/HTMLAudioElement.idl \
257258 $$PWD/html/HTMLAnchorElement.idl \

Source/WebCore/GNUmakefile.list.am

@@dom_binding_idls += \
757757 $(WebCore)/html/DOMSettableTokenList.idl \
758758 $(WebCore)/html/DOMTokenList.idl \
759759 $(WebCore)/html/DOMURL.idl \
 760 $(WebCore)/html/DOMWindowHTML.idl \
760761 $(WebCore)/html/HTMLAllCollection.idl \
761762 $(WebCore)/html/HTMLAnchorElement.idl \
762763 $(WebCore)/html/HTMLAppletElement.idl \

Source/WebCore/WebCore.gypi

861861 'html/DOMSettableTokenList.idl',
862862 'html/DOMTokenList.idl',
863863 'html/DOMURL.idl',
 864 'html/DOMWindowHTML.idl',
864865 'html/HTMLAllCollection.idl',
865866 'html/HTMLAnchorElement.idl',
866867 'html/HTMLAppletElement.idl',

Source/WebCore/WebCore.xcodeproj/project.pbxproj

1078210782 A89943270B42338700D7C802 /* BitmapImage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BitmapImage.cpp; sourceTree = "<group>"; };
1078310783 A89CCC500F44E98100B5DA10 /* ReplaceNodeWithSpanCommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ReplaceNodeWithSpanCommand.cpp; sourceTree = "<group>"; };
1078410784 A89CCC510F44E98100B5DA10 /* ReplaceNodeWithSpanCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReplaceNodeWithSpanCommand.h; sourceTree = "<group>"; };
 10785 A8A5205D14F6BD3C00FBA19E /* DOMWindowHTML.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMWindowHTML.idl; sourceTree = "<group>"; };
1078510786 A8BC04911214F69600B5F122 /* HTMLEntityTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLEntityTable.cpp; sourceTree = "<group>"; };
1078610787 A8C2280D11D4A59700D5A7D3 /* DocumentParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DocumentParser.cpp; sourceTree = "<group>"; };
1078710788 A8C2289F11D5722E00D5A7D3 /* DecodedDataDocumentParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DecodedDataDocumentParser.h; sourceTree = "<group>"; };

1387713878 1AE82EC90CAAE177002237AE /* storage */ = {
1387813879 isa = PBXGroup;
1387913880 children = (
13880  EB49DB8E14F46E8B002299D9 /* IDBTracing.h */,
1388113881 B5B5DC67119BB3D5002A8790 /* AbstractDatabase.cpp */,
1388213882 B5B5DC68119BB3D5002A8790 /* AbstractDatabase.h */,
1388313883 514185ED0CD65F0400763C99 /* ChangeVersionWrapper.cpp */,

1395213952 C585A6BF11D4FB3D004C3E4B /* IDBRequest.cpp */,
1395313953 C585A6C011D4FB3D004C3E4B /* IDBRequest.h */,
1395413954 C585A6C111D4FB3D004C3E4B /* IDBRequest.idl */,
 13955 EB49DB8E14F46E8B002299D9 /* IDBTracing.h */,
1395513956 B6566267120B115A006EA85C /* IDBTransaction.cpp */,
1395613957 B6566268120B115A006EA85C /* IDBTransaction.h */,
1395713958 B6566269120B115A006EA85C /* IDBTransaction.idl */,

1674316744 2E37DFD712DBAFB800A6B233 /* DOMURL.cpp */,
1674416745 2E37DFD812DBAFB800A6B233 /* DOMURL.h */,
1674516746 2E37DFD912DBAFB800A6B233 /* DOMURL.idl */,
 16747 A8A5205D14F6BD3C00FBA19E /* DOMWindowHTML.idl */,
1674616748 F55B3D871251F12D003EF269 /* EmailInputType.cpp */,
1674716749 F55B3D881251F12D003EF269 /* EmailInputType.h */,
1674816750 F55B3D891251F12D003EF269 /* FileInputType.cpp */,

2258722589 C585A6EF11D4FB3D004C3E4B /* IDBObjectStoreBackendImpl.h in Headers */,
2258822590 C585A6F111D4FB3D004C3E4B /* IDBObjectStoreBackendInterface.h in Headers */,
2258922591 C585A6F411D4FB3D004C3E4B /* IDBRequest.h in Headers */,
 22592 EB49DB8F14F46E8B002299D9 /* IDBTracing.h in Headers */,
2259022593 B656626B120B115A006EA85C /* IDBTransaction.h in Headers */,
2259122594 1A71D57C0F33819000F9CE4E /* IdentifierRep.h in Headers */,
2259222595 5913A24213D49EBA00F5B05C /* IdentifiersFactory.h in Headers */,

2433724340 E1BE512E0CF6C512002EA959 /* XSLTUnicodeSort.h in Headers */,
2433824341 977E2E0F12F0FC9C00C13379 /* XSSAuditor.h in Headers */,
2433924342 FD537353137B651800008DCE /* ZeroPole.h in Headers */,
24340  EB49DB8F14F46E8B002299D9 /* IDBTracing.h in Headers */,
2434124343 );
2434224344 runOnlyForDeploymentPostprocessing = 0;
2434324345 };

Source/WebCore/html/DOMWindowHTML.idl

 1/*
 2 * Copyright (C) 2012 Google Inc. All rights reserved.
 3 *
 4 * This library is free software; you can redistribute it and/or
 5 * modify it under the terms of the GNU Library General Public
 6 * License as published by the Free Software Foundation; either
 7 * version 2 of the License, or (at your option) any later version.
 8 *
 9 * This library is distributed in the hope that it will be useful,
 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 12 * Library General Public License for more details.
 13 *
 14 * You should have received a copy of the GNU Library General Public License
 15 * along with this library; see the file COPYING.LIB. If not, write to
 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 17 * Boston, MA 02110-1301, USA.
 18 */
 19
 20module window {
 21
 22 // FIXME: Most of this could/should be generated from make_names.pl/HTMLNames.in
 23 // to reduce the chance that we forget a constructor when adding a new element.
 24 interface [
 25 Supplemental=DOMWindow
 26 ] DOMWindowHTML {
 27
 28 attribute HTMLDocumentConstructor HTMLDocument;
 29
 30 attribute HTMLElementConstructor HTMLElement;
 31 attribute HTMLAnchorElementConstructor HTMLAnchorElement;
 32 attribute HTMLAppletElementConstructor HTMLAppletElement;
 33 attribute HTMLAreaElementConstructor HTMLAreaElement;
 34 attribute HTMLBRElementConstructor HTMLBRElement;
 35 attribute HTMLBaseElementConstructor HTMLBaseElement;
 36 attribute HTMLBaseFontElementConstructor HTMLBaseFontElement;
 37 attribute HTMLBodyElementConstructor HTMLBodyElement;
 38 attribute HTMLButtonElementConstructor HTMLButtonElement;
 39 attribute HTMLCanvasElementConstructor HTMLCanvasElement;
 40 attribute HTMLDListElementConstructor HTMLDListElement;
 41 attribute HTMLDirectoryElementConstructor HTMLDirectoryElement;
 42 attribute HTMLDivElementConstructor HTMLDivElement;
 43 attribute HTMLEmbedElementConstructor HTMLEmbedElement;
 44 attribute HTMLFieldSetElementConstructor HTMLFieldSetElement;
 45 attribute HTMLFontElementConstructor HTMLFontElement;
 46 attribute HTMLFormElementConstructor HTMLFormElement;
 47 attribute HTMLFrameElementConstructor HTMLFrameElement;
 48 attribute HTMLFrameSetElementConstructor HTMLFrameSetElement;
 49 attribute HTMLHRElementConstructor HTMLHRElement;
 50 attribute HTMLHeadElementConstructor HTMLHeadElement;
 51 attribute HTMLHeadingElementConstructor HTMLHeadingElement;
 52 attribute HTMLHtmlElementConstructor HTMLHtmlElement;
 53 attribute HTMLIFrameElementConstructor HTMLIFrameElement;
 54 attribute HTMLImageElementConstructor HTMLImageElement;
 55 attribute HTMLInputElementConstructor HTMLInputElement;
 56 attribute HTMLKeygenElementConstructor HTMLKeygenElement;
 57 attribute HTMLLIElementConstructor HTMLLIElement;
 58 attribute HTMLLabelElementConstructor HTMLLabelElement;
 59 attribute HTMLLegendElementConstructor HTMLLegendElement;
 60 attribute HTMLLinkElementConstructor HTMLLinkElement;
 61 attribute HTMLMapElementConstructor HTMLMapElement;
 62 attribute HTMLMarqueeElementConstructor HTMLMarqueeElement;
 63 attribute HTMLMenuElementConstructor HTMLMenuElement;
 64 attribute HTMLMetaElementConstructor HTMLMetaElement;
 65#if defined(ENABLE_METER_TAG) && ENABLE_METER_TAG
 66 attribute HTMLMeterElementConstructor HTMLMeterElement;
 67#endif
 68 attribute HTMLModElementConstructor HTMLModElement;
 69 attribute HTMLOListElementConstructor HTMLOListElement;
 70 attribute HTMLObjectElementConstructor HTMLObjectElement;
 71 attribute HTMLOptGroupElementConstructor HTMLOptGroupElement;
 72 attribute HTMLOptionElementConstructor HTMLOptionElement;
 73 attribute HTMLOutputElementConstructor HTMLOutputElement;
 74 attribute HTMLParagraphElementConstructor HTMLParagraphElement;
 75 attribute HTMLParamElementConstructor HTMLParamElement;
 76 attribute HTMLPreElementConstructor HTMLPreElement;
 77#if defined(ENABLE_PROGRESS_TAG) && ENABLE_PROGRESS_TAG
 78 attribute HTMLProgressElementConstructor HTMLProgressElement;
 79#endif
 80 attribute HTMLQuoteElementConstructor HTMLQuoteElement;
 81 attribute HTMLScriptElementConstructor HTMLScriptElement;
 82 attribute HTMLSelectElementConstructor HTMLSelectElement;
 83 attribute HTMLSpanElementConstructor HTMLSpanElement;
 84 attribute HTMLStyleElementConstructor HTMLStyleElement;
 85 attribute HTMLTableCaptionElementConstructor HTMLTableCaptionElement;
 86 attribute HTMLTableCellElementConstructor HTMLTableCellElement;
 87 attribute HTMLTableColElementConstructor HTMLTableColElement;
 88 attribute HTMLTableElementConstructor HTMLTableElement;
 89 attribute HTMLTableRowElementConstructor HTMLTableRowElement;
 90 attribute HTMLTableSectionElementConstructor HTMLTableSectionElement;
 91 attribute HTMLTextAreaElementConstructor HTMLTextAreaElement;
 92 attribute HTMLTitleElementConstructor HTMLTitleElement;
 93 attribute HTMLUListElementConstructor HTMLUListElement;
 94
 95 attribute HTMLCollectionConstructor HTMLCollection;
 96 attribute HTMLAllCollectionConstructor HTMLAllCollection;
 97 attribute [Conditional=MICRODATA] HTMLPropertiesCollectionConstructor HTMLPropertiesCollection;
 98 attribute HTMLUnknownElementConstructor HTMLUnknownElement;
 99
 100 attribute [JSCustomGetter, CustomConstructor] HTMLImageElementConstructorConstructor Image; // Usable with new operator
 101 attribute [JSCustomGetter] HTMLOptionElementConstructorConstructor Option; // Usable with new operator
 102
 103 };
 104
 105}

Source/WebCore/page/DOMWindow.idl

@@module window {
5959#endif
6060 attribute [Replaceable, CustomGetter, V8CustomSetter] Event event;
6161
62 
6362 DOMSelection getSelection();
6463
6564 readonly attribute [CheckSecurityForNode] Element frameElement;

@@module window {
393392 attribute ProcessingInstructionConstructor ProcessingInstruction;
394393 attribute [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] ShadowRootConstructor WebKitShadowRoot;
395394
396  attribute HTMLDocumentConstructor HTMLDocument;
397395 attribute DOMWindowConstructor Window;
398396
399  attribute HTMLElementConstructor HTMLElement;
400  attribute HTMLAnchorElementConstructor HTMLAnchorElement;
401  attribute HTMLAppletElementConstructor HTMLAppletElement;
402  attribute HTMLAreaElementConstructor HTMLAreaElement;
403  attribute HTMLBRElementConstructor HTMLBRElement;
404  attribute HTMLBaseElementConstructor HTMLBaseElement;
405  attribute HTMLBaseFontElementConstructor HTMLBaseFontElement;
406  attribute HTMLBodyElementConstructor HTMLBodyElement;
407  attribute HTMLButtonElementConstructor HTMLButtonElement;
408  attribute HTMLCanvasElementConstructor HTMLCanvasElement;
409  attribute HTMLDListElementConstructor HTMLDListElement;
410  attribute HTMLDirectoryElementConstructor HTMLDirectoryElement;
411  attribute HTMLDivElementConstructor HTMLDivElement;
412  attribute HTMLEmbedElementConstructor HTMLEmbedElement;
413  attribute HTMLFieldSetElementConstructor HTMLFieldSetElement;
414  attribute HTMLFontElementConstructor HTMLFontElement;
415  attribute HTMLFormElementConstructor HTMLFormElement;
416  attribute HTMLFrameElementConstructor HTMLFrameElement;
417  attribute HTMLFrameSetElementConstructor HTMLFrameSetElement;
418  attribute HTMLHRElementConstructor HTMLHRElement;
419  attribute HTMLHeadElementConstructor HTMLHeadElement;
420  attribute HTMLHeadingElementConstructor HTMLHeadingElement;
421  attribute HTMLHtmlElementConstructor HTMLHtmlElement;
422  attribute HTMLIFrameElementConstructor HTMLIFrameElement;
423  attribute HTMLImageElementConstructor HTMLImageElement;
424  attribute HTMLInputElementConstructor HTMLInputElement;
425  attribute HTMLKeygenElementConstructor HTMLKeygenElement;
426  attribute HTMLLIElementConstructor HTMLLIElement;
427  attribute HTMLLabelElementConstructor HTMLLabelElement;
428  attribute HTMLLegendElementConstructor HTMLLegendElement;
429  attribute HTMLLinkElementConstructor HTMLLinkElement;
430  attribute HTMLMapElementConstructor HTMLMapElement;
431  attribute HTMLMarqueeElementConstructor HTMLMarqueeElement;
432  attribute HTMLMenuElementConstructor HTMLMenuElement;
433  attribute HTMLMetaElementConstructor HTMLMetaElement;
434 #if defined(ENABLE_METER_TAG) && ENABLE_METER_TAG
435  attribute HTMLMeterElementConstructor HTMLMeterElement;
436 #endif
437  attribute HTMLModElementConstructor HTMLModElement;
438  attribute HTMLOListElementConstructor HTMLOListElement;
439  attribute HTMLObjectElementConstructor HTMLObjectElement;
440  attribute HTMLOptGroupElementConstructor HTMLOptGroupElement;
441  attribute HTMLOptionElementConstructor HTMLOptionElement;
442  attribute HTMLOutputElementConstructor HTMLOutputElement;
443  attribute HTMLParagraphElementConstructor HTMLParagraphElement;
444  attribute HTMLParamElementConstructor HTMLParamElement;
445  attribute HTMLPreElementConstructor HTMLPreElement;
446 #if defined(ENABLE_PROGRESS_TAG) && ENABLE_PROGRESS_TAG
447  attribute HTMLProgressElementConstructor HTMLProgressElement;
448 #endif
449  attribute HTMLQuoteElementConstructor HTMLQuoteElement;
450  attribute HTMLScriptElementConstructor HTMLScriptElement;
451  attribute HTMLSelectElementConstructor HTMLSelectElement;
452  attribute HTMLSpanElementConstructor HTMLSpanElement;
453  attribute HTMLStyleElementConstructor HTMLStyleElement;
454  attribute HTMLTableCaptionElementConstructor HTMLTableCaptionElement;
455  attribute HTMLTableCellElementConstructor HTMLTableCellElement;
456  attribute HTMLTableColElementConstructor HTMLTableColElement;
457  attribute HTMLTableElementConstructor HTMLTableElement;
458  attribute HTMLTableRowElementConstructor HTMLTableRowElement;
459  attribute HTMLTableSectionElementConstructor HTMLTableSectionElement;
460  attribute HTMLTextAreaElementConstructor HTMLTextAreaElement;
461  attribute HTMLTitleElementConstructor HTMLTitleElement;
462  attribute HTMLUListElementConstructor HTMLUListElement;
463 
464  attribute HTMLCollectionConstructor HTMLCollection;
465  attribute HTMLAllCollectionConstructor HTMLAllCollection;
466  attribute [Conditional=MICRODATA] HTMLPropertiesCollectionConstructor HTMLPropertiesCollection;
467  attribute HTMLUnknownElementConstructor HTMLUnknownElement;
468 
469  attribute [JSCustomGetter, CustomConstructor] HTMLImageElementConstructorConstructor Image; // Usable with new operator
470  attribute [JSCustomGetter] HTMLOptionElementConstructorConstructor Option; // Usable with new operator
471 
 397 // FIXME: Should these Canvas constructors move to html/DOMWindowHTML with the rest of canvas?
472398 attribute CanvasPatternConstructor CanvasPattern;
473399 attribute CanvasGradientConstructor CanvasGradient;
474400 attribute CanvasRenderingContext2DConstructor CanvasRenderingContext2D;
 401
475402 attribute ImageDataConstructor ImageData;
476403 attribute [Conditional=WEBGL] WebGLActiveInfoConstructor WebGLActiveInfo;
477404 attribute [Conditional=WEBGL] WebGLBufferConstructor WebGLBuffer;