Bug 49903 - [GTK] Inspector: add a way to inspect a WebKitDOMNode
Summary: [GTK] Inspector: add a way to inspect a WebKitDOMNode
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-22 04:26 PST by Carlos Garcia Campos
Modified: 2010-11-26 09:43 PST (History)
2 users (show)

See Also:


Attachments
Add webkit_web_inspector_inspect() (2.43 KB, patch)
2010-11-22 04:30 PST, Carlos Garcia Campos
xan.lopez: review-
Details | Formatted Diff | Diff
Updated patch using inspect_node() and fixing includes (2.46 KB, patch)
2010-11-25 00:58 PST, Carlos Garcia Campos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2010-11-22 04:26:41 PST
Add API to WebKitWebInspector to inspect a node.
Comment 1 Carlos Garcia Campos 2010-11-22 04:30:29 PST
Created attachment 74539 [details]
Add webkit_web_inspector_inspect()
Comment 2 Martin Robinson 2010-11-23 22:25:19 PST
Seems reasonable to me. Maybe webkit_web_inspector_inspect_node? We'll need one or two more GTK+ reviewers to approve the API change.
Comment 3 Xan Lopez 2010-11-24 03:52:19 PST
Comment on attachment 74539 [details]
Add webkit_web_inspector_inspect()

View in context: https://bugs.webkit.org/attachment.cgi?id=74539&action=review

> WebKit/gtk/webkit/webkitwebinspector.cpp:504
> + * @web_inspector: the #WebKitWebInspector that will do the inspection

inspect_node would be better, I agree with Martin.

> WebKit/gtk/webkit/webkitwebinspector.h:26
>  #include <webkit/webkitdefines.h>

You shouldn't include the whole dom header just to use WebKitDOMNode*. Including webkitdomdefines.h should be enough, I think.
Comment 4 Carlos Garcia Campos 2010-11-25 00:58:32 PST
Created attachment 74838 [details]
Updated patch using inspect_node() and fixing includes
Comment 5 WebKit Commit Bot 2010-11-26 09:43:16 PST
Comment on attachment 74838 [details]
Updated patch using inspect_node() and fixing includes

Clearing flags on attachment: 74838

Committed r72772: <http://trac.webkit.org/changeset/72772>
Comment 6 WebKit Commit Bot 2010-11-26 09:43:21 PST
All reviewed patches have been landed.  Closing bug.