Index: Source/WebCore/dom/DocumentStyleSheetCollection.cpp |
diff --git a/Source/WebCore/dom/DocumentStyleSheetCollection.cpp b/Source/WebCore/dom/DocumentStyleSheetCollection.cpp |
index 660501ef030203781bb594e2a941de656ea72d7a..c7dbeda937f2b3c929f99dbede428ecc7f578f85 100644 |
--- a/Source/WebCore/dom/DocumentStyleSheetCollection.cpp |
+++ b/Source/WebCore/dom/DocumentStyleSheetCollection.cpp |
@@ -277,7 +277,6 @@ void DocumentStyleSheetCollection::collectActiveStyleSheets(Vector<RefPtr<StyleS |
// We don't support linking to embedded CSS stylesheets, see <https://bugs.webkit.org/show_bug.cgi?id=49281> for discussion. |
ProcessingInstruction* pi = static_cast<ProcessingInstruction*>(n); |
sheet = pi->sheet(); |
-#if ENABLE(XSLT) |
// Don't apply XSL transforms to already transformed documents -- <rdar://problem/4132806> |
if (pi->isXSL() && !m_document->transformSourceDocument()) { |
// Don't apply XSL transforms until loading is finished. |
@@ -285,7 +284,6 @@ void DocumentStyleSheetCollection::collectActiveStyleSheets(Vector<RefPtr<StyleS |
m_document->applyXSLTransform(pi); |
return; |
} |
-#endif |
} else if ((n->isHTMLElement() && (n->hasTagName(linkTag) || n->hasTagName(styleTag))) |
#if ENABLE(SVG) |
|| (n->isSVGElement() && n->hasTagName(SVGNames::styleTag)) |