Web Inspector: [Styles] Unable to edit properties in broken stylesheets
https://bugs.webkit.org/show_bug.cgi?id=98246
Reviewed by Vsevolod Vlasov.
Source/WebCore:
Pop source data for invalid rules off the stack whenever we have consecutive CSSParser::markRuleHeaderStart() invocations.
Test: inspector/styles/parse-stylesheet-errors.html
* css/CSSParser.cpp:
(WebCore::CSSParser::popRuleData):
(WebCore::CSSParser::markRuleHeaderStart):
(WebCore::CSSParser::markRuleBodyStart):
* css/CSSParser.h:
(CSSParser):
LayoutTests:
A small refactoring to share the CSS style data dumping code among tests.
* http/tests/inspector/elements-test.js:
(initialize_ElementTest):
* inspector/styles/parse-stylesheet-errors-expected.txt: Added.
* inspector/styles/parse-stylesheet-errors.html: Added.
* inspector/styles/styles-new-API.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
8 files changed