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

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, 8 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 d2a35e761a1581179da4254d66c82062a1800d56..e247ff3846811f64ba3c97e48e6d45e8923945ff 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -105,6 +105,8 @@ public:
void removeStyleSheetCandidateNode(Node*);
void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeScope&);
void modifiedStyleSheetCandidateNode(Node*);
+ void addXSLStyleSheet(Node*, bool createdByParser);
+ void removeXSLStyleSheet(Node*);
void invalidateInjectedStyleSheetCache();
void updateInjectedStyleSheetCache() const;
@@ -196,6 +198,7 @@ private:
TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&);
bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode);
+ bool shouldApplyXSLTransform() const;
void markTreeScopeDirty(TreeScope&);
@@ -250,6 +253,8 @@ private:
WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_textToSheetCache;
WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sheetToTextCache;
+
+ ProcessingInstruction* m_xslStyleSheet;
esprehn 2014/05/22 18:32:20 This looks really scary, can this be a RefPtr inst
tasak 2014/05/27 06:17:30 Done.
};
}

Powered by Google App Engine
This is Rietveld 408576698