| Index: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| index 7c6211deb45b57772666ed2b880fccc8f7a2090e..d23e67670820d3975ceeee238c20775b8cab8000 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
|
| @@ -73,7 +73,7 @@ HTMLTextFormControlElement::~HTMLTextFormControlElement()
|
| Node::InsertionNotificationRequest HTMLTextFormControlElement::insertedInto(ContainerNode* insertionPoint)
|
| {
|
| HTMLFormControlElementWithState::insertedInto(insertionPoint);
|
| - if (!insertionPoint->inShadowIncludingDocument())
|
| + if (!insertionPoint->isConnected())
|
| return InsertionDone;
|
| String initialValue = value();
|
| setTextAsOfLastFormControlChangeEvent(initialValue.isNull() ? emptyString() : initialValue);
|
| @@ -353,7 +353,7 @@ void HTMLTextFormControlElement::setSelectionRange(int start, int end, TextField
|
| start = std::min(std::max(start, 0), end);
|
| cacheSelection(start, end, direction);
|
|
|
| - if (selectionOption == NotChangeSelection || (selectionOption == ChangeSelectionIfFocused && document().focusedElement() != this) || !inShadowIncludingDocument()) {
|
| + if (selectionOption == NotChangeSelection || (selectionOption == ChangeSelectionIfFocused && document().focusedElement() != this) || !isConnected()) {
|
| if (eventBehaviour == DispatchSelectEvent)
|
| scheduleSelectEvent();
|
| return;
|
|
|