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

Unified Diff: Source/core/inspector/InspectorCSSAgent.cpp

Issue 203633003: DevTools: cleanup InspectorStyleSheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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
Index: Source/core/inspector/InspectorCSSAgent.cpp
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp
index e67467f4ea3b039feb108f2f0a0ded67fee073fa..3da0899050d798b6ab0848df5e5c35c15f478612 100644
--- a/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/Source/core/inspector/InspectorCSSAgent.cpp
@@ -187,20 +187,12 @@ public:
virtual bool undo(ExceptionState& exceptionState) OVERRIDE
{
- if (m_styleSheet->setText(m_oldText, exceptionState)) {
- m_styleSheet->reparseStyleSheet(m_oldText);
- return true;
- }
- return false;
+ return m_styleSheet->setText(m_oldText, exceptionState);
}
virtual bool redo(ExceptionState& exceptionState) OVERRIDE
{
- if (m_styleSheet->setText(m_text, exceptionState)) {
- m_styleSheet->reparseStyleSheet(m_text);
- return true;
- }
- return false;
+ return m_styleSheet->setText(m_text, exceptionState);
}
virtual String mergeId() OVERRIDE
« no previous file with comments | « no previous file | Source/core/inspector/InspectorStyleSheet.h » ('j') | Source/core/inspector/InspectorStyleSheet.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698