Unreviewed, rolling out r106909.
[WebKit-https.git] / Source / WebCore / html / HTMLTextAreaElement.cpp
index 619667022de1e0255f6b4e06e9d045cd0b762749..d495dce67b6282f1716c7d9877635a65903f86a5 100644 (file)
@@ -84,9 +84,8 @@ PassRefPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(const QualifiedName&
 
 void HTMLTextAreaElement::createShadowSubtree()
 {
-    ASSERT(!shadowRoot());
-    RefPtr<ShadowRoot> root = ShadowRoot::create(this, ASSERT_NO_EXCEPTION);
-    root->appendChild(TextControlInnerTextElement::create(document()), ASSERT_NO_EXCEPTION);
+    ExceptionCode ec = 0;
+    ensureShadowRoot()->appendChild(TextControlInnerTextElement::create(document()), ec);
 }
 
 const AtomicString& HTMLTextAreaElement::formControlType() const