Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: Source/core/dom/DocumentStyleSheetCollection.cpp

Issue 257363002: Added addXSLStyleSheet and removeXSLStyleSheet to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/ProcessingInstruction.h » ('j') | Source/core/dom/ProcessingInstruction.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | Source/core/dom/ProcessingInstruction.h » ('j') | Source/core/dom/ProcessingInstruction.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698