diff options
Diffstat (limited to 'Source/WebCore/html/ValidationMessage.cpp')
-rw-r--r-- | Source/WebCore/html/ValidationMessage.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/WebCore/html/ValidationMessage.cpp b/Source/WebCore/html/ValidationMessage.cpp index f772b92..70aa02d 100644 --- a/Source/WebCore/html/ValidationMessage.cpp +++ b/Source/WebCore/html/ValidationMessage.cpp @@ -121,11 +121,8 @@ void ValidationMessage::buildBubbleTree(Timer<ValidationMessage>*) // to inherit an existing shadow tree. if (host->shadowRoot()) host->shadowRoot()->appendChild(m_bubble.get(), ec); - else { + else host->setShadowRoot(m_bubble); - // FIXME: The following attach() should be unnecessary. - m_bubble->attach(); - } m_bubble->appendChild(ElementWithPseudoId::create(doc, "-webkit-validation-bubble-top-outer-arrow"), ec); m_bubble->appendChild(ElementWithPseudoId::create(doc, "-webkit-validation-bubble-top-inner-arrow"), ec); |