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

Unified Diff: Source/core/dom/StyleEngine.h

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
Index: Source/core/dom/StyleEngine.h
diff --git a/Source/core/dom/StyleEngine.h b/Source/core/dom/StyleEngine.h
index 20118e6976d3218af49a947f6ca479e2fbef0d4e..0bf9b03ccc03d8449687f3a64839f9c9c5b466dc 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -108,6 +108,8 @@ public:
void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeScope&);
void modifiedStyleSheetCandidateNode(Node*);
void enableExitTransitionStylesheets();
+ void addXSLStyleSheet(ProcessingInstruction*, bool createdByParser);
+ void removeXSLStyleSheet(ProcessingInstruction*);
void invalidateInjectedStyleSheetCache();
void updateInjectedStyleSheetCache() const;
@@ -195,6 +197,7 @@ private:
TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&);
bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode);
+ bool shouldApplyXSLTransform() const;
void markTreeScopeDirty(TreeScope&);
@@ -273,6 +276,8 @@ private:
WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_textToSheetCache;
WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sheetToTextCache;
+
+ RefPtr<ProcessingInstruction> m_xslStyleSheet;
};
}

Powered by Google App Engine
This is Rietveld 408576698