diff options
Diffstat (limited to 'Source/WebCore/dom/ProcessingInstruction.cpp')
-rw-r--r-- | Source/WebCore/dom/ProcessingInstruction.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/WebCore/dom/ProcessingInstruction.cpp b/Source/WebCore/dom/ProcessingInstruction.cpp index ed329bc..ae0e40d 100644 --- a/Source/WebCore/dom/ProcessingInstruction.cpp +++ b/Source/WebCore/dom/ProcessingInstruction.cpp @@ -43,6 +43,7 @@ inline ProcessingInstruction::ProcessingInstruction(Document* document, const St , m_loading(false) , m_alternate(false) , m_createdByParser(false) + , m_isCSS(false) #if ENABLE(XSLT) , m_isXSL(false) #endif @@ -120,13 +121,13 @@ void ProcessingInstruction::checkStyleSheet() if (i != attrs.end()) type = i->second; - bool isCSS = type.isEmpty() || type == "text/css"; + m_isCSS = type.isEmpty() || type == "text/css"; #if ENABLE(XSLT) m_isXSL = (type == "text/xml" || type == "text/xsl" || type == "application/xml" || type == "application/xhtml+xml" || type == "application/rss+xml" || type == "application/atom+xml"); - if (!isCSS && !m_isXSL) + if (!m_isCSS && !m_isXSL) #else - if (!isCSS) + if (!m_isCSS) #endif return; @@ -208,9 +209,7 @@ void ProcessingInstruction::setCSSStyleSheet(const String& href, const KURL& bas return; } -#if ENABLE(XSLT) - ASSERT(!m_isXSL); -#endif + ASSERT(m_isCSS); RefPtr<CSSStyleSheet> newSheet = CSSStyleSheet::create(this, href, baseURL, charset); m_sheet = newSheet; // We don't need the cross-origin security check here because we are |