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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.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/LayoutSVGResourceMasker.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.cpp
index 7d1df3750e1e4dd19e07013cde2602fd1ea3cc96..d8e4fcece05b52a9546b9471630b5f73cf6e59d1 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.cpp
@@ -45,7 +45,7 @@ void LayoutSVGResourceMasker::removeAllClientsFromCache(
void LayoutSVGResourceMasker::removeClientFromCache(LayoutObject* client,
bool markForInvalidation) {
- ASSERT(client);
+ DCHECK(client);
markClientForInvalidation(client, markForInvalidation
? BoundariesInvalidation
: ParentOnlyInvalidation);
@@ -112,7 +112,7 @@ void LayoutSVGResourceMasker::calculateMaskContentVisualRect() {
FloatRect LayoutSVGResourceMasker::resourceBoundingBox(
const LayoutObject* object) {
SVGMaskElement* maskElement = toSVGMaskElement(element());
- ASSERT(maskElement);
+ DCHECK(maskElement);
FloatRect objectBoundingBox = object->objectBoundingBox();
FloatRect maskBoundaries = SVGLengthContext::resolveRectangle<SVGMaskElement>(

Powered by Google App Engine
This is Rietveld 408576698