Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
index 5390b7360ae1ca2e7fe1d29e0e78682f75fafc1b..2770ee119b98d3819a94c52cf90ee5ac288b2bf7 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
@@ -943,7 +943,7 @@ void LayoutBoxModelObject::computeLayerHitTestRects(LayerHitTestRects& rects) co |
LayoutRect LayoutBoxModelObject::localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIndentOffset) |
{ |
- ASSERT(!slowFirstChild()); |
+ DCHECK(!slowFirstChild() || slowFirstChild()->isPseudoElement()); |
// FIXME: This does not take into account either :first-line or :first-letter |
// However, as soon as some content is entered, the line boxes will be |