Commit e586cd5b authored by adamk@chromium.org's avatar adamk@chromium.org

Remove old WEBWIDGET_HAS_ANIMATE_CHANGES ifdefs.

R=nduca@chromium.org

Review URL: http://codereview.chromium.org/7982015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102314 0039d316-1c4b-4281-b951-d872f2087c98
parent 3afd25e0
......@@ -644,11 +644,7 @@ void RenderWidget::AnimateIfNeeded() {
this, &RenderWidget::AnimationCallback), animationInterval);
animation_task_posted_ = true;
animation_update_pending_ = false;
#ifdef WEBWIDGET_HAS_ANIMATE_CHANGES
webwidget_->animate(0.0);
#else
webwidget_->animate();
#endif
return;
}
TRACE_EVENT0("renderer", "EarlyOut_AnimatedTooRecently");
......
......@@ -65,13 +65,8 @@ class PepperWidget : public WebWidget {
virtual void willEndLiveResize() {
}
#ifndef WEBWIDGET_HAS_ANIMATE_CHANGES
virtual void animate() {
}
#else
virtual void animate(double frameBeginTime) {
}
#endif
virtual void layout() {
}
......
......@@ -184,11 +184,7 @@ 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();
......
......@@ -365,11 +365,7 @@ void WebWidgetHost::Paint() {
}
}
#ifdef WEBWIDGET_HAS_ANIMATE_CHANGES
webwidget_->animate(0.0);
#else
webwidget_->animate();
#endif
// This may result in more invalidation
webwidget_->layout();
......
......@@ -243,11 +243,7 @@ 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();
......
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