| Index: Source/core/html/forms/ColorInputType.cpp
|
| diff --git a/Source/core/html/forms/ColorInputType.cpp b/Source/core/html/forms/ColorInputType.cpp
|
| index ce6d1a8e4e8b04cd726831bf5878e24fa5eabe15..104b5b85b5656fadd2662da28325e36a832c7fa7 100644
|
| --- a/Source/core/html/forms/ColorInputType.cpp
|
| +++ b/Source/core/html/forms/ColorInputType.cpp
|
| @@ -138,7 +138,7 @@ void ColorInputType::createShadowSubtree()
|
| RefPtrWillBeRawPtr<HTMLDivElement> colorSwatch = HTMLDivElement::create(document);
|
| colorSwatch->setShadowPseudoId(AtomicString("-webkit-color-swatch", AtomicString::ConstructFromLiteral));
|
| wrapperElement->appendChild(colorSwatch.release());
|
| - element().userAgentShadowRoot()->appendChild(wrapperElement.release());
|
| + element().closedShadowRoot()->appendChild(wrapperElement.release());
|
|
|
| element().updateView();
|
| }
|
| @@ -227,7 +227,7 @@ void ColorInputType::updateView()
|
|
|
| HTMLElement* ColorInputType::shadowColorSwatch() const
|
| {
|
| - ShadowRoot* shadow = element().userAgentShadowRoot();
|
| + ShadowRoot* shadow = element().closedShadowRoot();
|
| return shadow ? toHTMLElement(shadow->firstChild()->firstChild()) : 0;
|
| }
|
|
|
|
|