Index: Source/core/html/forms/SearchInputType.cpp |
diff --git a/Source/core/html/forms/SearchInputType.cpp b/Source/core/html/forms/SearchInputType.cpp |
index e09e938df8559ab947f63b3d424a13150e4c0f7d..bf8c00fa029a9883500569413d732c8e9ca56767 100644 |
--- a/Source/core/html/forms/SearchInputType.cpp |
+++ b/Source/core/html/forms/SearchInputType.cpp |
@@ -81,7 +81,7 @@ void SearchInputType::createShadowSubtree() |
{ |
TextFieldInputType::createShadowSubtree(); |
Element* container = containerElement(); |
- Element* viewPort = element().userAgentShadowRoot()->getElementById(ShadowElementNames::editingViewPort()); |
+ Element* viewPort = element().closedShadowRoot()->getElementById(ShadowElementNames::editingViewPort()); |
ASSERT(container); |
ASSERT(viewPort); |
@@ -157,7 +157,7 @@ void SearchInputType::updateView() |
void SearchInputType::updateCancelButtonVisibility() |
{ |
- Element* button = element().userAgentShadowRoot()->getElementById(ShadowElementNames::clearButton()); |
+ Element* button = element().closedShadowRoot()->getElementById(ShadowElementNames::clearButton()); |
if (!button) |
return; |
if (element().value().isEmpty()) { |