diff options
Diffstat (limited to 'Source/WebCore/html/HTMLDialogElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLDialogElement.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/WebCore/html/HTMLDialogElement.cpp b/Source/WebCore/html/HTMLDialogElement.cpp index 537432960..7d4d6451b 100644 --- a/Source/WebCore/html/HTMLDialogElement.cpp +++ b/Source/WebCore/html/HTMLDialogElement.cpp @@ -62,6 +62,15 @@ void HTMLDialogElement::show() setBooleanAttribute(openAttr, true); } +void HTMLDialogElement::showModal(ExceptionCode& ec) +{ + if (fastHasAttribute(openAttr) || !inDocument()) { + ec = INVALID_STATE_ERR; + return; + } + setBooleanAttribute(openAttr, true); +} + bool HTMLDialogElement::isPresentationAttribute(const QualifiedName& name) const { // FIXME: Workaround for <https://bugs.webkit.org/show_bug.cgi?id=91058>: modifying an attribute for which there is an attribute selector |