| Index: Source/WebCore/inspector/InspectorStyleSheet.cpp
|
| ===================================================================
|
| --- Source/WebCore/inspector/InspectorStyleSheet.cpp (revision 132834)
|
| +++ Source/WebCore/inspector/InspectorStyleSheet.cpp (working copy)
|
| @@ -844,16 +844,18 @@
|
| return false;
|
| }
|
|
|
| - styleSheet->deleteRule(id.ordinal(), ec);
|
| - if (ec)
|
| - return false;
|
| -
|
| RefPtr<CSSRuleSourceData> sourceData = ruleSourceDataFor(rule->style());
|
| if (!sourceData) {
|
| ec = NOT_FOUND_ERR;
|
| return false;
|
| }
|
|
|
| + styleSheet->deleteRule(id.ordinal(), ec);
|
| + // |rule| MAY NOT be addressed after this line!
|
| +
|
| + if (ec)
|
| + return false;
|
| +
|
| String sheetText = m_parsedStyleSheet->text();
|
| sheetText.remove(sourceData->ruleHeaderRange.start, sourceData->ruleBodyRange.end - sourceData->ruleHeaderRange.start + 1);
|
| m_parsedStyleSheet->setText(sheetText);
|
|
|