Index: Source/core/dom/DocumentStyleSheetCollection.cpp |
diff --git a/Source/core/dom/DocumentStyleSheetCollection.cpp b/Source/core/dom/DocumentStyleSheetCollection.cpp |
index 7d860286da3b63c7f600bbdbb1f34fcc8f9815c7..043e909317588cf3278f46149319fd7a51b4a7e2 100644 |
--- a/Source/core/dom/DocumentStyleSheetCollection.cpp |
+++ b/Source/core/dom/DocumentStyleSheetCollection.cpp |
@@ -62,21 +62,7 @@ void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates(StyleEngine* |
Node* n = *it; |
StyleSheetCandidate candidate(*n); |
- if (candidate.isXSL()) { |
- // Processing instruction (XML documents only). |
- // We don't support linking to embedded CSS stylesheets, see <https://bugs.webkit.org/show_bug.cgi?id=49281> for discussion. |
- // Don't apply XSL transforms to already transformed documents -- <rdar://problem/4132806> |
- if (RuntimeEnabledFeatures::xsltEnabled() && !document().transformSourceDocument()) { |
- ProcessingInstruction* pi = toProcessingInstruction(n); |
- // Don't apply XSL transforms until loading is finished. |
- if (!document().parsing() && !pi->isLoading()) |
- document().applyXSLTransform(pi); |
- return; |
- } |
- |
- continue; |
- } |
- |
+ ASSERT(!candidate.isXSL()); |
if (candidate.isImport()) { |
Document* document = candidate.importedDocument(); |
if (!document) |