diff options
Diffstat (limited to 'WebCore/inspector/InspectorCSSAgent.cpp')
-rw-r--r-- | WebCore/inspector/InspectorCSSAgent.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/WebCore/inspector/InspectorCSSAgent.cpp b/WebCore/inspector/InspectorCSSAgent.cpp index fd1deb5..31d951a 100644 --- a/WebCore/inspector/InspectorCSSAgent.cpp +++ b/WebCore/inspector/InspectorCSSAgent.cpp @@ -285,14 +285,16 @@ void InspectorCSSAgent::getStyleSheetText2(const String& styleSheetId, String* u 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); } |