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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 } | 302 } |
303 | 303 |
304 void LinkHighlight::clearGraphicsLayerLinkHighlightPointer() | 304 void LinkHighlight::clearGraphicsLayerLinkHighlightPointer() |
305 { | 305 { |
306 if (m_currentGraphicsLayer) { | 306 if (m_currentGraphicsLayer) { |
307 m_currentGraphicsLayer->removeLinkHighlight(this); | 307 m_currentGraphicsLayer->removeLinkHighlight(this); |
308 m_currentGraphicsLayer = 0; | 308 m_currentGraphicsLayer = 0; |
309 } | 309 } |
310 } | 310 } |
311 | 311 |
312 void LinkHighlight::notifyAnimationStarted(double, double, blink::WebAnimation::
TargetProperty) | 312 void LinkHighlight::notifyAnimationStarted(double, blink::WebAnimation::TargetPr
operty) |
313 { | 313 { |
314 } | 314 } |
315 | 315 |
316 void LinkHighlight::notifyAnimationFinished(double, double, blink::WebAnimation:
:TargetProperty) | 316 void LinkHighlight::notifyAnimationFinished(double, blink::WebAnimation::TargetP
roperty) |
317 { | 317 { |
318 // Since WebViewImpl may hang on to us for a while, make sure we | 318 // Since WebViewImpl may hang on to us for a while, make sure we |
319 // release resources as soon as possible. | 319 // release resources as soon as possible. |
320 clearGraphicsLayerLinkHighlightPointer(); | 320 clearGraphicsLayerLinkHighlightPointer(); |
321 releaseResources(); | 321 releaseResources(); |
322 } | 322 } |
323 | 323 |
324 void LinkHighlight::updateGeometry() | 324 void LinkHighlight::updateGeometry() |
325 { | 325 { |
326 // To avoid unnecessary updates (e.g. other entities have requested animatio
ns from our WebViewImpl), | 326 // To avoid unnecessary updates (e.g. other entities have requested animatio
ns from our WebViewImpl), |
(...skipping 28 matching lines...) Expand all Loading... |
355 // Make sure we update geometry on the next callback from WebViewImpl::layou
t(). | 355 // Make sure we update geometry on the next callback from WebViewImpl::layou
t(). |
356 m_geometryNeedsUpdate = true; | 356 m_geometryNeedsUpdate = true; |
357 } | 357 } |
358 | 358 |
359 WebLayer* LinkHighlight::layer() | 359 WebLayer* LinkHighlight::layer() |
360 { | 360 { |
361 return clipLayer(); | 361 return clipLayer(); |
362 } | 362 } |
363 | 363 |
364 } // namespace WeKit | 364 } // namespace WeKit |
OLD | NEW |