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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp

Issue 2748103015: Replace ASSERT with DCHECK in core/layout/<sub dirs> (Closed)
Patch Set: Rebase with latest Created 3 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: third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
index cccc5d4ad751adc98578dab585b9fd5cedace508..6ed0b30bf94ebeb426ca17e7fca9fd9f3cac99a7 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
@@ -117,7 +117,7 @@ bool LayoutSVGImage::updateBoundingBox() {
}
void LayoutSVGImage::layout() {
- ASSERT(needsLayout());
+ DCHECK(needsLayout());
LayoutAnalyzer::Scope analyzer(*this);
// Invalidate all resources of this client if our layout changed.
@@ -145,8 +145,8 @@ void LayoutSVGImage::layout() {
if (updateParentBoundaries)
LayoutSVGModelObject::setNeedsBoundariesUpdate();
- ASSERT(!m_needsBoundariesUpdate);
- ASSERT(!m_needsTransformUpdate);
+ DCHECK(!m_needsBoundariesUpdate);
+ DCHECK(!m_needsTransformUpdate);
clearNeedsLayout();
}

Powered by Google App Engine
This is Rietveld 408576698