Web Inspector needs stylesheets with source ranges of rule bodies to implement CSS editing
Created attachment 57322 [details] [PATCH] Suggested solution
Created attachment 57458 [details] [PATCH] Altered patch as discussed offline with pfeldman Introduced explicit retrieval of rule ranges instead of adding them to the rules in the styleSheet.cssRules property
Comment on attachment 57458 [details] [PATCH] Altered patch as discussed offline with pfeldman WebCore/css/CSSParser.cpp:234 + void CSSParser::parseSheet(CSSStyleSheet* sheet, const String& string, HashMap<CSSStyleRule*, std::pair<unsigned, unsigned> >* ruleRangeMap) You might want to introduce a typedef for this. Something like StyleRulePositions.
Landed with the suggested typedef Committing to http://svn.webkit.org/repository/webkit/trunk ... M LayoutTests/ChangeLog A LayoutTests/inspector/styles-source-offsets-expected.txt A LayoutTests/inspector/styles-source-offsets.html M WebCore/ChangeLog M WebCore/css/CSSParser.cpp M WebCore/css/CSSParser.h M WebCore/inspector/InspectorBackend.cpp M WebCore/inspector/InspectorBackend.h M WebCore/inspector/InspectorBackend.idl M WebCore/inspector/InspectorCSSStore.cpp M WebCore/inspector/InspectorCSSStore.h M WebCore/inspector/InspectorDOMAgent.cpp M WebCore/inspector/InspectorDOMAgent.h M WebCore/inspector/InspectorFrontend.cpp M WebCore/inspector/InspectorFrontend.h M WebCore/inspector/front-end/DOMAgent.js Committed r60443