[Microdata] HTMLPropertiesCollection code cleanup
[WebKit-https.git] / Source / WebCore / html / HTMLPropertiesCollection.cpp
index ded54d26adadaf882c8bd8e2ccddf0fc6dc83eaf..dc91ed96da6026026520f4aca7239b846be96e5c 100644 (file)
@@ -35,7 +35,6 @@
 #include "HTMLPropertiesCollection.h"
 
 #include "DOMSettableTokenList.h"
-#include "DOMStringList.h"
 #include "HTMLElement.h"
 #include "HTMLNames.h"
 #include "Node.h"
@@ -122,7 +121,7 @@ void HTMLPropertiesCollection::updateNameCache() const
         for (HTMLElement* element = virtualItemAfter(refElement, 0); element; element = virtualItemAfter(refElement, element)) {
             DOMSettableTokenList* itemProperty = element->itemProp();
             for (unsigned propertyIndex = 0; propertyIndex < itemProperty->length(); ++propertyIndex)
-                updatePropertyCache(element, itemProperty->item(propertyIndex));
+                updatePropertyCache(itemProperty->item(propertyIndex));
         }
     }