| Index: Source/core/dom/Element.h
|
| diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
|
| index f2f70281979eba7b0bbf5288f6014b6a76dabe79..9071c00343f6bf3f28a8a51ab6ae87144f556cea 100644
|
| --- a/Source/core/dom/Element.h
|
| +++ b/Source/core/dom/Element.h
|
| @@ -175,8 +175,8 @@ public:
|
| size_t attributeCount() const;
|
| const Attribute& attributeAt(unsigned index) const;
|
| const Attribute* findAttributeByName(const QualifiedName&) const;
|
| - size_t findAttributeIndexByName(const QualifiedName& name) const { return elementData()->findAttributeIndexByName(name); }
|
| - size_t findAttributeIndexByName(const AtomicString& name, bool shouldIgnoreAttributeCase) const { return elementData()->findAttributeIndexByName(name, shouldIgnoreAttributeCase); }
|
| + size_t findAttributeIndexByName(const QualifiedName& name) const { return elementData()->attributes().find(name); }
|
| + size_t findAttributeIndexByName(const AtomicString& name, bool shouldIgnoreAttributeCase) const { return elementData()->attributes().find(name, shouldIgnoreAttributeCase); }
|
|
|
| void scrollIntoView(bool alignToTop = true);
|
| void scrollIntoViewIfNeeded(bool centerIfNeeded = true);
|
| @@ -717,7 +717,7 @@ inline const AtomicString& Element::fastGetAttribute(const QualifiedName& name)
|
|
|
| inline bool Element::hasAttributesWithoutUpdate() const
|
| {
|
| - return elementData() && elementData()->hasAttributes();
|
| + return elementData() && !elementData()->attributes().isEmpty();
|
| }
|
|
|
| inline const AtomicString& Element::idForStyleResolution() const
|
| @@ -769,19 +769,19 @@ inline const SpaceSplitString& Element::classNames() const
|
| inline size_t Element::attributeCount() const
|
| {
|
| ASSERT(elementData());
|
| - return elementData()->attributeCount();
|
| + return elementData()->attributes().size();
|
| }
|
|
|
| inline const Attribute& Element::attributeAt(unsigned index) const
|
| {
|
| ASSERT(elementData());
|
| - return elementData()->attributeAt(index);
|
| + return elementData()->attributes()[index];
|
| }
|
|
|
| inline const Attribute* Element::findAttributeByName(const QualifiedName& name) const
|
| {
|
| ASSERT(elementData());
|
| - return elementData()->findAttributeByName(name);
|
| + return elementData()->attributes().get(name);
|
| }
|
|
|
| inline bool Element::hasID() const
|
|
|