| Index: Source/core/editing/MarkupAccumulator.h
|
| diff --git a/Source/core/editing/MarkupAccumulator.h b/Source/core/editing/MarkupAccumulator.h
|
| index 33803369e9397b67729491b7a2d3a0f73e6cba0b..595bf49775a3c1218696de146e07d8a6756fb54c 100644
|
| --- a/Source/core/editing/MarkupAccumulator.h
|
| +++ b/Source/core/editing/MarkupAccumulator.h
|
| @@ -57,11 +57,16 @@ enum EntityMask {
|
| EntityMaskInHTMLAttributeValue = EntityAmp | EntityQuot | EntityNbsp,
|
| };
|
|
|
| +enum SerializationType {
|
| + AsOwnerDocument,
|
| + ForcedXML
|
| +};
|
| +
|
| class MarkupAccumulator {
|
| WTF_MAKE_NONCOPYABLE(MarkupAccumulator);
|
|
|
| public:
|
| - MarkupAccumulator(Vector<Node*>*, EAbsoluteURLs, const Range* = 0);
|
| + MarkupAccumulator(Vector<Node*>*, EAbsoluteURLs, const Range* = 0, SerializationType = AsOwnerDocument);
|
| virtual ~MarkupAccumulator();
|
|
|
| String serializeNodes(Node& targetNode, EChildrenOnly, Vector<QualifiedName>* tagNamesToSkip = 0);
|
| @@ -104,9 +109,11 @@ private:
|
| String resolveURLIfNeeded(const Element&, const String&) const;
|
| void appendQuotedURLAttributeValue(StringBuilder&, const Element&, const Attribute&);
|
| void serializeNodesWithNamespaces(Node& targetNode, EChildrenOnly, const Namespaces*, Vector<QualifiedName>* tagNamesToSkip);
|
| + bool serializeAsHTMLDocument(const Node&) const;
|
|
|
| StringBuilder m_markup;
|
| const EAbsoluteURLs m_resolveURLsMethod;
|
| + SerializationType m_serializationType;
|
| };
|
|
|
| }
|
|
|