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

Side by Side Diff: Source/core/dom/Element.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/Document.cpp ('k') | Source/core/dom/Node.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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 3276 matching lines...) Expand 10 before | Expand all | Expand 10 after
3287 3287
3288 if (!isUpgradedCustomElement() || DOMWrapperWorld::world(context).isIsolated World()) 3288 if (!isUpgradedCustomElement() || DOMWrapperWorld::world(context).isIsolated World())
3289 return ContainerNode::wrap(creationContext, isolate); 3289 return ContainerNode::wrap(creationContext, isolate);
3290 3290
3291 V8PerContextData* perContextData = V8PerContextData::from(context); 3291 V8PerContextData* perContextData = V8PerContextData::from(context);
3292 if (!perContextData) 3292 if (!perContextData)
3293 return v8::Handle<v8::Object>(); 3293 return v8::Handle<v8::Object>();
3294 3294
3295 CustomElementBinding* binding = perContextData->customElementBinding(customE lementDefinition()); 3295 CustomElementBinding* binding = perContextData->customElementBinding(customE lementDefinition());
3296 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); 3296 const WrapperTypeInfo* wrapperType = wrapperTypeInfo();
3297 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , wrapperType, toInternalPointer(), isolate); 3297 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , wrapperType, toScriptWrappableBase(), isolate);
3298 if (wrapper.IsEmpty()) 3298 if (wrapper.IsEmpty())
3299 return v8::Handle<v8::Object>(); 3299 return v8::Handle<v8::Object>();
3300 3300
3301 wrapper->SetPrototype(binding->prototype()); 3301 wrapper->SetPrototype(binding->prototype());
3302 3302
3303 wrapperType->refObject(toInternalPointer()); 3303 wrapperType->refObject(toScriptWrappableBase());
3304 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp er, isolate); 3304 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp er, isolate);
3305 return wrapper; 3305 return wrapper;
3306 } 3306 }
3307 3307
3308 } // namespace blink 3308 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698