Index: WebCore/inspector/InspectorCSSAgent.cpp |
=================================================================== |
--- WebCore/inspector/InspectorCSSAgent.cpp (revision 73033) |
+++ WebCore/inspector/InspectorCSSAgent.cpp (working copy) |
@@ -285,14 +285,16 @@ |
inspectorStyleSheet->text(result); |
} |
-void InspectorCSSAgent::setStyleSheetText2(const String& styleSheetId, const String& text) |
+void InspectorCSSAgent::setStyleSheetText2(const String& styleSheetId, const String& text, bool* success) |
{ |
InspectorStyleSheet* inspectorStyleSheet = styleSheetForId(styleSheetId); |
- if (!inspectorStyleSheet) |
+ if (!inspectorStyleSheet) { |
+ *success = false; |
return; |
+ } |
- bool success = inspectorStyleSheet->setText(text); |
- if (success) |
+ *success = inspectorStyleSheet->setText(text); |
+ if (*success) |
inspectorStyleSheet->reparseStyleSheet(text); |
} |