Index: Source/core/editing/markup.cpp |
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp |
index 72a7a293852ce39caa23cc818280d68de4860126..9c78afc0b0036ec3fb3a2c96eac3217fc6c95df7 100644 |
--- a/Source/core/editing/markup.cpp |
+++ b/Source/core/editing/markup.cpp |
@@ -991,11 +991,12 @@ static inline bool isSupportedContainer(Element* element) |
if (!element->isHTMLElement()) |
return true; |
- if (element->hasLocalName(colTag) || element->hasLocalName(colgroupTag) || element->hasLocalName(framesetTag) |
- || element->hasLocalName(headTag) || element->hasLocalName(styleTag) || element->hasLocalName(titleTag)) { |
+ HTMLElement& htmlElement = toHTMLElement(*element); |
+ if (htmlElement.hasTagName(colTag) || htmlElement.hasTagName(colgroupTag) || htmlElement.hasTagName(framesetTag) |
+ || htmlElement.hasTagName(headTag) || htmlElement.hasTagName(styleTag) || htmlElement.hasTagName(titleTag)) { |
return false; |
} |
- return !toHTMLElement(element)->ieForbidsInsertHTML(); |
+ return !htmlElement.ieForbidsInsertHTML(); |
} |
PassRefPtrWillBeRawPtr<DocumentFragment> createContextualFragment(const String& markup, Element* element, ParserContentPolicy parserContentPolicy, ExceptionState& exceptionState) |