Add a [V8CustomToJSObject] IDL attribute
authorharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Feb 2012 05:35:55 +0000 (05:35 +0000)
committerharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Feb 2012 05:35:55 +0000 (05:35 +0000)
commit522292435e9e582f67069d839801fa9ec6cdff7f
tree1775ac3f3d8be2a739df36c70804128fc5887416
parent2202f0e61492ecca7dedbeaa301d4286d42485a3
Add a [V8CustomToJSObject] IDL attribute
https://bugs.webkit.org/show_bug.cgi?id=78450

Reviewed by Adam Barth.

This is the first step to remove hard-coding in HasCustomToV8Implementation()
in CodeGeneratorV8.pm. This patch adds [V8CustomToJSObject]
to interfaces which have custom toV8() but do not have custom toJS().

No tests. No change in behavior.

* bindings/scripts/CodeGeneratorV8.pm: Replaced hard-coding with [V8CustomToJSObject].
(HasCustomToV8Implementation):

* css/CSSStyleSheet.idl: Added [V8CustomToJSObject].
* dom/DOMStringMap.idl:
* dom/Element.idl:
* dom/NamedNodeMap.idl:
* html/DOMTokenList.idl:
* html/HTMLDocument.idl:
* html/HTMLElement.idl:
* html/canvas/CanvasPixelArray.idl:
* inspector/ScriptProfile.idl:
* inspector/ScriptProfileNode.idl:
* page/DOMWindow.idl:
* page/Location.idl:
* svg/SVGDocument.idl:
* svg/SVGElement.idl:
* workers/WorkerContext.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
Source/WebCore/css/CSSStyleSheet.idl
Source/WebCore/dom/DOMStringMap.idl
Source/WebCore/dom/Element.idl
Source/WebCore/dom/NamedNodeMap.idl
Source/WebCore/html/DOMTokenList.idl
Source/WebCore/html/HTMLDocument.idl
Source/WebCore/html/HTMLElement.idl
Source/WebCore/html/canvas/CanvasPixelArray.idl
Source/WebCore/inspector/ScriptProfile.idl
Source/WebCore/inspector/ScriptProfileNode.idl
Source/WebCore/page/DOMWindow.idl
Source/WebCore/page/Location.idl
Source/WebCore/svg/SVGDocument.idl
Source/WebCore/svg/SVGElement.idl
Source/WebCore/workers/WorkerContext.idl