diff options
author | keishi <keishi@chromium.org> | 2014-09-29 22:56:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-30 05:56:40 +0000 |
commit | 539b53815a76147be81dc3fa3c2d5f4a3da2ee06 (patch) | |
tree | 60b96a40307be793a26af92d1a7a877625679bdc /content | |
parent | 045bf82707ecb062bac91a466bdeed3ad29c18fc (diff) | |
download | chromium_src-539b53815a76147be81dc3fa3c2d5f4a3da2ee06.zip chromium_src-539b53815a76147be81dc3fa3c2d5f4a3da2ee06.tar.gz chromium_src-539b53815a76147be81dc3fa3c2d5f4a3da2ee06.tar.bz2 |
WebTestProxy should animate the page popup
We need to begin animation frames in the WebPagePopup to trigger resize events so we let WebTestProxy call animation on the page popup as well.
BUG=409503
Review URL: https://codereview.chromium.org/603873002
Cr-Commit-Position: refs/heads/master@{#297369}
Diffstat (limited to 'content')
-rw-r--r-- | content/shell/renderer/test_runner/web_test_proxy.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/shell/renderer/test_runner/web_test_proxy.cc b/content/shell/renderer/test_runner/web_test_proxy.cc index d76ae50..f67a8a7 100644 --- a/content/shell/renderer/test_runner/web_test_proxy.cc +++ b/content/shell/renderer/test_runner/web_test_proxy.cc @@ -689,6 +689,10 @@ void WebTestProxyBase::AnimateNow() { animate_scheduled_ = false; web_widget_->animate(0.0); web_widget_->layout(); + if (blink::WebPagePopup* popup = web_widget_->pagePopup()) { + popup->animate(0.0); + popup->layout(); + } } } |