[webkit-reviews] review denied: [Bug 92739] Web Inspector: Protocol: Add "namedFlowCreated" and "namedFlowRemoved" events : [Attachment 155521] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 12:00:31 PDT 2012


Pavel Feldman <pfeldman at chromium.org> has denied Andrei Poenaru
<poenaru at adobe.com>'s request for review:
Bug 92739: Web Inspector: Protocol: Add "namedFlowCreated" and
"namedFlowRemoved" events
https://bugs.webkit.org/show_bug.cgi?id=92739

Attachment 155521: Patch
https://bugs.webkit.org/attachment.cgi?id=155521&action=review

------- Additional Comments from Pavel Feldman <pfeldman at chromium.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=155521&action=review


> Source/WebCore/inspector/InspectorCSSAgent.cpp:540
> +    int nodeId = m_domAgent->boundNodeId(static_cast<Node*>(document));

There is no need to cast document to Node, Document is a Node.

> Source/WebCore/inspector/InspectorCSSAgent.cpp:541
> +    if (!nodeId)

I am not sure this is what you want. You only report creation / destruction of
the flows when document node on the front-end is visible. So every time
document node is received on the front-end (user expanded an <iframe> tag), you
want to query for document's existing named flows and dispatch corresponding
events.

> Source/WebCore/inspector/InspectorCSSAgent.cpp:550
> +    int nodeId = m_domAgent->boundNodeId(static_cast<Node*>(document));

ditto


More information about the webkit-reviews mailing list