| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 96c12d4a27c7a442456d64ac5e381a08ee2e8d92..7b2b3e19dc6e22862cbf27c81fa3109808fadf5b 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -3871,7 +3871,7 @@ KURL Document::openSearchDescriptionURL()
|
| for (unsigned i = 0; Node* child = children->item(i); i++) {
|
| if (!child->hasTagName(linkTag))
|
| continue;
|
| - HTMLLinkElement* linkElement = static_cast<HTMLLinkElement*>(child);
|
| + HTMLLinkElement* linkElement = toHTMLLinkElement(child);
|
| if (!equalIgnoringCase(linkElement->type(), openSearchMIMEType) || !equalIgnoringCase(linkElement->rel(), openSearchRelation))
|
| continue;
|
| if (linkElement->href().isEmpty())
|
| @@ -4141,7 +4141,7 @@ const Vector<IconURL>& Document::iconURLs(int iconTypesMask)
|
| Node* child = children->item(i);
|
| if (!child->hasTagName(linkTag))
|
| continue;
|
| - HTMLLinkElement* linkElement = static_cast<HTMLLinkElement*>(child);
|
| + HTMLLinkElement* linkElement = toHTMLLinkElement(child);
|
| if (!(linkElement->iconType() & iconTypesMask))
|
| continue;
|
| if (linkElement->href().isEmpty())
|
|
|