Title: [105201] trunk/Source/WebKit/mac
Revision
105201
Author
[email protected]
Date
2012-01-17 15:26:12 -0800 (Tue, 17 Jan 2012)

Log Message

REGRESSION (r101413): Correction panel overlaps misspelled text.
https://bugs.webkit.org/show_bug.cgi?id=74589
<rdar://problem/10585115>

When converting the rectangle from the root view, we need
to take into account the height of the rectangle.
        
Reviewed by Anders Carlsson.

* WebView/WebView.mm:
(-[WebView _convertRectFromRootView:]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (105200 => 105201)


--- trunk/Source/WebKit/mac/ChangeLog	2012-01-17 23:25:53 UTC (rev 105200)
+++ trunk/Source/WebKit/mac/ChangeLog	2012-01-17 23:26:12 UTC (rev 105201)
@@ -1,3 +1,17 @@
+2012-01-17  Enrica Casucci  <[email protected]>
+
+        REGRESSION (r101413): Correction panel overlaps misspelled text.
+        https://bugs.webkit.org/show_bug.cgi?id=74589
+        <rdar://problem/10585115>
+
+        When converting the rectangle from the root view, we need
+        to take into account the height of the rectangle.
+        
+        Reviewed by Anders Carlsson.
+
+        * WebView/WebView.mm:
+        (-[WebView _convertRectFromRootView:]):
+
 2012-01-16  Simon Fraser  <[email protected]>
 
         <rdar://problem/10703228> ASSERTION FAILED: Uncaught exception - Cannot lock focus on image <NSImage 0x1206572a0 Size={0, 0} Reps=( )>, because it is size zero loading techcrunch.com

Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (105200 => 105201)


--- trunk/Source/WebKit/mac/WebView/WebView.mm	2012-01-17 23:25:53 UTC (rev 105200)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm	2012-01-17 23:26:12 UTC (rev 105201)
@@ -6306,7 +6306,7 @@
 
 - (NSRect)_convertRectFromRootView:(NSRect)rect
 {
-    return NSMakeRect(rect.origin.x, [self bounds].size.height - rect.origin.y, rect.size.width, rect.size.height);
+    return NSMakeRect(rect.origin.x, [self bounds].size.height - rect.origin.y - rect.size.height, rect.size.width, rect.size.height);
 }
 
 @end
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to