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 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2373 } | 2373 } |
2374 | 2374 |
2375 v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate, v8::Local<v8::Object> cre
ationContext) | 2375 v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate, v8::Local<v8::Object> cre
ationContext) |
2376 { | 2376 { |
2377 DCHECK(!DOMDataStore::containsWrapper(this, isolate)); | 2377 DCHECK(!DOMDataStore::containsWrapper(this, isolate)); |
2378 | 2378 |
2379 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); | 2379 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); |
2380 | 2380 |
2381 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio
nContext, wrapperType); | 2381 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio
nContext, wrapperType); |
2382 DCHECK(!wrapper.IsEmpty()); | 2382 DCHECK(!wrapper.IsEmpty()); |
2383 wrapperType->installConditionallyEnabledProperties(wrapper, isolate); | |
2384 return associateWithWrapper(isolate, wrapperType, wrapper); | 2383 return associateWithWrapper(isolate, wrapperType, wrapper); |
2385 } | 2384 } |
2386 | 2385 |
2387 v8::Local<v8::Object> Node::associateWithWrapper(v8::Isolate* isolate, const Wra
pperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper) | 2386 v8::Local<v8::Object> Node::associateWithWrapper(v8::Isolate* isolate, const Wra
pperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper) |
2388 { | 2387 { |
2389 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
wrapper); | 2388 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
wrapper); |
2390 } | 2389 } |
2391 | 2390 |
2392 } // namespace blink | 2391 } // namespace blink |
2393 | 2392 |
(...skipping 19 matching lines...) Expand all Loading... |
2413 if (node) | 2412 if (node) |
2414 node->printNodePathTo(stream); | 2413 node->printNodePathTo(stream); |
2415 else | 2414 else |
2416 stream << "Cannot showNodePath for <null>"; | 2415 stream << "Cannot showNodePath for <null>"; |
2417 stream << "\n"; | 2416 stream << "\n"; |
2418 // TODO(tkent): Replace WTFLogAlways with something else. | 2417 // TODO(tkent): Replace WTFLogAlways with something else. |
2419 WTFLogAlways("%s", stream.str().c_str()); | 2418 WTFLogAlways("%s", stream.str().c_str()); |
2420 } | 2419 } |
2421 | 2420 |
2422 #endif | 2421 #endif |
OLD | NEW |