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

Unified Diff: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/xml/parser/XMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
index e3b00106a3d438a2db2b99d2aabd0f71f1205bb7..06cb56cfd6266cf644fda7bf18a82606fd836697 100644
--- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -493,8 +493,9 @@ bool XMLDocumentParser::parseDocumentFragment(
// FIXME: We need to implement the HTML5 XML Fragment parsing algorithm:
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-xhtml-syntax.html#xml-fragment-parsing-algorithm
// For now we have a hack for script/style innerHTML support:
- if (contextElement && (contextElement->hasLocalName(scriptTag.localName()) ||
- contextElement->hasLocalName(styleTag.localName()))) {
+ if (contextElement &&
+ (contextElement->hasLocalName(scriptTag.localName()) ||
+ contextElement->hasLocalName(styleTag.localName()))) {
fragment->parserAppendChild(fragment->document().createTextNode(chunk));
return true;
}
@@ -548,8 +549,9 @@ static void switchEncoding(xmlParserCtxtPtr ctxt, bool is8Bit) {
const UChar BOM = 0xFEFF;
const unsigned char BOMHighByte =
*reinterpret_cast<const unsigned char*>(&BOM);
- xmlSwitchEncoding(ctxt, BOMHighByte == 0xFF ? XML_CHAR_ENCODING_UTF16LE
- : XML_CHAR_ENCODING_UTF16BE);
+ xmlSwitchEncoding(ctxt,
+ BOMHighByte == 0xFF ? XML_CHAR_ENCODING_UTF16LE
+ : XML_CHAR_ENCODING_UTF16BE);
}
static void parseChunk(xmlParserCtxtPtr ctxt, const String& chunk) {

Powered by Google App Engine
This is Rietveld 408576698