Commit f529509b authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

2011-04-08 Dominic Cooney <dominicc@google.com>

        Reviewed by Kent Tamura.

        layoutTestController.shadowRoot should return undefined if its
        argument is not an element.
        https://bugs.webkit.org/show_bug.cgi?id=58119

        * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
        (DumpRenderTreeSupportGtk::shadowRoot):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ae17af2f
2011-04-08 Dominic Cooney <dominicc@google.com>
Reviewed by Kent Tamura.
layoutTestController.shadowRoot should return undefined if its
argument is not an element.
https://bugs.webkit.org/show_bug.cgi?id=58119
* WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
(DumpRenderTreeSupportGtk::shadowRoot):
2011-04-08 Mario Sanchez Prada <msanchez@igalia.com>
 
Reviewed by Martin Robinson.
......
......@@ -643,7 +643,7 @@ JSValueRef DumpRenderTreeSupportGtk::shadowRoot(JSContextRef context, JSValueRef
JSC::ExecState* exec = toJS(context);
Element* element = toElement(toJS(exec, value));
if (!element)
return JSValueMakeNull(context);
return JSValueMakeUndefined(context);
return toRef(exec, toJS(exec, element->shadowRoot()));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment