[Webkit-unassigned] [Bug 56912] Web Inspector: move node searching and node highlight related methods from InspectorAgent to DOMAgent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 23 05:43:04 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=56912


Yury Semikhatsky <yurys at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #86597|review?                     |review+
               Flag|                            |




--- Comment #5 from Yury Semikhatsky <yurys at chromium.org>  2011-03-23 05:43:03 PST ---
(From update of attachment 86597)
View in context: https://bugs.webkit.org/attachment.cgi?id=86597&action=review

> Source/WebCore/inspector/DOMNodeHighlighter.cpp:216
> +} // unnamed namespace

unnamed -> anonymous or just // namespace ?

> Source/WebCore/inspector/InspectorAgent.cpp:127
> +    m_instrumentingAgents->setInspectorAgent(this);

There should be symmetric call reseting InspectorAgent.

> Source/WebCore/inspector/InspectorDOMAgent.cpp:100
> +static const char searchingForNode[] = "searchingForNode";

Is it still in use?

> Source/WebCore/inspector/InspectorDOMAgent.cpp:917
> +bool InspectorDOMAgent::searchingForNodeInPage() const

No need to expose this through a public method, just use m_searchingForNode directly in this class.

> Source/WebCore/inspector/InspectorInstrumentation.cpp:161
> +    if (!inspectorAgent->enabled())

You wouldn't need this check if you used instrumentingAgents()->inspectorDOMAgent(), please fix.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list