Index: third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp |
diff --git a/third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp b/third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp |
index f7f309810c3aaf1a3ef65ae88402b444975e8ab3..c046b283ae945273e9759dae85407931362d3ebb 100644 |
--- a/third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp |
+++ b/third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp |
@@ -139,6 +139,8 @@ String DataObjectItem::getAsString() const |
// This is ugly but there's no real alternative. |
if (m_type == mimeTypeTextPlain) { |
data = Platform::current()->clipboard()->readPlainText(buffer); |
+ } else if (m_type == mimeTypeTextRTF) { |
+ data = Platform::current()->clipboard()->readRTF(buffer); |
} else if (m_type == mimeTypeTextHTML) { |
WebURL ignoredSourceURL; |
unsigned ignored; |