| 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 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 PassRefPtrWillBeRawPtr<Element> Element::create(const QualifiedName& tagName, Do
cument* document) | 137 PassRefPtrWillBeRawPtr<Element> Element::create(const QualifiedName& tagName, Do
cument* document) |
| 138 { | 138 { |
| 139 return adoptRefWillBeNoop(new Element(tagName, document, CreateElement)); | 139 return adoptRefWillBeNoop(new Element(tagName, document, CreateElement)); |
| 140 } | 140 } |
| 141 | 141 |
| 142 Element::Element(const QualifiedName& tagName, Document* document, ConstructionT
ype type) | 142 Element::Element(const QualifiedName& tagName, Document* document, ConstructionT
ype type) |
| 143 : ContainerNode(document, type) | 143 : ContainerNode(document, type) |
| 144 , m_tagName(tagName) | 144 , m_tagName(tagName) |
| 145 { | 145 { |
| 146 ScriptWrappable::init(this); | |
| 147 } | 146 } |
| 148 | 147 |
| 149 Element::~Element() | 148 Element::~Element() |
| 150 { | 149 { |
| 151 ASSERT(needsAttach()); | 150 ASSERT(needsAttach()); |
| 152 | 151 |
| 153 #if !ENABLE(OILPAN) | 152 #if !ENABLE(OILPAN) |
| 154 if (hasRareData()) | 153 if (hasRareData()) |
| 155 elementRareData()->clearShadow(); | 154 elementRareData()->clearShadow(); |
| 156 | 155 |
| (...skipping 3142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3299 return v8::Handle<v8::Object>(); | 3298 return v8::Handle<v8::Object>(); |
| 3300 | 3299 |
| 3301 wrapper->SetPrototype(binding->prototype()); | 3300 wrapper->SetPrototype(binding->prototype()); |
| 3302 | 3301 |
| 3303 wrapperType->refObject(toScriptWrappableBase()); | 3302 wrapperType->refObject(toScriptWrappableBase()); |
| 3304 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp
er, isolate); | 3303 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp
er, isolate); |
| 3305 return wrapper; | 3304 return wrapper; |
| 3306 } | 3305 } |
| 3307 | 3306 |
| 3308 } // namespace blink | 3307 } // namespace blink |
| OLD | NEW |