ShareableElementData should use zero-length array for storage.
[WebKit-https.git] / Source / WebCore / dom / DocumentSharedObjectPool.cpp
index 0301000e90e8c82c0370a962ee17b376a8e770d7..997e8668d15b505c51386d41ad2bc230d7bd2b07 100644 (file)
@@ -86,7 +86,7 @@ PassRefPtr<ShareableElementData> DocumentSharedObjectPool::cachedShareableElemen
     if (!cacheHash || cacheIterator->value)
         return elementData.release();
 
-    cacheIterator->value = adoptPtr(new ShareableElementDataCacheEntry(ShareableElementDataCacheKey(elementData->immutableAttributeArray(), elementData->length()), elementData));
+    cacheIterator->value = adoptPtr(new ShareableElementDataCacheEntry(ShareableElementDataCacheKey(elementData->m_attributeArray, elementData->length()), elementData));
 
     return elementData.release();
 }