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

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

Issue 2386893002: Reformat comments in core/html/parser (Closed)
Patch Set: self review Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.h b/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.h
index ed430f35ec2a034d12ab14f2d97acc55c941102c..216416fa14df10a4940361d46e7471695afd66cc 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.h
@@ -51,8 +51,10 @@ class HTMLTreeBuilder final
WTF_MAKE_NONCOPYABLE(HTMLTreeBuilder);
public:
- // HTMLTreeBuilder can be created for non-HTMLDocument (XHTMLDocument) from editing code.
- // TODO(kouhei): Fix editing code to always invoke HTML parser on HTMLDocument.
+ // HTMLTreeBuilder can be created for non-HTMLDocument (XHTMLDocument) from
+ // editing code.
+ // TODO(kouhei): Fix editing code to always invoke HTML parser on
+ // HTMLDocument.
static HTMLTreeBuilder* create(HTMLDocumentParser* parser,
Document& document,
ParserContentPolicy parserContentPolicy,
@@ -85,14 +87,15 @@ class HTMLTreeBuilder final
void constructTree(AtomicHTMLToken*);
bool hasParserBlockingScript() const { return !!m_scriptToProcess; }
- // Must be called to take the parser-blocking script before calling the parser again.
+ // Must be called to take the parser-blocking script before calling the parser
+ // again.
Element* takeScriptToProcess(TextPosition& scriptStartPosition);
// Done, close any open tags, etc.
void finished();
- // Synchronously flush pending text and queued tasks, possibly creating more DOM nodes.
- // Flushing pending text depends on |mode|.
+ // Synchronously flush pending text and queued tasks, possibly creating more
+ // DOM nodes. Flushing pending text depends on |mode|.
void flush(FlushMode mode) { m_tree.flush(mode); }
void setShouldSkipLeadingNewline(bool shouldSkip) {
@@ -261,14 +264,16 @@ class HTMLTreeBuilder final
bool m_shouldSkipLeadingNewline;
- // We access parser because HTML5 spec requires that we be able to change the state of the tokenizer
- // from within parser actions. We also need it to track the current position.
+ // We access parser because HTML5 spec requires that we be able to change the
+ // state of the tokenizer from within parser actions. We also need it to track
+ // the current position.
Member<HTMLDocumentParser> m_parser;
- Member<Element>
- m_scriptToProcess; // <script> tag which needs processing before resuming the parser.
- TextPosition
- m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing.
+ // <script> tag which needs processing before resuming the parser.
+ Member<Element> m_scriptToProcess;
+
+ // Starting line number of the script tag needing processing.
+ TextPosition m_scriptToProcessStartPosition;
HTMLParserOptions m_options;
};
« 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