There is no need to re-parse CSS and get rule offsets unless we start editing. Also: when getting the offsets, create dummy stylesheet with proper owner node - otherwise urls are not resolved and parsing crashes.
Created attachment 57230 [details] [PATCH] Proposed fix.
Comment on attachment 57230 [details] [PATCH] Proposed fix. WebCore/inspector/InspectorCSSStore.cpp:@ + SourceRange InspectorCSSStore::getStartEndOffsets(CSSStyleRule* rule) Consider removing unused method.
Committing to http://svn.webkit.org/repository/webkit/trunk ... D LayoutTests/inspector/styles-source-offsets-expected.txt D LayoutTests/inspector/styles-source-offsets.html M WebCore/ChangeLog M WebCore/inspector/InspectorCSSStore.cpp M WebCore/inspector/InspectorDOMAgent.cpp Committed r60297
*** Bug 39870 has been marked as a duplicate of this bug. ***