Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: Source/core/dom/Node.cpp

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/modules/serviceworkers/RequestInit.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2457 matching lines...) Expand 10 before | Expand all | Expand 10 after
2468 ASSERT_NOT_REACHED(); 2468 ASSERT_NOT_REACHED();
2469 return 0; 2469 return 0;
2470 } 2470 }
2471 2471
2472 v8::Handle<v8::Object> Node::wrap(v8::Handle<v8::Object> creationContext, v8::Is olate* isolate) 2472 v8::Handle<v8::Object> Node::wrap(v8::Handle<v8::Object> creationContext, v8::Is olate* isolate)
2473 { 2473 {
2474 ASSERT(!DOMDataStore::containsWrapperNonTemplate(this, isolate)); 2474 ASSERT(!DOMDataStore::containsWrapperNonTemplate(this, isolate));
2475 2475
2476 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); 2476 const WrapperTypeInfo* wrapperType = wrapperTypeInfo();
2477 2477
2478 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , wrapperType, toInternalPointer(), isolate); 2478 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , wrapperType, toScriptWrappableBase(), isolate);
2479 if (UNLIKELY(wrapper.IsEmpty())) 2479 if (UNLIKELY(wrapper.IsEmpty()))
2480 return wrapper; 2480 return wrapper;
2481 2481
2482 wrapperType->installConditionallyEnabledProperties(wrapper, isolate); 2482 wrapperType->installConditionallyEnabledProperties(wrapper, isolate);
2483 wrapperType->refObject(toInternalPointer()); 2483 wrapperType->refObject(toScriptWrappableBase());
2484 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp er, isolate); 2484 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp er, isolate);
2485 return wrapper; 2485 return wrapper;
2486 } 2486 }
2487 2487
2488 } // namespace blink 2488 } // namespace blink
2489 2489
2490 #ifndef NDEBUG 2490 #ifndef NDEBUG
2491 2491
2492 void showNode(const blink::Node* node) 2492 void showNode(const blink::Node* node)
2493 { 2493 {
2494 if (node) 2494 if (node)
2495 node->showNode(""); 2495 node->showNode("");
2496 } 2496 }
2497 2497
2498 void showTree(const blink::Node* node) 2498 void showTree(const blink::Node* node)
2499 { 2499 {
2500 if (node) 2500 if (node)
2501 node->showTreeForThis(); 2501 node->showTreeForThis();
2502 } 2502 }
2503 2503
2504 void showNodePath(const blink::Node* node) 2504 void showNodePath(const blink::Node* node)
2505 { 2505 {
2506 if (node) 2506 if (node)
2507 node->showNodePathForThis(); 2507 node->showNodePathForThis();
2508 } 2508 }
2509 2509
2510 #endif 2510 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/modules/serviceworkers/RequestInit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698