WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 89356
[Gtk] Implement dumpFrameScrollPosition in DumpRenderTree
https://bugs.webkit.org/show_bug.cgi?id=89356
Summary
[Gtk] Implement dumpFrameScrollPosition in DumpRenderTree
Zan Dobersek
Reported
2012-06-18 09:56:45 PDT
[Gtk] Implement dumpFrameScrollPosition in DumpRenderTree
Attachments
Patch
(63.18 KB, patch)
2012-06-18 10:02 PDT
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Patch
(65.27 KB, patch)
2012-06-19 00:26 PDT
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Patch
(65.34 KB, patch)
2012-06-19 02:25 PDT
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Patch
(65.97 KB, patch)
2012-07-09 12:03 PDT
,
Zan Dobersek
mrobinson
: review+
mrobinson
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Zan Dobersek
Comment 1
2012-06-18 10:02:14 PDT
Created
attachment 148115
[details]
Patch
Martin Robinson
Comment 2
2012-06-18 10:08:46 PDT
Comment on
attachment 148115
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=148115&action=review
> Tools/DumpRenderTree/gtk/DumpRenderTree.cpp:140 > + if (abs(x) > 0 || abs(y) > 0) { > + if (webkit_web_frame_get_parent(frame)) > + printf("frame '%s' ", webkit_web_frame_get_name(frame)); > + printf("scrolled to %d,%d\n", x, y); > + } > + > + if (gLayoutTestController->dumpChildFrameScrollPositions()) { > + GSList* children = DumpRenderTreeSupportGtk::getFrameChildren(frame); > + for (GSList* child = children; child; child = g_slist_next(child)) > + dumpFrameScrollPosition(static_cast<WebKitWebFrame*>(child->data)); > + g_slist_free(children); > + }
Hrm. Isn't it possible to get this with the DOM bindings instead of using DumpRenderTreeSupport?
Zan Dobersek
Comment 3
2012-06-19 00:26:11 PDT
Created
attachment 148273
[details]
Patch Sorry for the new API! :>
Martin Robinson
Comment 4
2012-06-19 00:31:44 PDT
Comment on
attachment 148273
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=148273&action=review
Looks good to me! We just need another GTK+ reviewer to approve the API.
> Source/WebKit/gtk/webkit/webkitwebframe.cpp:1188 > + * Returns: (transfer none): the #WebKitDOMDocument currently loaded in the @frame
Should say "or %NULL if no document is loaded."
> Tools/DumpRenderTree/gtk/DumpRenderTree.cpp:136 > + glong x, y; > + x = webkit_dom_dom_window_get_page_x_offset(domWindow); > + y = webkit_dom_dom_window_get_page_y_offset(domWindow);
Just collapse these into glong x = webkit_dom_dom_window_get_page_x_offset(domWindow); glong y = webkit_dom_dom_window_get_page_y_offset(domWindow);
Zan Dobersek
Comment 5
2012-06-19 02:25:11 PDT
Created
attachment 148294
[details]
Patch
Carlos Garcia Campos
Comment 6
2012-07-09 11:09:07 PDT
Comment on
attachment 148294
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=148294&action=review
> Source/WebKit/gtk/webkit/webkitwebframe.cpp:1191 > + * Since: 2.0
We are not sure yet, whether we will release 2.0 or 1.10, so I'd use 1.10 for now just in case.
> Source/WebKit/gtk/webkit/webkitwebframe.cpp:1194 > +webkit_web_frame_get_dom_document(WebKitWebFrame* frame)
Maybe we could also update webkit_web_view_get_dom_document) to use this method now with priv->mainFrame.
Gustavo Noronha (kov)
Comment 7
2012-07-09 11:21:13 PDT
Comment on
attachment 148294
[details]
Patch New API LGTM for the record
Zan Dobersek
Comment 8
2012-07-09 12:03:33 PDT
Created
attachment 151292
[details]
Patch
Martin Robinson
Comment 9
2012-07-09 12:26:39 PDT
Comment on
attachment 151292
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151292&action=review
> Source/WebKit/gtk/webkit/webkitwebframe.cpp:1194 > +WebKitDOMDocument* > +webkit_web_frame_get_dom_document(WebKitWebFrame* frame)
One nit here is that breaking this line doesn't follow WebKit style.
Zan Dobersek
Comment 10
2012-07-09 12:54:48 PDT
(In reply to
comment #9
)
> (From update of
attachment 151292
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=151292&action=review
> > > Source/WebKit/gtk/webkit/webkitwebframe.cpp:1194 > > +WebKitDOMDocument* > > +webkit_web_frame_get_dom_document(WebKitWebFrame* frame) > > One nit here is that breaking this line doesn't follow WebKit style.
Fixed and committed in
r122147
http://trac.webkit.org/changeset/122147
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