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) { |