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

Unified Diff: Source/core/html/forms/ImageInputType.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/FileInputType.cpp ('k') | Source/core/html/forms/InputTypeView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/ImageInputType.cpp
diff --git a/Source/core/html/forms/ImageInputType.cpp b/Source/core/html/forms/ImageInputType.cpp
index aa09d9ece24aefbc84f7ef709459cfbfbd3752e1..6d11528fcca25a4b9c96aa5f8b8410f40f0c8197 100644
--- a/Source/core/html/forms/ImageInputType.cpp
+++ b/Source/core/html/forms/ImageInputType.cpp
@@ -132,8 +132,8 @@ LayoutObject* ImageInputType::createRenderer(const LayoutStyle& style) const
void ImageInputType::altAttributeChanged()
{
- if (element().userAgentShadowRoot()) {
- Element* text = element().userAgentShadowRoot()->getElementById("alttext");
+ if (element().closedShadowRoot()) {
+ Element* text = element().closedShadowRoot()->getElementById("alttext");
String value = element().altText();
if (text && text->textContent() != value)
text->setTextContent(element().altText());
@@ -263,7 +263,7 @@ void ImageInputType::setUseFallbackContent()
m_useFallbackContent = true;
if (element().document().inStyleRecalc())
return;
- if (ShadowRoot* root = element().userAgentShadowRoot())
+ if (ShadowRoot* root = element().closedShadowRoot())
root->removeChildren();
createShadowSubtree();
}
« no previous file with comments | « Source/core/html/forms/FileInputType.cpp ('k') | Source/core/html/forms/InputTypeView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698