Title: [145542] trunk/Source/WebCore
Revision
145542
Author
[email protected]
Date
2013-03-12 07:51:19 -0700 (Tue, 12 Mar 2013)

Log Message

[Gtk] NBSP are not replaced when using X clipboard
https://bugs.webkit.org/show_bug.cgi?id=112118

Patch by Tomas Popela <[email protected]> on 2013-03-12
Reviewed by Martin Robinson.

We're not replacing nbsp with spaces when using X clipboard
(Shift+Insert or middle mouse button).

* platform/gtk/DataObjectGtk.cpp:
(WebCore::DataObjectGtk::text):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (145541 => 145542)


--- trunk/Source/WebCore/ChangeLog	2013-03-12 14:38:48 UTC (rev 145541)
+++ trunk/Source/WebCore/ChangeLog	2013-03-12 14:51:19 UTC (rev 145542)
@@ -1,3 +1,16 @@
+2013-03-12  Tomas Popela  <[email protected]>
+
+        [Gtk] NBSP are not replaced when using X clipboard
+        https://bugs.webkit.org/show_bug.cgi?id=112118
+
+        Reviewed by Martin Robinson.
+
+        We're not replacing nbsp with spaces when using X clipboard
+        (Shift+Insert or middle mouse button).
+
+        * platform/gtk/DataObjectGtk.cpp:
+        (WebCore::DataObjectGtk::text):
+
 2013-03-12  Florin Malita  <[email protected]>
 
         SVG Pattern pixelated on inline SVG with CSS transforms

Modified: trunk/Source/WebCore/platform/gtk/DataObjectGtk.cpp (145541 => 145542)


--- trunk/Source/WebCore/platform/gtk/DataObjectGtk.cpp	2013-03-12 14:38:48 UTC (rev 145541)
+++ trunk/Source/WebCore/platform/gtk/DataObjectGtk.cpp	2013-03-12 14:51:19 UTC (rev 145542)
@@ -35,8 +35,11 @@
 
 String DataObjectGtk::text() const
 {
-    if (m_range)
-        return m_range->text();
+    if (m_range) {
+        String text = m_range->text();
+        replaceNonBreakingSpaceWithSpace(text);
+        return text;
+    }
     return m_text;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to