WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
55960
[GTK] [WebKit2] WebView::windowToScreen needs an implementation
https://bugs.webkit.org/show_bug.cgi?id=55960
Summary
[GTK] [WebKit2] WebView::windowToScreen needs an implementation
Martin Robinson
Reported
2011-03-08 12:28:39 PST
WebView::windowToScreen was added to PageClientImpl in
r80569
.
Attachments
Patch
(1.59 KB, patch)
2011-03-08 12:32 PST
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
Patch using duplicating calculating from WebKit1
(1.91 KB, patch)
2011-03-09 13:16 PST
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
Patch
(9.71 KB, patch)
2011-05-02 17:06 PDT
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2011-03-08 12:32:53 PST
Created
attachment 85080
[details]
Patch
Martin Robinson
Comment 2
2011-03-09 13:16:50 PST
Created
attachment 85222
[details]
Patch using duplicating calculating from WebKit1
Carlos Garcia Campos
Comment 3
2011-04-01 07:59:32 PDT
Comment on
attachment 85222
[details]
Patch using duplicating calculating from WebKit1 View in context:
https://bugs.webkit.org/attachment.cgi?id=85222&action=review
> Source/WebKit2/UIProcess/gtk/WebView.cpp:243 > + GtkWidget* toplevel = gtk_widget_get_toplevel(m_viewWidget); > + if (!toplevel || !gtk_widget_is_toplevel(toplevel) || !GTK_IS_WINDOW(toplevel)) > + return rect; > + > + int xInWindow, yInWindow; > + gtk_widget_translate_coordinates(m_viewWidget, toplevel, rect.x(), rect.y(), &xInWindow, &yInWindow); > + int windowOriginX, windowOriginY; > + gdk_window_get_origin(gtk_widget_get_window(toplevel), &windowOriginX, &windowOriginY); > + > + IntRect rectInScreenCoordinates(rect); > + rectInScreenCoordinates.move(windowOriginX + xInWindow, windowOriginY + yInWindow); > + return rectInScreenCoordinates;
hmm, isn't all this the same than simply calling gdk_window_get_origin(gtk_widget_get_window(m_viewWidget), &x, &y); ?
Martin Robinson
Comment 4
2011-04-04 15:07:27 PDT
(In reply to
comment #3
)
> hmm, isn't all this the same than simply calling gdk_window_get_origin(gtk_widget_get_window(m_viewWidget), &x, &y); ?
Carlos and I talked about this before and I explained how a more complex implementation is likely necessary because widgets can share GdkWindows.
Xan Lopez
Comment 5
2011-04-26 15:59:28 PDT
Comment on
attachment 85222
[details]
Patch using duplicating calculating from WebKit1 IIRC this is very similar to the code in WebKit1? Wasn't the plan to move it into WebCore somehow and share it? r- for now!
Martin Robinson
Comment 6
2011-05-02 17:06:07 PDT
Created
attachment 92009
[details]
Patch
Xan Lopez
Comment 7
2011-05-05 17:01:54 PDT
Comment on
attachment 92009
[details]
Patch Alright.
Martin Robinson
Comment 8
2011-05-06 16:29:54 PDT
Comment on
attachment 92009
[details]
Patch Clearing flags on attachment: 92009 Committed
r85987
: <
http://trac.webkit.org/changeset/85987
>
Martin Robinson
Comment 9
2011-05-06 16:29:57 PDT
All reviewed patches have been landed. Closing bug.
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