OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 const WTF::TextEncod
ing& textEncoding, | 105 const WTF::TextEncod
ing& textEncoding, |
106 Document* document, | 106 Document* document, |
107 const String& direct
oryName) | 107 const String& direct
oryName) |
108 : url(url) | 108 : url(url) |
109 , textEncoding(textEncoding) | 109 , textEncoding(textEncoding) |
110 , document(document) | 110 , document(document) |
111 , directoryName(directoryName) | 111 , directoryName(directoryName) |
112 , isHTMLDocument(document->isHTMLDocument()) | 112 , isHTMLDocument(document->isHTMLDocument()) |
113 , haveSeenDocType(false) | 113 , haveSeenDocType(false) |
114 , haveAddedCharsetDeclaration(false) | 114 , haveAddedCharsetDeclaration(false) |
115 , skipMetaElement(0) | 115 , skipMetaElement(nullptr) |
116 , isInScriptOrStyleTag(false) | 116 , isInScriptOrStyleTag(false) |
117 , haveAddedXMLProcessingDirective(false) | 117 , haveAddedXMLProcessingDirective(false) |
118 , haveAddedContentsBeforeEnd(false) | 118 , haveAddedContentsBeforeEnd(false) |
119 { | 119 { |
120 } | 120 } |
121 | 121 |
122 String WebPageSerializerImpl::preActionBeforeSerializeOpenTag( | 122 String WebPageSerializerImpl::preActionBeforeSerializeOpenTag( |
123 const Element* element, SerializeDomParam* param, bool* needSkip) | 123 const Element* element, SerializeDomParam* param, bool* needSkip) |
124 { | 124 { |
125 StringBuilder result; | 125 StringBuilder result; |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 | 512 |
513 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); | 513 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); |
514 } | 514 } |
515 | 515 |
516 ASSERT(m_dataBuffer.isEmpty()); | 516 ASSERT(m_dataBuffer.isEmpty()); |
517 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); | 517 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); |
518 return didSerialization; | 518 return didSerialization; |
519 } | 519 } |
520 | 520 |
521 } // namespace blink | 521 } // namespace blink |
OLD | NEW |