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

Unified Diff: Source/core/dom/StyleSheetCollection.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 | « Source/core/dom/Document.cpp ('k') | Source/core/html/HTMLLinkElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleSheetCollection.cpp
diff --git a/Source/core/dom/StyleSheetCollection.cpp b/Source/core/dom/StyleSheetCollection.cpp
index 1cdf29edb9c23030fa92935c682ef872ca791840..2f3c5b754d7925ace3d71c4bc22bd407196251f4 100644
--- a/Source/core/dom/StyleSheetCollection.cpp
+++ b/Source/core/dom/StyleSheetCollection.cpp
@@ -113,7 +113,7 @@ void StyleSheetCollection::collectStyleSheets(DocumentStyleSheetCollection* coll
bool enabledViaScript = false;
if (e->hasLocalName(linkTag)) {
// <LINK> element
- HTMLLinkElement* linkElement = static_cast<HTMLLinkElement*>(n);
+ HTMLLinkElement* linkElement = toHTMLLinkElement(n);
enabledViaScript = linkElement->isEnabledViaScript();
if (!linkElement->isDisabled() && linkElement->styleSheetIsLoading()) {
// it is loading but we should still decide which style sheet set to use
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/HTMLLinkElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698