Commit 539b5381 authored by keishi's avatar keishi Committed by Commit bot

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}
parent 045bf827
...@@ -689,6 +689,10 @@ void WebTestProxyBase::AnimateNow() { ...@@ -689,6 +689,10 @@ void WebTestProxyBase::AnimateNow() {
animate_scheduled_ = false; animate_scheduled_ = false;
web_widget_->animate(0.0); web_widget_->animate(0.0);
web_widget_->layout(); web_widget_->layout();
if (blink::WebPagePopup* popup = web_widget_->pagePopup()) {
popup->animate(0.0);
popup->layout();
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment