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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 IntSize savedLayerScrollOffset() const; | 612 IntSize savedLayerScrollOffset() const; |
613 void setSavedLayerScrollOffset(const IntSize&); | 613 void setSavedLayerScrollOffset(const IntSize&); |
614 | 614 |
615 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 615 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
616 | 616 |
617 protected: | 617 protected: |
618 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) | 618 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) |
619 : ContainerNode(document, type) | 619 : ContainerNode(document, type) |
620 , m_tagName(tagName) | 620 , m_tagName(tagName) |
621 { | 621 { |
| 622 ScriptWrappable::init(this); |
622 } | 623 } |
623 | 624 |
624 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 625 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
625 virtual void removedFrom(ContainerNode*) OVERRIDE; | 626 virtual void removedFrom(ContainerNode*) OVERRIDE; |
626 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 627 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
627 virtual void removeAllEventListeners() OVERRIDE; | 628 virtual void removeAllEventListeners() OVERRIDE; |
628 | 629 |
629 virtual bool willRecalcStyle(StyleChange); | 630 virtual bool willRecalcStyle(StyleChange); |
630 virtual void didRecalcStyle(StyleChange); | 631 virtual void didRecalcStyle(StyleChange); |
631 virtual PassRefPtr<RenderStyle> customStyleForRenderer(); | 632 virtual PassRefPtr<RenderStyle> customStyleForRenderer(); |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 { | 995 { |
995 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 996 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
996 if (m_isUnique) | 997 if (m_isUnique) |
997 return &static_cast<const UniqueElementData*>(this)->m_attributeVector.a
t(index); | 998 return &static_cast<const UniqueElementData*>(this)->m_attributeVector.a
t(index); |
998 return &static_cast<const ShareableElementData*>(this)->m_attributeArray[ind
ex]; | 999 return &static_cast<const ShareableElementData*>(this)->m_attributeArray[ind
ex]; |
999 } | 1000 } |
1000 | 1001 |
1001 } // namespace | 1002 } // namespace |
1002 | 1003 |
1003 #endif | 1004 #endif |
OLD | NEW |