Index: Source/core/html/HTMLTextAreaElement.cpp |
diff --git a/Source/core/html/HTMLTextAreaElement.cpp b/Source/core/html/HTMLTextAreaElement.cpp |
index 4aa81e85568a0b72521e565b0841d2951b37ceec..a08935d1e059e54223a8d8549133a9df561e3635 100644 |
--- a/Source/core/html/HTMLTextAreaElement.cpp |
+++ b/Source/core/html/HTMLTextAreaElement.cpp |
@@ -91,11 +91,11 @@ HTMLTextAreaElement::HTMLTextAreaElement(Document& document, HTMLFormElement* fo |
PassRefPtrWillBeRawPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(Document& document, HTMLFormElement* form) |
{ |
RefPtrWillBeRawPtr<HTMLTextAreaElement> textArea = adoptRefWillBeNoop(new HTMLTextAreaElement(document, form)); |
- textArea->ensureUserAgentShadowRoot(); |
+ textArea->ensureClosedShadowRoot(); |
return textArea.release(); |
} |
-void HTMLTextAreaElement::didAddUserAgentShadowRoot(ShadowRoot& root) |
+void HTMLTextAreaElement::didAddClosedShadowRoot(ShadowRoot& root) |
{ |
root.appendChild(TextControlInnerEditorElement::create(document())); |
} |
@@ -609,7 +609,7 @@ void HTMLTextAreaElement::updatePlaceholderText() |
const AtomicString& placeholderText = fastGetAttribute(placeholderAttr); |
if (placeholderText.isEmpty()) { |
if (placeholder) |
- userAgentShadowRoot()->removeChild(placeholder); |
+ closedShadowRoot()->removeChild(placeholder); |
return; |
} |
if (!placeholder) { |
@@ -617,7 +617,7 @@ void HTMLTextAreaElement::updatePlaceholderText() |
placeholder = newElement.get(); |
placeholder->setShadowPseudoId(AtomicString("-webkit-input-placeholder", AtomicString::ConstructFromLiteral)); |
placeholder->setAttribute(idAttr, ShadowElementNames::placeholder()); |
- userAgentShadowRoot()->insertBefore(placeholder, innerEditorElement()->nextSibling()); |
+ closedShadowRoot()->insertBefore(placeholder, innerEditorElement()->nextSibling()); |
} |
placeholder->setTextContent(placeholderText); |
} |