https://bugs.webkit.org/show_bug.cgi?id=137906
Reviewed by Darin Adler.
Made it so that JSHTMLDocument::write() and ::writeln() are always created for every prototype.
This is similar to the change in r174847.
* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::JSHTMLDocument::getOwnPropertySlot):
* html/HTMLDocument.idl:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174985
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-10-20 Michael Saboff <msaboff@apple.com>
+
+ Don't create cached functions for HTMLDocument.write*()
+ https://bugs.webkit.org/show_bug.cgi?id=137906
+
+ Reviewed by Darin Adler.
+
+ Made it so that JSHTMLDocument::write() and ::writeln() are always created for every prototype.
+ This is similar to the change in r174847.
+
+ * bindings/js/JSHTMLDocumentCustom.cpp:
+ (WebCore::JSHTMLDocument::getOwnPropertySlot):
+ * html/HTMLDocument.idl:
+
2014-10-21 Chris Dumez <cdumez@apple.com>
REGRESSION(r174676): It broke the !ENABLE(VIDEO) build
slot.setCustom(thisObject, ReadOnly | DontDelete | DontEnum, nonCachingStaticFunctionGetter<jsHTMLDocumentPrototypeFunctionOpen, 2>);
return true;
}
+ if (equal(propertyName.publicName(), "write")) {
+ slot.setCustom(thisObject, ReadOnly | DontDelete | DontEnum, nonCachingStaticFunctionGetter<jsHTMLDocumentPrototypeFunctionWrite, 1>);
+ return true;
+ }
+ if (equal(propertyName.publicName(), "writeln")) {
+ slot.setCustom(thisObject, ReadOnly | DontDelete | DontEnum, nonCachingStaticFunctionGetter<jsHTMLDocumentPrototypeFunctionWriteln, 1>);
+ return true;
+ }
if (canGetItemsForName(exec, &thisObject->impl(), propertyName)) {
slot.setCustom(thisObject, ReadOnly | DontDelete | DontEnum, thisObject->nameGetter);
] interface HTMLDocument : Document {
[Custom, ForwardDeclareInHeader] void open();
void close();
- [Custom] void write([Default=Undefined] optional DOMString text);
- [Custom] void writeln([Default=Undefined] optional DOMString text);
+ [Custom, ForwardDeclareInHeader] void write([Default=Undefined] optional DOMString text);
+ [Custom, ForwardDeclareInHeader] void writeln([Default=Undefined] optional DOMString text);
readonly attribute HTMLCollection embeds;
readonly attribute HTMLCollection plugins;