| Index: Source/core/dom/StyleSheetCandidate.cpp
 | 
| diff --git a/Source/core/dom/StyleSheetCandidate.cpp b/Source/core/dom/StyleSheetCandidate.cpp
 | 
| index 8e59675b7b0478b19475df22fa6e06bdee74b612..e9bad97e4a1b8a5705d69e544ba52ba5908a53ac 100644
 | 
| --- a/Source/core/dom/StyleSheetCandidate.cpp
 | 
| +++ b/Source/core/dom/StyleSheetCandidate.cpp
 | 
| @@ -104,16 +104,16 @@ StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node)
 | 
|          return Pi;
 | 
|  
 | 
|      if (node.isHTMLElement()) {
 | 
| -        if (node.hasTagName(linkTag))
 | 
| +        if (isHTMLLinkElement(node))
 | 
|              return HTMLLink;
 | 
| -        if (node.hasTagName(styleTag))
 | 
| +        if (isHTMLStyleElement(node))
 | 
|              return HTMLStyle;
 | 
|  
 | 
|          ASSERT_NOT_REACHED();
 | 
|          return HTMLStyle;
 | 
|      }
 | 
|  
 | 
| -    if (node.isSVGElement() && node.hasTagName(SVGNames::styleTag))
 | 
| +    if (isSVGStyleElement(node))
 | 
|          return SVGStyle;
 | 
|  
 | 
|      ASSERT_NOT_REACHED();
 | 
| 
 |