| Index: Source/core/html/InputType.cpp
|
| diff --git a/Source/core/html/InputType.cpp b/Source/core/html/InputType.cpp
|
| index aa6d2540dc7273f6defcaa1891f218b548a8996e..8f41d58a17e87a2c0c2915a4b1ec4c0a78e4a19c 100644
|
| --- a/Source/core/html/InputType.cpp
|
| +++ b/Source/core/html/InputType.cpp
|
| @@ -413,11 +413,11 @@ void InputType::destroyShadowSubtree()
|
|
|
| root->removeChildren();
|
|
|
| - // It's ok to clear contents of all other ShadowRoots because they must have
|
| - // been created by InputFieldPasswordGeneratorButtonElement, and we don't allow adding
|
| - // AuthorShadowRoot to HTMLInputElement.
|
| - // FIXME: Remove the PasswordGeneratorButtonElement's shadow root and then remove this loop.
|
| - while ((root = root->youngerShadowRoot())) {
|
| + // It's ok to clear contents of all other UA ShadowRoots because they must
|
| + // have been created by InputFieldPasswordGeneratorButtonElement.
|
| + // FIXME: Remove the PasswordGeneratorButtonElement's shadow root and then
|
| + // remove this loop.
|
| + while ((root = root->youngerShadowRoot()) && root->type() == ShadowRoot::UserAgentShadowRoot) {
|
| root->removeChildren();
|
| root->appendChild(HTMLShadowElement::create(shadowTag, element()->document()));
|
| }
|
|
|