| 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 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 ASSERT_NOT_REACHED(); | 2290 ASSERT_NOT_REACHED(); |
| 2291 return 0; | 2291 return 0; |
| 2292 } | 2292 } |
| 2293 | 2293 |
| 2294 v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate, v8::Local<v8::Object> cre
ationContext) | 2294 v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate, v8::Local<v8::Object> cre
ationContext) |
| 2295 { | 2295 { |
| 2296 DCHECK(!DOMDataStore::containsWrapper(this, isolate)); | 2296 DCHECK(!DOMDataStore::containsWrapper(this, isolate)); |
| 2297 | 2297 |
| 2298 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); | 2298 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); |
| 2299 | 2299 |
| 2300 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio
nContext, wrapperType, this); | 2300 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio
nContext, wrapperType); |
| 2301 if (UNLIKELY(wrapper.IsEmpty())) | 2301 if (UNLIKELY(wrapper.IsEmpty())) |
| 2302 return wrapper; | 2302 return wrapper; |
| 2303 | 2303 |
| 2304 wrapperType->installConditionallyEnabledProperties(wrapper, isolate); | 2304 wrapperType->installConditionallyEnabledProperties(wrapper, isolate); |
| 2305 return associateWithWrapper(isolate, wrapperType, wrapper); | 2305 return associateWithWrapper(isolate, wrapperType, wrapper); |
| 2306 } | 2306 } |
| 2307 | 2307 |
| 2308 v8::Local<v8::Object> Node::associateWithWrapper(v8::Isolate* isolate, const Wra
pperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper) | 2308 v8::Local<v8::Object> Node::associateWithWrapper(v8::Isolate* isolate, const Wra
pperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper) |
| 2309 { | 2309 { |
| 2310 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
wrapper); | 2310 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
wrapper); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2332 | 2332 |
| 2333 void showNodePath(const blink::Node* node) | 2333 void showNodePath(const blink::Node* node) |
| 2334 { | 2334 { |
| 2335 if (node) | 2335 if (node) |
| 2336 node->showNodePathForThis(); | 2336 node->showNodePathForThis(); |
| 2337 else | 2337 else |
| 2338 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2338 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
| 2339 } | 2339 } |
| 2340 | 2340 |
| 2341 #endif | 2341 #endif |
| OLD | NEW |