| Index: Source/core/html/forms/FileInputType.cpp
|
| diff --git a/Source/core/html/forms/FileInputType.cpp b/Source/core/html/forms/FileInputType.cpp
|
| index b7679cce82dc614c938ab1df284458af7ff9a58c..1183e150e8bdd3311cd9c8f1b0b375ed408aede5 100644
|
| --- a/Source/core/html/forms/FileInputType.cpp
|
| +++ b/Source/core/html/forms/FileInputType.cpp
|
| @@ -262,20 +262,20 @@ void FileInputType::createShadowSubtree()
|
| button->setType(InputTypeNames::button);
|
| button->setAttribute(valueAttr, AtomicString(locale().queryString(element().multiple() ? WebLocalizedString::FileButtonChooseMultipleFilesLabel : WebLocalizedString::FileButtonChooseFileLabel)));
|
| button->setShadowPseudoId(AtomicString("-webkit-file-upload-button", AtomicString::ConstructFromLiteral));
|
| - element().userAgentShadowRoot()->appendChild(button.release());
|
| + element().closedShadowRoot()->appendChild(button.release());
|
| }
|
|
|
| void FileInputType::disabledAttributeChanged()
|
| {
|
| ASSERT(element().shadow());
|
| - if (Element* button = toElement(element().userAgentShadowRoot()->firstChild()))
|
| + if (Element* button = toElement(element().closedShadowRoot()->firstChild()))
|
| button->setBooleanAttribute(disabledAttr, element().isDisabledFormControl());
|
| }
|
|
|
| void FileInputType::multipleAttributeChanged()
|
| {
|
| ASSERT(element().shadow());
|
| - if (Element* button = toElement(element().userAgentShadowRoot()->firstChild()))
|
| + if (Element* button = toElement(element().closedShadowRoot()->firstChild()))
|
| button->setAttribute(valueAttr, AtomicString(locale().queryString(element().multiple() ? WebLocalizedString::FileButtonChooseMultipleFilesLabel : WebLocalizedString::FileButtonChooseFileLabel)));
|
| }
|
|
|
|
|