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

Unified Diff: third_party/WebKit/Source/core/layout/FloatingObjects.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/FloatingObjects.h
diff --git a/third_party/WebKit/Source/core/layout/FloatingObjects.h b/third_party/WebKit/Source/core/layout/FloatingObjects.h
index 13c515791d42a4b4863726eaa477522ca7b535e9..06ce6812222634a6278e729f420f3070847722c0 100644
--- a/third_party/WebKit/Source/core/layout/FloatingObjects.h
+++ b/third_party/WebKit/Source/core/layout/FloatingObjects.h
@@ -68,43 +68,43 @@ class FloatingObject {
void setIsPlaced(bool placed = true) { m_isPlaced = placed; }
LayoutUnit x() const {
- ASSERT(isPlaced());
+ DCHECK(isPlaced());
return m_frameRect.x();
}
LayoutUnit maxX() const {
- ASSERT(isPlaced());
+ DCHECK(isPlaced());
return m_frameRect.maxX();
}
LayoutUnit y() const {
- ASSERT(isPlaced());
+ DCHECK(isPlaced());
return m_frameRect.y();
}
LayoutUnit maxY() const {
- ASSERT(isPlaced());
+ DCHECK(isPlaced());
return m_frameRect.maxY();
}
LayoutUnit width() const { return m_frameRect.width(); }
LayoutUnit height() const { return m_frameRect.height(); }
void setX(LayoutUnit x) {
- ASSERT(!isInPlacedTree());
+ DCHECK(!isInPlacedTree());
m_frameRect.setX(x);
}
void setY(LayoutUnit y) {
- ASSERT(!isInPlacedTree());
+ DCHECK(!isInPlacedTree());
m_frameRect.setY(y);
}
void setWidth(LayoutUnit width) {
- ASSERT(!isInPlacedTree());
+ DCHECK(!isInPlacedTree());
m_frameRect.setWidth(width);
}
void setHeight(LayoutUnit height) {
- ASSERT(!isInPlacedTree());
+ DCHECK(!isInPlacedTree());
m_frameRect.setHeight(height);
}
const LayoutRect& frameRect() const {
- ASSERT(isPlaced());
+ DCHECK(isPlaced());
return m_frameRect;
}

Powered by Google App Engine
This is Rietveld 408576698