Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 80ad9cab7134e350be9e63c06bcfbc937098660d..548b832de1fea673afa385fd7ceb5ce9d7ee5663 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -4224,7 +4224,7 @@ KURL Document::openSearchDescriptionURL() |
return KURL(); |
RefPtr<HTMLCollection> children = head()->children(); |
- for (unsigned i = 0; Node* child = children->item(i); i++) { |
+ for (unsigned i = 0; Element* child = children->item(i); i++) { |
if (!child->hasTagName(linkTag)) |
continue; |
HTMLLinkElement* linkElement = toHTMLLinkElement(child); |
@@ -4482,7 +4482,7 @@ Vector<IconURL> Document::iconURLs(int iconTypesMask) |
RefPtr<HTMLCollection> children = head() ? head()->children() : 0; |
unsigned length = children ? children->length() : 0; |
for (unsigned i = 0; i < length; i++) { |
- Node* child = children->item(i); |
+ Element* child = children->item(i); |
if (!child->hasTagName(linkTag)) |
continue; |
HTMLLinkElement* linkElement = toHTMLLinkElement(child); |