| Index: Source/core/html/HTMLTextFormControlElement.cpp
|
| diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp
|
| index d7d3c327555fc1113fe7b4da28894d2620de88b7..cfc10a524594d491666ec8967362145c8090a452 100644
|
| --- a/Source/core/html/HTMLTextFormControlElement.cpp
|
| +++ b/Source/core/html/HTMLTextFormControlElement.cpp
|
| @@ -623,7 +623,7 @@ HTMLTextFormControlElement* enclosingTextFormControl(const Position& position)
|
| ASSERT(position.isNull() || position.anchorType() == Position::PositionIsOffsetInAnchor
|
| || position.containerNode() || !position.anchorNode()->shadowHost()
|
| || (position.anchorNode()->parentNode() && position.anchorNode()->parentNode()->isShadowRoot()));
|
| -
|
| +
|
| Node* container = position.containerNode();
|
| if (!container)
|
| return 0;
|
|
|