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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp

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/HTMLTreeBuilderSimulator.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp b/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp
index b650e41f9b98f51e4185b2d8495af71cbe22a9cd..60ba812788c4f91251811c2953383fd417c65910 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp
@@ -37,7 +37,8 @@ namespace blink {
using namespace HTMLNames;
static bool tokenExitsForeignContent(const CompactHTMLToken& token) {
- // FIXME: This is copied from HTMLTreeBuilder::processTokenInForeignContent and changed to use threadSafeHTMLNamesMatch.
+ // FIXME: This is copied from HTMLTreeBuilder::processTokenInForeignContent
+ // and changed to use threadSafeHTMLNamesMatch.
const String& tagName = token.data();
return threadSafeMatch(tagName, bTag) || threadSafeMatch(tagName, bigTag) ||
threadSafeMatch(tagName, blockquoteTag) ||
@@ -74,13 +75,15 @@ static bool tokenExitsForeignContent(const CompactHTMLToken& token) {
}
static bool tokenExitsSVG(const CompactHTMLToken& token) {
- // FIXME: It's very fragile that we special case foreignObject here to be case-insensitive.
+ // FIXME: It's very fragile that we special case foreignObject here to be
+ // case-insensitive.
return equalIgnoringCase(token.data(),
SVGNames::foreignObjectTag.localName());
}
static bool tokenExitsMath(const CompactHTMLToken& token) {
- // FIXME: This is copied from HTMLElementStack::isMathMLTextIntegrationPoint and changed to use threadSafeMatch.
+ // FIXME: This is copied from HTMLElementStack::isMathMLTextIntegrationPoint
+ // and changed to use threadSafeMatch.
const String& tagName = token.data();
return threadSafeMatch(tagName, MathMLNames::miTag) ||
threadSafeMatch(tagName, MathMLNames::moTag) ||
@@ -132,7 +135,8 @@ HTMLTreeBuilderSimulator::SimulatedToken HTMLTreeBuilderSimulator::simulate(
(m_namespaceStack.last() == MathML && tokenExitsMath(token)))
m_namespaceStack.append(HTML);
if (!inForeignContent()) {
- // FIXME: This is just a copy of Tokenizer::updateStateFor which uses threadSafeMatches.
+ // FIXME: This is just a copy of Tokenizer::updateStateFor which uses
+ // threadSafeMatches.
if (threadSafeMatch(tagName, textareaTag) ||
threadSafeMatch(tagName, titleTag)) {
tokenizer->setState(HTMLTokenizer::RCDATAState);

Powered by Google App Engine
This is Rietveld 408576698