Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: content/shell/renderer/test_runner/WebTestProxy.cpp

Issue 145173013: Revert of Make --dump-render-tree's requestAnimationFrame more real (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/test_runner/WebTestProxy.h" 5 #include "content/shell/renderer/test_runner/WebTestProxy.h"
6 6
7 #include <cctype> 7 #include <cctype>
8 8
9 #include "content/shell/renderer/test_runner/AccessibilityController.h" 9 #include "content/shell/renderer/test_runner/AccessibilityController.h"
10 #include "content/shell/renderer/test_runner/EventSender.h" 10 #include "content/shell/renderer/test_runner/EventSender.h"
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 m_animateScheduled = true; 727 m_animateScheduled = true;
728 m_delegate->postDelayedTask(new HostMethodTask(this, &WebTestProxyBase:: animateNow), 1); 728 m_delegate->postDelayedTask(new HostMethodTask(this, &WebTestProxyBase:: animateNow), 1);
729 } 729 }
730 } 730 }
731 731
732 void WebTestProxyBase::animateNow() 732 void WebTestProxyBase::animateNow()
733 { 733 {
734 if (m_animateScheduled) { 734 if (m_animateScheduled) {
735 m_animateScheduled = false; 735 m_animateScheduled = false;
736 webWidget()->animate(0.0); 736 webWidget()->animate(0.0);
737 webWidget()->layout();
738 } 737 }
739 } 738 }
740 739
741 void WebTestProxyBase::show(WebNavigationPolicy) 740 void WebTestProxyBase::show(WebNavigationPolicy)
742 { 741 {
743 invalidateAll(); 742 invalidateAll();
744 } 743 }
745 744
746 void WebTestProxyBase::setWindowRect(const WebRect& rect) 745 void WebTestProxyBase::setWindowRect(const WebRect& rect)
747 { 746 {
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 1346
1348 void WebTestProxyBase::resetInputMethod() 1347 void WebTestProxyBase::resetInputMethod()
1349 { 1348 {
1350 // If a composition text exists, then we need to let the browser process 1349 // If a composition text exists, then we need to let the browser process
1351 // to cancel the input method's ongoing composition session. 1350 // to cancel the input method's ongoing composition session.
1352 if (m_webWidget) 1351 if (m_webWidget)
1353 m_webWidget->confirmComposition(); 1352 m_webWidget->confirmComposition();
1354 } 1353 }
1355 1354
1356 } 1355 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698