Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: Source/core/html/forms/FileInputType.cpp

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/forms/ColorInputType.cpp ('k') | Source/core/html/forms/ImageInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)));
}
« no previous file with comments | « Source/core/html/forms/ColorInputType.cpp ('k') | Source/core/html/forms/ImageInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698