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 2715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2726 RefPtr<HTMLCollection> collection; | 2726 RefPtr<HTMLCollection> collection; |
2727 if (type == TableRows) { | 2727 if (type == TableRows) { |
2728 ASSERT(hasTagName(tableTag)); | 2728 ASSERT(hasTagName(tableTag)); |
2729 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLT
ableRowsCollection>(this, type); | 2729 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLT
ableRowsCollection>(this, type); |
2730 } else if (type == SelectOptions) { | 2730 } else if (type == SelectOptions) { |
2731 ASSERT(hasTagName(selectTag)); | 2731 ASSERT(hasTagName(selectTag)); |
2732 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLO
ptionsCollection>(this, type); | 2732 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLO
ptionsCollection>(this, type); |
2733 } else if (type == FormControls) { | 2733 } else if (type == FormControls) { |
2734 ASSERT(hasTagName(formTag) || hasTagName(fieldsetTag)); | 2734 ASSERT(hasTagName(formTag) || hasTagName(fieldsetTag)); |
2735 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLF
ormControlsCollection>(this, type); | 2735 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLF
ormControlsCollection>(this, type); |
2736 #if ENABLE(MICRODATA) | |
2737 } else if (type == ItemProperties) { | |
2738 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLP
ropertiesCollection>(this, type); | |
2739 #endif | |
2740 } | 2736 } |
2741 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLColle
ction>(this, type); | 2737 return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<HTMLColle
ction>(this, type); |
2742 } | 2738 } |
2743 | 2739 |
2744 HTMLCollection* Element::cachedHTMLCollection(CollectionType type) | 2740 HTMLCollection* Element::cachedHTMLCollection(CollectionType type) |
2745 { | 2741 { |
2746 return hasRareData() && rareData()->nodeLists() ? rareData()->nodeLists()->c
acheWithAtomicName<HTMLCollection>(type) : 0; | 2742 return hasRareData() && rareData()->nodeLists() ? rareData()->nodeLists()->c
acheWithAtomicName<HTMLCollection>(type) : 0; |
2747 } | 2743 } |
2748 | 2744 |
2749 IntSize Element::savedLayerScrollOffset() const | 2745 IntSize Element::savedLayerScrollOffset() const |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3116 return 0; | 3112 return 0; |
3117 } | 3113 } |
3118 | 3114 |
3119 Attribute* UniqueElementData::attributeItem(unsigned index) | 3115 Attribute* UniqueElementData::attributeItem(unsigned index) |
3120 { | 3116 { |
3121 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3117 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
3122 return &m_attributeVector.at(index); | 3118 return &m_attributeVector.at(index); |
3123 } | 3119 } |
3124 | 3120 |
3125 } // namespace WebCore | 3121 } // namespace WebCore |
OLD | NEW |