| Index: third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| index 6c84cce709433b1d60cfd067351462a395797e76..57d30becb90fca68d0ac7e085fd8c473508e7180 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| @@ -2698,9 +2698,10 @@ LayoutObject* associatedLayoutObjectOf(const Node& node, int offsetInNode) {
|
| layoutTextFragment->firstLetterPseudoElement()->layoutObject();
|
| // TODO(yosin): We're not sure when |firstLetterLayoutObject| has
|
| // multiple child layout object.
|
| - DCHECK_EQ(firstLetterLayoutObject->slowFirstChild(),
|
| - firstLetterLayoutObject->slowLastChild());
|
| - return firstLetterLayoutObject->slowFirstChild();
|
| + LayoutObject* child = firstLetterLayoutObject->slowFirstChild();
|
| + CHECK(child && child->isText());
|
| + DCHECK_EQ(child, firstLetterLayoutObject->slowLastChild());
|
| + return child;
|
| }
|
|
|
| int caretMinOffset(const Node* node) {
|
|
|