| 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 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2363 case Node::kDocumentFragmentNode: | 2363 case Node::kDocumentFragmentNode: |
| 2364 return toContainerNode(this)->countChildren(); | 2364 return toContainerNode(this)->countChildren(); |
| 2365 case Node::kAttributeNode: | 2365 case Node::kAttributeNode: |
| 2366 case Node::kDocumentTypeNode: | 2366 case Node::kDocumentTypeNode: |
| 2367 return 0; | 2367 return 0; |
| 2368 } | 2368 } |
| 2369 ASSERT_NOT_REACHED(); | 2369 ASSERT_NOT_REACHED(); |
| 2370 return 0; | 2370 return 0; |
| 2371 } | 2371 } |
| 2372 | 2372 |
| 2373 DISABLE_CFI_PERF |
| 2373 v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate, v8::Local<v8::Object> cre
ationContext) | 2374 v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate, v8::Local<v8::Object> cre
ationContext) |
| 2374 { | 2375 { |
| 2375 DCHECK(!DOMDataStore::containsWrapper(this, isolate)); | 2376 DCHECK(!DOMDataStore::containsWrapper(this, isolate)); |
| 2376 | 2377 |
| 2377 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); | 2378 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); |
| 2378 | 2379 |
| 2379 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio
nContext, wrapperType); | 2380 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio
nContext, wrapperType); |
| 2380 DCHECK(!wrapper.IsEmpty()); | 2381 DCHECK(!wrapper.IsEmpty()); |
| 2381 return associateWithWrapper(isolate, wrapperType, wrapper); | 2382 return associateWithWrapper(isolate, wrapperType, wrapper); |
| 2382 } | 2383 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 2411 if (node) { | 2412 if (node) { |
| 2412 std::stringstream stream; | 2413 std::stringstream stream; |
| 2413 node->printNodePathTo(stream); | 2414 node->printNodePathTo(stream); |
| 2414 LOG(INFO) << stream.str(); | 2415 LOG(INFO) << stream.str(); |
| 2415 } else { | 2416 } else { |
| 2416 LOG(INFO) << "Cannot showNodePath for <null>"; | 2417 LOG(INFO) << "Cannot showNodePath for <null>"; |
| 2417 } | 2418 } |
| 2418 } | 2419 } |
| 2419 | 2420 |
| 2420 #endif | 2421 #endif |
| OLD | NEW |