Index: Source/core/html/forms/BaseButtonInputType.cpp |
diff --git a/Source/core/html/forms/BaseButtonInputType.cpp b/Source/core/html/forms/BaseButtonInputType.cpp |
index cfec082b597610a4a5c7ccaf2b3f9243afabc638..c3aa5eb45c5703a6e27bfedd2a959059ace0b162 100644 |
--- a/Source/core/html/forms/BaseButtonInputType.cpp |
+++ b/Source/core/html/forms/BaseButtonInputType.cpp |
@@ -44,13 +44,13 @@ using namespace HTMLNames; |
void BaseButtonInputType::createShadowSubtree() |
{ |
- ASSERT(element().userAgentShadowRoot()); |
- element().userAgentShadowRoot()->appendChild(Text::create(element().document(), element().valueWithDefault())); |
+ ASSERT(element().closedShadowRoot()); |
+ element().closedShadowRoot()->appendChild(Text::create(element().document(), element().valueWithDefault())); |
} |
void BaseButtonInputType::valueAttributeChanged() |
{ |
- toText(element().userAgentShadowRoot()->firstChild())->setData(element().valueWithDefault()); |
+ toText(element().closedShadowRoot()->firstChild())->setData(element().valueWithDefault()); |
} |
bool BaseButtonInputType::shouldSaveAndRestoreFormControlState() const |