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

Unified Diff: third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.h

Issue 2912213002: Support serializing shadow DOM to MHTML (Closed)
Patch Set: Strip anoter shadow attribute Created 3 years, 6 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 | third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.h
diff --git a/third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.h b/third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.h
index d18c4008649a2d5d4b24f5f10d77c2ecab3983a8..d04b5062af80258097a32f816094b26b691724b8 100644
--- a/third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.h
+++ b/third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.h
@@ -75,6 +75,15 @@ class MarkupAccumulator {
EntityMask EntityMaskForText(const Text&) const;
+ // Returns an auxiliary DOM tree, i.e. shadow tree, that needs also to be
+ // serialized. The root of auxiliary DOM tree is returned as an 1st element
+ // in the pair. It can be null if no auxiliary DOM tree exists. An additional
+ // element used to enclose the serialized content of auxiliary DOM tree
+ // can be returned as 2nd element in the pair. It can be null if this is not
+ // needed. For shadow tree, a <template> element is needed to wrap the shadow
+ // tree content.
+ virtual std::pair<Node*, Element*> GetAuxiliaryDOMTree(const Element&) const;
+
private:
MarkupFormatter formatter_;
StringBuilder markup_;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698