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

Side by Side Diff: Source/core/html/parser/HTMLTokenizer.h

Issue 1309673006: Remove unused methods in HTMLTokenizer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | « no previous file | Source/core/html/parser/HTMLTokenizer.cpp » ('j') | 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 3 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 Checkpoint() 132 Checkpoint()
133 : options(0) 133 : options(0)
134 , state() 134 , state()
135 , additionalAllowedCharacter('\0') 135 , additionalAllowedCharacter('\0')
136 , skipNextNewLine(false) 136 , skipNextNewLine(false)
137 , shouldAllowCDATA(false) 137 , shouldAllowCDATA(false)
138 { 138 {
139 } 139 }
140 }; 140 };
141 141
142 bool canCreateCheckpoint() const;
143 void createCheckpoint(Checkpoint&) const;
144 void restoreFromCheckpoint(const Checkpoint&);
145
146 // This function returns true if it emits a token. Otherwise, callers 142 // This function returns true if it emits a token. Otherwise, callers
147 // must provide the same (in progress) token on the next call (unless 143 // must provide the same (in progress) token on the next call (unless
148 // they call reset() first). 144 // they call reset() first).
149 bool nextToken(SegmentedString&, HTMLToken&); 145 bool nextToken(SegmentedString&, HTMLToken&);
150 146
151 // Returns a copy of any characters buffered internally by the tokenizer. 147 // Returns a copy of any characters buffered internally by the tokenizer.
152 // The tokenizer buffers characters when searching for the </script> token 148 // The tokenizer buffers characters when searching for the </script> token
153 // that terminates a script element. 149 // that terminates a script element.
154 String bufferedCharacters() const; 150 String bufferedCharacters() const;
155 151
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // token (e.g., when lexing script). We buffer the name of the end tag 279 // token (e.g., when lexing script). We buffer the name of the end tag
284 // token here so we remember it next time we re-enter the tokenizer. 280 // token here so we remember it next time we re-enter the tokenizer.
285 Vector<LChar, 32> m_bufferedEndTagName; 281 Vector<LChar, 32> m_bufferedEndTagName;
286 282
287 HTMLParserOptions m_options; 283 HTMLParserOptions m_options;
288 }; 284 };
289 285
290 } 286 }
291 287
292 #endif 288 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/parser/HTMLTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698