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

Unified Diff: Source/core/xml/XMLErrors.cpp

Issue 54273007: Use more references in ContainerNode code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix crashes Created 7 years, 1 month 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
« Source/core/dom/Node.h ('K') | « Source/core/html/parser/HTMLConstructionSite.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLErrors.cpp
diff --git a/Source/core/xml/XMLErrors.cpp b/Source/core/xml/XMLErrors.cpp
index caad7f03667d2372f86cb476a6179f183872a84b..11936242c65d733b20361807b000aff1c0d9ba8f 100644
--- a/Source/core/xml/XMLErrors.cpp
+++ b/Source/core/xml/XMLErrors.cpp
@@ -151,7 +151,7 @@ void XMLErrors::insertErrorMessageBlock()
Node* firstChild = documentElement->firstChild();
if (firstChild)
- documentElement->parserInsertBefore(reportElement, documentElement->firstChild());
+ documentElement->parserInsertBefore(reportElement, *firstChild);
else
documentElement->parserAppendChild(reportElement);
« Source/core/dom/Node.h ('K') | « Source/core/html/parser/HTMLConstructionSite.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698