Changeset 83270 in webkit
- Timestamp:
- Apr 8, 2011 2:04:42 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r83250 r83270 1 2011-04-08 Dominic Cooney <dominicc@google.com> 2 3 Reviewed by Kent Tamura. 4 5 Make WK2 layoutTestController.shadowRoot return undefined, not 6 null, when its argument is not an element. 7 https://bugs.webkit.org/show_bug.cgi?id=58121 8 9 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 10 (WTR::LayoutTestController::shadowRoot): 11 1 12 2011-04-07 Dirk Pranke <dpranke@chromium.org> 2 13 -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r83195 r83270 361 361 362 362 if (!element || !JSValueIsObject(context, element)) 363 return JSValueMake Null(context);363 return JSValueMakeUndefined(context); 364 364 365 365 WKRetainPtr<WKBundleNodeHandleRef> domElement = adoptWK(WKBundleNodeHandleCreate(context, const_cast<JSObjectRef>(element))); 366 366 if (!domElement) 367 return JSValueMake Null(context);367 return JSValueMakeUndefined(context); 368 368 369 369 WKRetainPtr<WKBundleNodeHandleRef> shadowRootDOMElement = adoptWK(WKBundleNodeHandleCopyElementShadowRoot(domElement.get()));
Note: See TracChangeset
for help on using the changeset viewer.