summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/chromium/ChromiumDataObject.cpp
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2009-08-11 17:01:47 +0100
committerBen Murdoch <benm@google.com>2009-08-11 18:21:02 +0100
commit0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch)
tree2943df35f62d885c89d01063cc528dd73b480fea /WebCore/platform/chromium/ChromiumDataObject.cpp
parent7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff)
downloadexternal_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip
external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz
external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2
Merge in WebKit r47029.
Diffstat (limited to 'WebCore/platform/chromium/ChromiumDataObject.cpp')
-rw-r--r--WebCore/platform/chromium/ChromiumDataObject.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/WebCore/platform/chromium/ChromiumDataObject.cpp b/WebCore/platform/chromium/ChromiumDataObject.cpp
index dee4568..683c2e6 100644
--- a/WebCore/platform/chromium/ChromiumDataObject.cpp
+++ b/WebCore/platform/chromium/ChromiumDataObject.cpp
@@ -47,7 +47,7 @@ void ChromiumDataObject::clear()
fileContent->clear();
}
-bool ChromiumDataObject::hasData()
+bool ChromiumDataObject::hasData() const
{
return !url.isEmpty()
|| !fileExtension.isEmpty()
@@ -57,4 +57,18 @@ bool ChromiumDataObject::hasData()
|| fileContent;
}
+ChromiumDataObject::ChromiumDataObject(const ChromiumDataObject& other)
+ : url(other.url)
+ , urlTitle(other.urlTitle)
+ , fileExtension(other.fileExtension)
+ , filenames(other.filenames)
+ , plainText(other.plainText)
+ , textHtml(other.textHtml)
+ , htmlBaseUrl(other.htmlBaseUrl)
+ , fileContentFilename(other.fileContentFilename)
+{
+ if (other.fileContent.get())
+ fileContent = other.fileContent->copy();
+}
+
} // namespace WebCore