WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
62626
[GTK] Rename convertWidgetRectToScreenRect() to convertWidgetPointToScreenPoint()
https://bugs.webkit.org/show_bug.cgi?id=62626
Summary
[GTK] Rename convertWidgetRectToScreenRect() to convertWidgetPointToScreenPoi...
Carlos Garcia Campos
Reported
2011-06-14 02:13:57 PDT
This method actually translates coordinates, the rect size is never modified, so it should be renamed to convertWidgetPointToScreenPoint() and modified to return a point instead of a rectangle. I've also noticed that this functionality is duplicated in several places, so this method should be used instead. There's also a bug in the implementation, it translates the rectangle coordinates with gtk_widget_translate_coordinates(), and it moves the original rectangle using the translated coordinates as an offset instead of as final location, so the method is returning the wrong coordinates when the given rectangle is not at 0,0 (in ChromeClient::screenToWindow() the rect is always at 0,0 so I guess that's why we haven't noticed the bug before)
Attachments
Patch
(14.41 KB, patch)
2011-06-14 02:24 PDT
,
Carlos Garcia Campos
mrobinson
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2011-06-14 02:24:15 PDT
Created
attachment 97089
[details]
Patch
Martin Robinson
Comment 2
2011-06-14 07:53:34 PDT
Comment on
attachment 97089
[details]
Patch Nice!
Carlos Garcia Campos
Comment 3
2011-06-14 07:58:47 PDT
Committed
r88802
: <
http://trac.webkit.org/changeset/88802
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug