| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 PassRefPtr<Element> Element::create(const QualifiedName& tagName, Document* docu
ment) | 97 PassRefPtr<Element> Element::create(const QualifiedName& tagName, Document* docu
ment) |
| 98 { | 98 { |
| 99 return adoptRef(new Element(tagName, document, CreateElement)); | 99 return adoptRef(new Element(tagName, document, CreateElement)); |
| 100 } | 100 } |
| 101 | 101 |
| 102 Element::Element(const QualifiedName& tagName, Document* document, ConstructionT
ype type) | 102 Element::Element(const QualifiedName& tagName, Document* document, ConstructionT
ype type) |
| 103 : ContainerNode(document, type) | 103 : ContainerNode(document, type) |
| 104 , m_tagName(tagName) | 104 , m_tagName(tagName) |
| 105 { | 105 { |
| 106 ScriptWrappable::init(this); | |
| 107 } | 106 } |
| 108 | 107 |
| 109 Element::~Element() | 108 Element::~Element() |
| 110 { | 109 { |
| 111 ASSERT(needsAttach()); | 110 ASSERT(needsAttach()); |
| 112 | 111 |
| 113 #if !ENABLE(OILPAN) | 112 #if !ENABLE(OILPAN) |
| 114 if (hasRareData()) | 113 if (hasRareData()) |
| 115 elementRareData()->clearShadow(); | 114 elementRareData()->clearShadow(); |
| 116 | 115 |
| (...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1838 return false; | 1837 return false; |
| 1839 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. | 1838 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. |
| 1840 // See comments in RenderObject::setStyle(). | 1839 // See comments in RenderObject::setStyle(). |
| 1841 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? | 1840 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? |
| 1842 if (isHTMLCanvasElement(*this)) | 1841 if (isHTMLCanvasElement(*this)) |
| 1843 return false; | 1842 return false; |
| 1844 return true; | 1843 return true; |
| 1845 } | 1844 } |
| 1846 | 1845 |
| 1847 } // namespace blink | 1846 } // namespace blink |
| OLD | NEW |