Index: Source/core/html/HTMLTextFormControlElement.cpp |
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp |
index 274fec19b5ce1c3adc6b0872f6d8d129bc393204..e277e527d1b8b81854ca0e0bc8f8dad08d1a9db4 100644 |
--- a/Source/core/html/HTMLTextFormControlElement.cpp |
+++ b/Source/core/html/HTMLTextFormControlElement.cpp |
@@ -348,7 +348,7 @@ static int indexForPosition(HTMLElement* innerEditor, const Position& passedPosi |
void HTMLTextFormControlElement::setSelectionRange(int start, int end, TextFieldSelectionDirection direction, NeedToDispatchSelectEvent eventBehaviour, SelectionOption selectionOption) |
{ |
- if (hasOpenShadowRoot() || !isTextFormControl()) |
+ if (hasOpenShadowRoot() || !isTextFormControl() || !parentOrShadowHostNode()) |
leviw_travelin_and_unemployed
2015/02/20 21:53:48
You probably want isRooted(). If you parent this f
szager1
2015/02/20 22:05:18
Done.
|
return; |
const int editorValueLength = static_cast<int>(innerEditorValue().length()); |