Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(763)

Unified Diff: Source/core/dom/Document.cpp

Issue 19186002: Introduce toHTMLLinkElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/StyleSheetCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « no previous file | Source/core/dom/StyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698