summaryrefslogtreecommitdiffstats
path: root/WebCore/inspector/InspectorCSSAgent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/inspector/InspectorCSSAgent.cpp')
-rw-r--r--WebCore/inspector/InspectorCSSAgent.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/WebCore/inspector/InspectorCSSAgent.cpp b/WebCore/inspector/InspectorCSSAgent.cpp
index 31d951a..fd1deb5 100644
--- a/WebCore/inspector/InspectorCSSAgent.cpp
+++ b/WebCore/inspector/InspectorCSSAgent.cpp
@@ -285,16 +285,14 @@ void InspectorCSSAgent::getStyleSheetText2(const String& styleSheetId, String* u
inspectorStyleSheet->text(result);
}
-void InspectorCSSAgent::setStyleSheetText2(const String& styleSheetId, const String& text, bool* success)
+void InspectorCSSAgent::setStyleSheetText2(const String& styleSheetId, const String& text)
{
InspectorStyleSheet* inspectorStyleSheet = styleSheetForId(styleSheetId);
- if (!inspectorStyleSheet) {
- *success = false;
+ if (!inspectorStyleSheet)
return;
- }
- *success = inspectorStyleSheet->setText(text);
- if (*success)
+ bool success = inspectorStyleSheet->setText(text);
+ if (success)
inspectorStyleSheet->reparseStyleSheet(text);
}