diff options
-rw-r--r-- | webkit/tools/test_shell/mac/webwidget_host.mm | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/webwidget_host_gtk.cc | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/webwidget_host_win.cc | 4 |
3 files changed, 14 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/mac/webwidget_host.mm b/webkit/tools/test_shell/mac/webwidget_host.mm index 7610644..1afefdc 100644 --- a/webkit/tools/test_shell/mac/webwidget_host.mm +++ b/webkit/tools/test_shell/mac/webwidget_host.mm @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -184,7 +184,11 @@ void WebWidgetHost::Paint() { [NSGraphicsContext graphicsContextWithGraphicsPort:bitmap_context flipped:YES]]; +#ifdef WEBWIDGET_HAS_ANIMATE_CHANGES + webwidget_->animate(0.0); +#else webwidget_->animate(); +#endif // This may result in more invalidation webwidget_->layout(); diff --git a/webkit/tools/test_shell/webwidget_host_gtk.cc b/webkit/tools/test_shell/webwidget_host_gtk.cc index b16ea3b..3287752 100644 --- a/webkit/tools/test_shell/webwidget_host_gtk.cc +++ b/webkit/tools/test_shell/webwidget_host_gtk.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -365,7 +365,11 @@ void WebWidgetHost::Paint() { } } +#ifdef WEBWIDGET_HAS_ANIMATE_CHANGES + webwidget_->animate(0.0); +#else webwidget_->animate(); +#endif // This may result in more invalidation webwidget_->layout(); diff --git a/webkit/tools/test_shell/webwidget_host_win.cc b/webkit/tools/test_shell/webwidget_host_win.cc index 005c888..6afd48a 100644 --- a/webkit/tools/test_shell/webwidget_host_win.cc +++ b/webkit/tools/test_shell/webwidget_host_win.cc @@ -243,7 +243,11 @@ void WebWidgetHost::Paint() { paint_rect_.width(), paint_rect_.height(), true)); } +#ifdef WEBWIDGET_HAS_ANIMATE_CHANGES + webwidget_->animate(0.0); +#else webwidget_->animate(); +#endif // This may result in more invalidation webwidget_->layout(); |