Bug 62982 - Web Inspector: It would be useful to be able to pause on element's style change.
Summary: Web Inspector: It would be useful to be able to pause on element's style change.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Ilya Tikhonovsky
URL:
Keywords:
Depends on: 64033
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-20 06:23 PDT by Ilya Tikhonovsky
Modified: 2011-07-06 14:55 PDT (History)
10 users (show)

See Also:


Attachments
[patch] initial version (8.03 KB, patch)
2011-06-20 06:25 PDT, Ilya Tikhonovsky
yurys: review+
loislo: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Tikhonovsky 2011-06-20 06:23:11 PDT
Current workaround is to use mutation events but it's awkward and doesn't compare — usability-wise — to what could be implemented as native support in web inspector.
In complex applications, being able to see which code causes element to change its style is indispensable.

Note that Firebug supposedly has experimental support for this — http://getfirebug.com/doc/breakpoints/demo.html#css
Comment 1 Ilya Tikhonovsky 2011-06-20 06:25:58 PDT
Created attachment 97792 [details]
[patch] initial version
Comment 2 Yury Semikhatsky 2011-06-20 06:56:46 PDT
Comment on attachment 97792 [details]
[patch] initial version

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

> Source/WebCore/inspector/InspectorDOMDebuggerAgent.cpp:146
> +    InspectorDebuggerAgent* debuggerAgent = m_debuggerAgent;

It seems that m_debuggerAgent is never 0. If so please remove this check here and in other places in this file.
Comment 3 Ilya Tikhonovsky 2011-06-20 07:11:00 PDT
Committed r89245: <http://trac.webkit.org/changeset/89245>