Index: third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
index 36f2aab9cf62db65e9e975960539798f9953eb41..11ec151fa171ab27edcf4e949c1211a9daafba7d 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
@@ -100,11 +100,11 @@ static inline unsigned countCharactersInTextNode( |
static SVGTextPositioningElement* positioningElementFromLayoutObject( |
LayoutObject& layoutObject) { |
- ASSERT(layoutObject.isSVGText() || layoutObject.isSVGInline()); |
+ DCHECK(layoutObject.isSVGText() || layoutObject.isSVGInline()); |
Node* node = layoutObject.node(); |
- ASSERT(node); |
- ASSERT(node->isSVGElement()); |
+ DCHECK(node); |
+ DCHECK(node->isSVGElement()); |
return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node) |
: nullptr; |
@@ -112,7 +112,7 @@ static SVGTextPositioningElement* positioningElementFromLayoutObject( |
void SVGTextLayoutAttributesBuilder::collectTextPositioningElements( |
LayoutBoxModelObject& start) { |
- ASSERT(!start.isSVGText() || m_textPositions.isEmpty()); |
+ DCHECK(!start.isSVGText() || m_textPositions.isEmpty()); |
SVGTextPositioningElement* element = |
positioningElementFromLayoutObject(start); |
unsigned atPosition = m_textPositions.size(); |
@@ -138,7 +138,7 @@ void SVGTextLayoutAttributesBuilder::collectTextPositioningElements( |
// Compute the length of the subtree after all children have been visited. |
TextPosition& position = m_textPositions[atPosition]; |
- ASSERT(!position.length); |
+ DCHECK(!position.length); |
position.length = m_characterCount - position.start; |
} |