OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2420 { | 2420 { |
2421 // It's possible that no one except for the new wrapper owns this object at | 2421 // It's possible that no one except for the new wrapper owns this object at |
2422 // this moment, so we have to prevent GC to collect this object until the | 2422 // this moment, so we have to prevent GC to collect this object until the |
2423 // object gets associated with the wrapper. | 2423 // object gets associated with the wrapper. |
2424 RefPtrWillBeRawPtr<Node> protect(this); | 2424 RefPtrWillBeRawPtr<Node> protect(this); |
2425 | 2425 |
2426 ASSERT(!DOMDataStore::containsWrapper(this, isolate)); | 2426 ASSERT(!DOMDataStore::containsWrapper(this, isolate)); |
2427 | 2427 |
2428 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); | 2428 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); |
2429 | 2429 |
2430 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, wrapperType, toScriptWrappableBase(), isolate); | 2430 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creati
onContext, wrapperType, toScriptWrappableBase()); |
2431 if (UNLIKELY(wrapper.IsEmpty())) | 2431 if (UNLIKELY(wrapper.IsEmpty())) |
2432 return wrapper; | 2432 return wrapper; |
2433 | 2433 |
2434 wrapperType->installConditionallyEnabledProperties(wrapper, isolate); | 2434 wrapperType->installConditionallyEnabledProperties(wrapper, isolate); |
2435 return associateWithWrapper(wrapperType, wrapper, isolate); | 2435 return associateWithWrapper(wrapperType, wrapper, isolate); |
2436 } | 2436 } |
2437 | 2437 |
2438 v8::Handle<v8::Object> Node::associateWithWrapper(const WrapperTypeInfo* wrapper
Type, v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) | 2438 v8::Handle<v8::Object> Node::associateWithWrapper(const WrapperTypeInfo* wrapper
Type, v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) |
2439 { | 2439 { |
2440 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
wrapper); | 2440 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
wrapper); |
(...skipping 15 matching lines...) Expand all Loading... |
2456 node->showTreeForThis(); | 2456 node->showTreeForThis(); |
2457 } | 2457 } |
2458 | 2458 |
2459 void showNodePath(const blink::Node* node) | 2459 void showNodePath(const blink::Node* node) |
2460 { | 2460 { |
2461 if (node) | 2461 if (node) |
2462 node->showNodePathForThis(); | 2462 node->showNodePathForThis(); |
2463 } | 2463 } |
2464 | 2464 |
2465 #endif | 2465 #endif |
OLD | NEW |