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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutScrollbarPart.h

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Split some DCHECKs and add DCHECK_ops wherever possible Created 3 years, 8 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/layout/LayoutScrollbarPart.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.h b/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.h
index ad1c2450bc3178cb08df4c24e18c241b9fc0e703..2b2f637722cb53b32aa9470017c4a19df09a5110 100644
--- a/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.h
+++ b/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.h
@@ -50,23 +50,23 @@ class LayoutScrollbarPart final : public LayoutBlock {
// Scrollbar parts needs to be rendered at device pixel boundaries.
LayoutRectOutsets marginBoxOutsets() const override {
- ASSERT(isIntegerValue(LayoutBlock::marginBoxOutsets().top()));
+ DCHECK(isIntegerValue(LayoutBlock::marginBoxOutsets().top()));
return LayoutBlock::marginBoxOutsets();
}
LayoutUnit marginTop() const override {
- ASSERT(isIntegerValue(LayoutBlock::marginTop()));
+ DCHECK(isIntegerValue(LayoutBlock::marginTop()));
return LayoutBlock::marginTop();
}
LayoutUnit marginBottom() const override {
- ASSERT(isIntegerValue(LayoutBlock::marginBottom()));
+ DCHECK(isIntegerValue(LayoutBlock::marginBottom()));
return LayoutBlock::marginBottom();
}
LayoutUnit marginLeft() const override {
- ASSERT(isIntegerValue(LayoutBlock::marginLeft()));
+ DCHECK(isIntegerValue(LayoutBlock::marginLeft()));
return LayoutBlock::marginLeft();
}
LayoutUnit marginRight() const override {
- ASSERT(isIntegerValue(LayoutBlock::marginRight()));
+ DCHECK(isIntegerValue(LayoutBlock::marginRight()));
return LayoutBlock::marginRight();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698