Index: third_party/WebKit/Source/core/dom/Node.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp |
index 67d63800116666258395b42aebaecc96ab17e67a..cbc5281a0e8e4324bd92f5e5cdd5b1e76f40b19c 100644 |
--- a/third_party/WebKit/Source/core/dom/Node.cpp |
+++ b/third_party/WebKit/Source/core/dom/Node.cpp |
@@ -164,8 +164,9 @@ void Node::dumpStatistics() |
if (!result.isNewEntry) |
result.storedValue->value++; |
- if (const ElementData* elementData = element->elementData()) { |
- attributes += elementData->attributes().size(); |
+ size_t attributeCount = element->attributesWithoutUpdate().size(); |
+ if (attributeCount) { |
+ attributes += attributeCount; |
++elementsWithAttributeStorage; |
} |
break; |