| Index: third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp b/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| index 953a6cee67fd65357c0cf4c7207e20a117f0eff2..018752047bf43fc034442ec325a520a46d7091cd 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| @@ -153,7 +153,7 @@ void HTMLDialogElement::showModal(ExceptionState& exceptionState)
|
| exceptionState.throwDOMException(InvalidStateError, "The element already has an 'open' attribute, and therefore cannot be opened modally.");
|
| return;
|
| }
|
| - if (!inDocument()) {
|
| + if (!inShadowIncludingDocument()) {
|
| exceptionState.throwDOMException(InvalidStateError, "The element is not in a Document.");
|
| return;
|
| }
|
|
|