| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 curve->addCubicBezierKeyframe(CompositorFloatKeyframe(extraDurationRequi
red, startOpacity), easeType); | 320 curve->addCubicBezierKeyframe(CompositorFloatKeyframe(extraDurationRequi
red, startOpacity), easeType); |
| 321 // For layout tests we don't fade out. | 321 // For layout tests we don't fade out. |
| 322 curve->addCubicBezierKeyframe(CompositorFloatKeyframe(fadeDuration + extraDu
rationRequired, layoutTestMode() ? startOpacity : 0), easeType); | 322 curve->addCubicBezierKeyframe(CompositorFloatKeyframe(fadeDuration + extraDu
rationRequired, layoutTestMode() ? startOpacity : 0), easeType); |
| 323 | 323 |
| 324 std::unique_ptr<CompositorAnimation> animation = CompositorAnimation::create
(*curve, CompositorTargetProperty::OPACITY, 0, 0); | 324 std::unique_ptr<CompositorAnimation> animation = CompositorAnimation::create
(*curve, CompositorTargetProperty::OPACITY, 0, 0); |
| 325 | 325 |
| 326 m_contentLayer->layer()->setDrawsContent(true); | 326 m_contentLayer->layer()->setDrawsContent(true); |
| 327 m_compositorPlayer->addAnimation(animation.release()); | 327 m_compositorPlayer->addAnimation(animation.release()); |
| 328 | 328 |
| 329 invalidate(); | 329 invalidate(); |
| 330 m_owningWebViewImpl->scheduleAnimation(); | 330 m_owningWebViewImpl->mainFrameImpl()->frameWidget()->scheduleAnimation(); |
| 331 } | 331 } |
| 332 | 332 |
| 333 void LinkHighlightImpl::clearGraphicsLayerLinkHighlightPointer() | 333 void LinkHighlightImpl::clearGraphicsLayerLinkHighlightPointer() |
| 334 { | 334 { |
| 335 if (m_currentGraphicsLayer) { | 335 if (m_currentGraphicsLayer) { |
| 336 m_currentGraphicsLayer->removeLinkHighlight(this); | 336 m_currentGraphicsLayer->removeLinkHighlight(this); |
| 337 m_currentGraphicsLayer = 0; | 337 m_currentGraphicsLayer = 0; |
| 338 } | 338 } |
| 339 } | 339 } |
| 340 | 340 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 { | 398 { |
| 399 return clipLayer(); | 399 return clipLayer(); |
| 400 } | 400 } |
| 401 | 401 |
| 402 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const | 402 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const |
| 403 { | 403 { |
| 404 return m_compositorPlayer.get(); | 404 return m_compositorPlayer.get(); |
| 405 } | 405 } |
| 406 | 406 |
| 407 } // namespace blink | 407 } // namespace blink |
| OLD | NEW |