| 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 c915e17df2d5c88a884cad83464a17d13a8396e6..7400fe10aefd810cd9d050327652253d9f02e2af 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
|
| @@ -122,7 +122,7 @@ void HTMLDialogElement::closeDialog(const String& returnValue)
|
| if (!returnValue.isNull())
|
| m_returnValue = returnValue;
|
|
|
| - dispatchScopedEvent(Event::create(EventTypeNames::close));
|
| + scheduleCloseEvent();
|
| }
|
|
|
| void HTMLDialogElement::forceLayoutForCentering()
|
| @@ -133,6 +133,13 @@ void HTMLDialogElement::forceLayoutForCentering()
|
| setNotCentered();
|
| }
|
|
|
| +void HTMLDialogElement::scheduleCloseEvent()
|
| +{
|
| + Event* event = Event::create(EventTypeNames::close);
|
| + event->setTarget(this);
|
| + document().enqueueAnimationFrameEvent(event);
|
| +}
|
| +
|
| void HTMLDialogElement::show()
|
| {
|
| if (fastHasAttribute(openAttr))
|
|
|