| Index: Source/web/WebPageSerializerImpl.h
|
| diff --git a/Source/web/WebPageSerializerImpl.h b/Source/web/WebPageSerializerImpl.h
|
| index 60723230ed8de05bbbd7d1d254960c29d277c92d..b92aec4da781de90947aeb5eeafbb7a489c26d3e 100644
|
| --- a/Source/web/WebPageSerializerImpl.h
|
| +++ b/Source/web/WebPageSerializerImpl.h
|
| @@ -44,17 +44,15 @@
|
| #include "public/web/WebPageSerializerClient.h"
|
| #include "web/WebEntities.h"
|
|
|
| -namespace WTF{
|
| +namespace WTF {
|
| class TextEncoding;
|
| }
|
|
|
| namespace blink {
|
| +
|
| class Document;
|
| class Element;
|
| class Node;
|
| -}
|
| -
|
| -namespace blink {
|
| class WebLocalFrameImpl;
|
|
|
| // Get html data by serializing all frames of current page with lists
|
| @@ -119,15 +117,15 @@ private:
|
| WebEntities m_xmlEntities;
|
|
|
| struct SerializeDomParam {
|
| - const blink::KURL& url;
|
| + const KURL& url;
|
| const WTF::TextEncoding& textEncoding;
|
| - blink::Document* document;
|
| + Document* document;
|
| const WTF::String& directoryName;
|
| bool isHTMLDocument; // document.isHTMLDocument()
|
| bool haveSeenDocType;
|
| bool haveAddedCharsetDeclaration;
|
| // This meta element need to be skipped when serializing DOM.
|
| - const blink::Element* skipMetaElement;
|
| + const Element* skipMetaElement;
|
| // Flag indicates we are in script or style tag.
|
| bool isInScriptOrStyleTag;
|
| bool haveAddedXMLProcessingDirective;
|
| @@ -138,28 +136,28 @@ private:
|
| // serialization stream.
|
| bool haveAddedContentsBeforeEnd;
|
|
|
| - SerializeDomParam(const blink::KURL&, const WTF::TextEncoding&, blink::Document*, const WTF::String& directoryName);
|
| + SerializeDomParam(const KURL&, const WTF::TextEncoding&, Document*, const WTF::String& directoryName);
|
| };
|
|
|
| // Collect all target frames which need to be serialized.
|
| void collectTargetFrames();
|
| // Before we begin serializing open tag of a element, we give the target
|
| // element a chance to do some work prior to add some additional data.
|
| - WTF::String preActionBeforeSerializeOpenTag(const blink::Element* element,
|
| + WTF::String preActionBeforeSerializeOpenTag(const Element*,
|
| SerializeDomParam* param,
|
| bool* needSkip);
|
| // After we finish serializing open tag of a element, we give the target
|
| // element a chance to do some post work to add some additional data.
|
| - WTF::String postActionAfterSerializeOpenTag(const blink::Element* element,
|
| + WTF::String postActionAfterSerializeOpenTag(const Element*,
|
| SerializeDomParam* param);
|
| // Before we begin serializing end tag of a element, we give the target
|
| // element a chance to do some work prior to add some additional data.
|
| - WTF::String preActionBeforeSerializeEndTag(const blink::Element* element,
|
| + WTF::String preActionBeforeSerializeEndTag(const Element*,
|
| SerializeDomParam* param,
|
| bool* needSkip);
|
| // After we finish serializing end tag of a element, we give the target
|
| // element a chance to do some post work to add some additional data.
|
| - WTF::String postActionAfterSerializeEndTag(const blink::Element* element,
|
| + WTF::String postActionAfterSerializeEndTag(const Element*,
|
| SerializeDomParam* param);
|
| // Save generated html content to data buffer.
|
| void saveHTMLContentToBuffer(const WTF::String& content,
|
| @@ -177,13 +175,13 @@ private:
|
| SerializeDomParam* param,
|
| FlushOption);
|
| // Serialize open tag of an specified element.
|
| - void openTagToString(blink::Element*,
|
| + void openTagToString(Element*,
|
| SerializeDomParam* param);
|
| // Serialize end tag of an specified element.
|
| - void endTagToString(blink::Element*,
|
| + void endTagToString(Element*,
|
| SerializeDomParam* param);
|
| // Build content for a specified node
|
| - void buildContentForNode(blink::Node*,
|
| + void buildContentForNode(Node*,
|
| SerializeDomParam* param);
|
| };
|
|
|
|
|