Add -[DOMNode inspect] as a way to open a particular node in the inspector.
Created attachment 134111 [details] [PATCH] Proposed Patch
Comment on attachment 134111 [details] [PATCH] Proposed Patch View in context: https://bugs.webkit.org/attachment.cgi?id=134111&action=review > Source/WebCore/bindings/objc/DOM.mm:49 > +#import "Page.h" > +#import "InspectorController.h" Oops, ordering.
Created attachment 134112 [details] [PATCH] Proposed Patch
Comment on attachment 134112 [details] [PATCH] Proposed Patch Clearing flags on attachment: 134112 Committed r112305: <http://trac.webkit.org/changeset/112305>
All reviewed patches have been landed. Closing bug.
Can this be done using IDL?
(In reply to comment #6) > Can this be done using IDL? Probably. Is there a way to specify that this IDL is for ObjC only, and not meant to actually add something to the JS* interfaces? I did a brief search through IDL and didn't find a keyword for this, but I'm pretty new to IDL. If so, this could be added to Node.idl and we could implement Node::inspect.
You can use #ifdefs to make it ObjC only.
Ahh, I think I found it. There is a bunch of this in other IDL files: #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C ... #endif
(In reply to comment #9) > Ahh, I think I found it. There is a bunch of this in other IDL files: Moving this to a new bug: <http://webkit.org/b/82419> Web Inspector: Create -[DOMNode inspect] from IDL