2009-02-07 Holger Hans Peter Freyther <zecke@selfish.org>
authorzecke@webkit.org <zecke@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 Feb 2009 17:53:12 +0000 (17:53 +0000)
committerzecke@webkit.org <zecke@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 Feb 2009 17:53:12 +0000 (17:53 +0000)
        Unreviewed build fix Use toNormalizedRange().

        * WebCoreSupport/EditorClientGtk.cpp:
        (WebKit::clipboard_get_contents_cb):

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

WebKit/gtk/ChangeLog
WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp

index 9779fc9..896f85a 100644 (file)
@@ -1,3 +1,10 @@
+2009-02-07  Holger Hans Peter Freyther  <zecke@selfish.org>
+
+        Unreviewed build fix Use toNormalizedRange().
+
+        * WebCoreSupport/EditorClientGtk.cpp:
+        (WebKit::clipboard_get_contents_cb):
+
 2009-02-06  Geoffrey Garen  <ggaren@apple.com>
 
         Build fix.
index e09178e..860fcbc 100644 (file)
@@ -169,7 +169,7 @@ static void clipboard_get_contents_cb(GtkClipboard* clipboard, GtkSelectionData*
 {
     WebKitWebView* webView = reinterpret_cast<WebKitWebView*>(data);
     Frame* frame = core(webView)->focusController()->focusedOrMainFrame();
-    PassRefPtr<Range> selectedRange = frame->selection()->toRange();
+    PassRefPtr<Range> selectedRange = frame->selection()->toNormalizedRange();
 
     if (static_cast<gint>(info) == WEBKIT_WEB_VIEW_TARGET_INFO_HTML) {
         String markup = createMarkup(selectedRange.get(), 0, AnnotateForInterchange);