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

Side by Side Diff: Source/web/WebPageSerializerImpl.cpp

Issue 831263008: Oilpan: mark WebPageSerializerImpl as stack allocated. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/WebPageSerializerImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/WebPageSerializerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698