| Index: third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
|
| index 3bd2c9bf0f1964b7d2c0d13c59f08e6c2fd3f139..0f3b9e24264f34840957b4e36e824721e2004f13 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
|
| @@ -218,7 +218,8 @@ void ColorInputType::updateView() {
|
|
|
| HTMLElement* ColorInputType::shadowColorSwatch() const {
|
| ShadowRoot* shadow = element().userAgentShadowRoot();
|
| - return shadow ? toHTMLElement(shadow->firstChild()->firstChild()) : 0;
|
| + return shadow ? toHTMLElementOrDie(shadow->firstChild()->firstChild())
|
| + : nullptr;
|
| }
|
|
|
| Element& ColorInputType::ownerElement() const {
|
|
|