DocType strings should be 8 bit wide
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jun 2013 05:37:51 +0000 (05:37 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jun 2013 05:37:51 +0000 (05:37 +0000)
https://bugs.webkit.org/show_bug.cgi?id=117487

Reviewed by Michael Saboff.

Merge https://chromium.googlesource.com/chromium/blink/+/8da02d0ce3965c4e6bf227db856bce930393429a.

* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::insertDoctype):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151421 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/parser/HTMLConstructionSite.cpp

index 2202ad50e45ee5ba314bc5607016cf292cee1e20..6fa2f1a831b7e322e2160ca16c57e13998215961 100644 (file)
@@ -1,3 +1,15 @@
+2013-06-10  Ryosuke Niwa  <rniwa@webkit.org>
+
+        DocType strings should be 8 bit wide
+        https://bugs.webkit.org/show_bug.cgi?id=117487
+
+        Reviewed by Michael Saboff.
+
+        Merge https://chromium.googlesource.com/chromium/blink/+/8da02d0ce3965c4e6bf227db856bce930393429a.
+
+        * html/parser/HTMLConstructionSite.cpp:
+        (WebCore::HTMLConstructionSite::insertDoctype):
+
 2013-06-10  Ryosuke Niwa  <rniwa@webkit.org>
 
         Make more functions const
index 4f3a774a7d080a61c7b29810189171952ebe6128..a8c32ec9aba4b2a512985b9af255e8906d03df86 100644 (file)
@@ -355,8 +355,8 @@ void HTMLConstructionSite::insertDoctype(AtomicHTMLToken* token)
 {
     ASSERT(token->type() == HTMLToken::DOCTYPE);
 
-    const String& publicId = String::adopt(token->publicIdentifier());
-    const String& systemId = String::adopt(token->systemIdentifier());
+    const String& publicId = StringImpl::create8BitIfPossible(token->publicIdentifier());
+    const String& systemId = StringImpl::create8BitIfPossible(token->systemIdentifier());
     RefPtr<DocumentType> doctype = DocumentType::create(m_document, token->name(), publicId, systemId);
     attachLater(m_attachmentRoot, doctype.release());