Index: Source/core/html/HTMLOptionElement.cpp |
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp |
index 15a98821642b5d266b09a1b0be9b2c0142b13d51..3ed5aa5297da99c6c391cc40c52789d456ce68bc 100644 |
--- a/Source/core/html/HTMLOptionElement.cpp |
+++ b/Source/core/html/HTMLOptionElement.cpp |
@@ -58,7 +58,7 @@ HTMLOptionElement::HTMLOptionElement(Document& document) |
PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::create(Document& document) |
{ |
RefPtrWillBeRawPtr<HTMLOptionElement> option = adoptRefWillBeNoop(new HTMLOptionElement(document)); |
- option->ensureUserAgentShadowRoot(); |
+ option->ensureClosedShadowRoot(); |
return option.release(); |
} |
@@ -66,7 +66,7 @@ PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstruc |
bool defaultSelected, bool selected, ExceptionState& exceptionState) |
{ |
RefPtrWillBeRawPtr<HTMLOptionElement> element = adoptRefWillBeNoop(new HTMLOptionElement(document)); |
- element->ensureUserAgentShadowRoot(); |
+ element->ensureClosedShadowRoot(); |
element->appendChild(Text::create(document, data.isNull() ? "" : data), exceptionState); |
if (exceptionState.hadException()) |
return nullptr; |
@@ -377,14 +377,14 @@ HTMLFormElement* HTMLOptionElement::form() const |
return nullptr; |
} |
-void HTMLOptionElement::didAddUserAgentShadowRoot(ShadowRoot& root) |
+void HTMLOptionElement::didAddClosedShadowRoot(ShadowRoot& root) |
{ |
updateLabel(); |
} |
void HTMLOptionElement::updateLabel() |
{ |
- if (ShadowRoot* root = userAgentShadowRoot()) |
+ if (ShadowRoot* root = closedShadowRoot()) |
root->setTextContent(text()); |
} |