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

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

Issue 203633003: DevTools: cleanup InspectorStyleSheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline 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
« no previous file with comments | « no previous file | Source/core/inspector/InspectorStyleSheet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorCSSAgent.cpp
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp
index e33240f04f08125637fba2d97e7773dd938fa681..69aa4364f9ac238456ecb0d9888b54f6db2bf304 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698