Another attempt to fix the Chromium build. (Missed one.)
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Sep 2011 23:30:53 +0000 (23:30 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Sep 2011 23:30:53 +0000 (23:30 +0000)
* src/WebPageSerializerImpl.cpp:
(WebKit::WebPageSerializerImpl::serialize):

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

Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/WebPageSerializerImpl.cpp

index 6c82390..b137a9a 100644 (file)
@@ -1,5 +1,12 @@
 2011-09-08  Adam Barth  <abarth@webkit.org>
 
+        Another attempt to fix the Chromium build.  (Missed one.)
+
+        * src/WebPageSerializerImpl.cpp:
+        (WebKit::WebPageSerializerImpl::serialize):
+
+2011-09-08  Adam Barth  <abarth@webkit.org>
+
         Attempt to fix Chromium build.  We can just grab the encoding from the document.
 
         * src/ContextMenuClientImpl.cpp:
index ee3e963..588c19e 100644 (file)
@@ -509,7 +509,7 @@ bool WebPageSerializerImpl::serialize()
 
         didSerialization = true;
 
-        String encoding = document->loader()->writer()->encoding();
+        String encoding = document->encoding();
         const TextEncoding& textEncoding = encoding.isEmpty() ? UTF8Encoding() : TextEncoding(encoding);
         String directoryName = url == mainURL ? m_localDirectoryName : "";