Changeset 15310 in webkit for trunk/JavaScriptCore/API/JSNode.c
- Timestamp:
- Jul 10, 2006, 2:17:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSNode.c
r15307 r15310 49 49 } else { 50 50 Node* node = JSObjectGetPrivate(thisObject); 51 Node* child = JSObjectGetPrivate( argv[0]);51 Node* child = JSObjectGetPrivate(JSValueToObject(context, argv[0])); 52 52 53 53 Node_appendChild(node, child); … … 67 67 if (JSValueIsObjectOfClass(argv[0], JSNode_class(context))) { 68 68 Node* node = JSObjectGetPrivate(thisObject); 69 Node* child = JSObjectGetPrivate( argv[0]);69 Node* child = JSObjectGetPrivate(JSValueToObject(context, argv[0])); 70 70 71 71 Node_removeChild(node, child); … … 87 87 if (JSValueIsObjectOfClass(argv[1], JSNode_class(context))) { 88 88 Node* node = JSObjectGetPrivate(thisObject); 89 Node* newChild = JSObjectGetPrivate( argv[0]);90 Node* oldChild = JSObjectGetPrivate( argv[1]);89 Node* newChild = JSObjectGetPrivate(JSValueToObject(context, argv[0])); 90 Node* oldChild = JSObjectGetPrivate(JSValueToObject(context, argv[1])); 91 91 92 92 Node_replaceChild(node, newChild, oldChild);
Note:
See TracChangeset
for help on using the changeset viewer.