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

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

Issue 1306413003: Make classes and structures in core/html fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/core/html/parser/HTMLToken.h ('k') | Source/core/html/parser/InputStreamPreprocessor.h » ('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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 DOCTYPESystemIdentifierSingleQuotedState, 115 DOCTYPESystemIdentifierSingleQuotedState,
116 AfterDOCTYPESystemIdentifierState, 116 AfterDOCTYPESystemIdentifierState,
117 BogusDOCTYPEState, 117 BogusDOCTYPEState,
118 CDATASectionState, 118 CDATASectionState,
119 // These CDATA states are not in the HTML5 spec, but we use them interna lly. 119 // These CDATA states are not in the HTML5 spec, but we use them interna lly.
120 CDATASectionRightSquareBracketState, 120 CDATASectionRightSquareBracketState,
121 CDATASectionDoubleRightSquareBracketState, 121 CDATASectionDoubleRightSquareBracketState,
122 }; 122 };
123 123
124 struct Checkpoint { 124 struct Checkpoint {
125 STACK_ALLOCATED();
125 HTMLParserOptions options; 126 HTMLParserOptions options;
126 State state; 127 State state;
127 UChar additionalAllowedCharacter; 128 UChar additionalAllowedCharacter;
128 bool skipNextNewLine; 129 bool skipNextNewLine;
129 bool shouldAllowCDATA; 130 bool shouldAllowCDATA;
130 131
131 Checkpoint() 132 Checkpoint()
132 : options(0) 133 : options(0)
133 , state() 134 , state()
134 , additionalAllowedCharacter('\0') 135 , additionalAllowedCharacter('\0')
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // token (e.g., when lexing script). We buffer the name of the end tag 283 // token (e.g., when lexing script). We buffer the name of the end tag
283 // token here so we remember it next time we re-enter the tokenizer. 284 // token here so we remember it next time we re-enter the tokenizer.
284 Vector<LChar, 32> m_bufferedEndTagName; 285 Vector<LChar, 32> m_bufferedEndTagName;
285 286
286 HTMLParserOptions m_options; 287 HTMLParserOptions m_options;
287 }; 288 };
288 289
289 } 290 }
290 291
291 #endif 292 #endif
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLToken.h ('k') | Source/core/html/parser/InputStreamPreprocessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698