| Index: Source/core/page/Chrome.cpp
|
| diff --git a/Source/core/page/Chrome.cpp b/Source/core/page/Chrome.cpp
|
| index 2f05ab2f92af49f7716677bf8a0eb7bc02ec353d..3abc6bec2d8816275056494411edf223deec5198 100644
|
| --- a/Source/core/page/Chrome.cpp
|
| +++ b/Source/core/page/Chrome.cpp
|
| @@ -135,11 +135,6 @@ void Chrome::show(NavigationPolicy policy) const
|
| m_client->show(policy);
|
| }
|
|
|
| -bool Chrome::canRunModal() const
|
| -{
|
| - return m_client->canRunModal();
|
| -}
|
| -
|
| static bool canRunModalIfDuringPageDismissal(Page* page, ChromeClient::DialogType dialog, const String& message)
|
| {
|
| for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
|
| @@ -150,21 +145,6 @@ static bool canRunModalIfDuringPageDismissal(Page* page, ChromeClient::DialogTyp
|
| return true;
|
| }
|
|
|
| -bool Chrome::canRunModalNow() const
|
| -{
|
| - return canRunModal() && canRunModalIfDuringPageDismissal(m_page, ChromeClient::HTMLDialog, String());
|
| -}
|
| -
|
| -void Chrome::runModal() const
|
| -{
|
| - // Defer callbacks in all the other pages, so we don't try to run JavaScript
|
| - // in a way that could interact with this view.
|
| - ScopedPageLoadDeferrer deferrer(m_page);
|
| -
|
| - TimerBase::fireTimersInNestedEventLoop();
|
| - m_client->runModal();
|
| -}
|
| -
|
| void Chrome::setWindowFeatures(const WindowFeatures& features) const
|
| {
|
| m_client->setToolbarsVisible(features.toolBarVisible || features.locationBarVisible);
|
|
|