summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLStyleElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLStyleElement.cpp')
-rw-r--r--WebCore/html/HTMLStyleElement.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/WebCore/html/HTMLStyleElement.cpp b/WebCore/html/HTMLStyleElement.cpp
index f6b5924..206aec4 100644
--- a/WebCore/html/HTMLStyleElement.cpp
+++ b/WebCore/html/HTMLStyleElement.cpp
@@ -71,8 +71,7 @@ void HTMLStyleElement::insertedIntoDocument()
void HTMLStyleElement::removedFromDocument()
{
HTMLElement::removedFromDocument();
- if (document()->renderer())
- document()->removeStyleSheetCandidateNode(this);
+ document()->removeStyleSheetCandidateNode(this);
StyleElement::removedFromDocument(document());
}