Index: Source/core/dom/ElementDataCache.cpp |
diff --git a/Source/core/dom/ElementDataCache.cpp b/Source/core/dom/ElementDataCache.cpp |
index 8bdbf92705ec81566275a4a8322153701b983fdc..9d0cbdad6c2ae7a0eba27b18c0f92b3257d3c590 100644 |
--- a/Source/core/dom/ElementDataCache.cpp |
+++ b/Source/core/dom/ElementDataCache.cpp |
@@ -38,7 +38,7 @@ inline unsigned attributeHash(const Vector<Attribute>& attributes) |
inline bool hasSameAttributes(const Vector<Attribute>& attributes, ShareableElementData& elementData) |
{ |
- if (attributes.size() != elementData.length()) |
+ if (attributes.size() != elementData.attributeCount()) |
return false; |
return !memcmp(attributes.data(), elementData.m_attributeArray, attributes.size() * sizeof(Attribute)); |
} |