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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.h

Issue 2145353002: HTML parser: Add show/toString() debug helper methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 InRowMode, 107 InRowMode,
108 InCellMode, 108 InCellMode,
109 InSelectMode, 109 InSelectMode,
110 InSelectInTableMode, 110 InSelectInTableMode,
111 AfterBodyMode, 111 AfterBodyMode,
112 InFramesetMode, 112 InFramesetMode,
113 AfterFramesetMode, 113 AfterFramesetMode,
114 AfterAfterBodyMode, 114 AfterAfterBodyMode,
115 AfterAfterFramesetMode, 115 AfterAfterFramesetMode,
116 }; 116 };
117 #ifndef DEBUG
118 static const char* toString(InsertionMode);
119 #endif
117 120
118 HTMLTreeBuilder(HTMLDocumentParser*, Document&, ParserContentPolicy, const H TMLParserOptions&); 121 HTMLTreeBuilder(HTMLDocumentParser*, Document&, ParserContentPolicy, const H TMLParserOptions&);
119 HTMLTreeBuilder(HTMLDocumentParser*, DocumentFragment*, Element* contextElem ent, ParserContentPolicy, const HTMLParserOptions&); 122 HTMLTreeBuilder(HTMLDocumentParser*, DocumentFragment*, Element* contextElem ent, ParserContentPolicy, const HTMLParserOptions&);
120 123
121 void processToken(AtomicHTMLToken*); 124 void processToken(AtomicHTMLToken*);
122 125
123 void processDoctypeToken(AtomicHTMLToken*); 126 void processDoctypeToken(AtomicHTMLToken*);
124 void processStartTag(AtomicHTMLToken*); 127 void processStartTag(AtomicHTMLToken*);
125 void processEndTag(AtomicHTMLToken*); 128 void processEndTag(AtomicHTMLToken*);
126 void processComment(AtomicHTMLToken*); 129 void processComment(AtomicHTMLToken*);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 237
235 Member<Element> m_scriptToProcess; // <script> tag which needs processing be fore resuming the parser. 238 Member<Element> m_scriptToProcess; // <script> tag which needs processing be fore resuming the parser.
236 TextPosition m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing. 239 TextPosition m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing.
237 240
238 HTMLParserOptions m_options; 241 HTMLParserOptions m_options;
239 }; 242 };
240 243
241 } // namespace blink 244 } // namespace blink
242 245
243 #endif 246 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/HTMLToken.h ('k') | third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698