OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "V8Node.h" | 34 #include "V8Node.h" |
35 #include "bindings/v8/V8Binding.h" | 35 #include "bindings/v8/V8Binding.h" |
36 #include "bindings/v8/V8GCController.h" | 36 #include "bindings/v8/V8GCController.h" |
37 #include "core/dom/LiveNodeList.h" | 37 #include "core/dom/LiveNodeList.h" |
38 #include "core/dom/NodeList.h" | 38 #include "core/dom/NodeList.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 #include "wtf/StdLibExtras.h" | 40 #include "wtf/StdLibExtras.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 void* V8NodeList::opaqueRootForGC(void* object, v8::Isolate* isolate) | 44 void* V8NodeList::resolveWrapperReachability(void* object, const v8::Persistent<
v8::Object>& wrapper, v8::Isolate* isolate) |
45 { | 45 { |
46 NodeList* impl = static_cast<NodeList*>(object); | 46 NodeList* impl = static_cast<NodeList*>(object); |
47 if (!impl->isLiveNodeList()) | 47 if (!impl->isLiveNodeList()) |
48 return object; | 48 return object; |
49 Node* owner = static_cast<LiveNodeList*>(impl)->ownerNode(); | 49 Node* owner = static_cast<LiveNodeList*>(impl)->ownerNode(); |
50 if (!owner) | 50 if (!owner) |
51 return object; | 51 return object; |
52 return V8GCController::opaqueRootForGC(owner, isolate); | 52 return V8GCController::opaqueRootForGC(owner, isolate); |
53 } | 53 } |
54 | 54 |
55 } // namespace WebCore | 55 } // namespace WebCore |
OLD | NEW |