Index: Source/core/inspector/InspectorStyleSheet.cpp |
diff --git a/Source/core/inspector/InspectorStyleSheet.cpp b/Source/core/inspector/InspectorStyleSheet.cpp |
index b7c03a554331e9384fa0642aa700b1283d267ef0..5edb51bca492111af23c47aaacb95b813f25c356 100644 |
--- a/Source/core/inspector/InspectorStyleSheet.cpp |
+++ b/Source/core/inspector/InspectorStyleSheet.cpp |
@@ -1531,7 +1531,7 @@ bool InspectorStyleSheet::resourceStyleSheetText(String* result) const |
bool InspectorStyleSheet::inlineStyleSheetText(String* result) const |
{ |
Node* ownerNode = m_pageStyleSheet->ownerNode(); |
- if (!ownerNode || ownerNode->nodeType() != Node::ELEMENT_NODE) |
+ if (!ownerNode || !ownerNode->isElementNode()) |
return false; |
Element& ownerElement = toElement(*ownerNode); |