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

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

Issue 2873293002: Replace ASSERT with DCHECK_EQ as appropriate (Closed)
Patch Set: rebase Created 3 years, 7 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: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
index e1fea63aac13cc0c1b89c0460a58943a5a043df8..e9bfe37f98c093e07819878b4e5a1bf6089d8b48 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
@@ -427,7 +427,7 @@ class InspectorCSSAgent::SetStyleSheetTextAction final
}
void Merge(Action* action) override {
- ASSERT(action->MergeId() == MergeId());
+ DCHECK_EQ(action->MergeId(), MergeId());
SetStyleSheetTextAction* other =
static_cast<SetStyleSheetTextAction*>(action);
@@ -548,7 +548,7 @@ class InspectorCSSAgent::ModifyRuleAction final
bool IsNoop() override { return old_text_ == new_text_; }
void Merge(Action* action) override {
- ASSERT(action->MergeId() == MergeId());
+ DCHECK_EQ(action->MergeId(), MergeId());
ModifyRuleAction* other = static_cast<ModifyRuleAction*>(action);
new_text_ = other->new_text_;
@@ -605,7 +605,7 @@ class InspectorCSSAgent::SetElementStyleAction final
}
void Merge(Action* action) override {
- ASSERT(action->MergeId() == MergeId());
+ DCHECK_EQ(action->MergeId(), MergeId());
SetElementStyleAction* other = static_cast<SetElementStyleAction*>(action);
text_ = other->text_;

Powered by Google App Engine
This is Rietveld 408576698