Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: WebCore/inspector/InspectorCSSAgent.cpp

Issue 5446003: Merge 72938 - 2010-11-30 Pavel Feldman <pfeldman@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/inspector/InspectorCSSAgent.h ('k') | WebCore/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « WebCore/inspector/InspectorCSSAgent.h ('k') | WebCore/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698