| 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 { | 346 { |
| 347 // Since WebViewImpl may hang on to us for a while, make sure we | 347 // Since WebViewImpl may hang on to us for a while, make sure we |
| 348 // release resources as soon as possible. | 348 // release resources as soon as possible. |
| 349 clearGraphicsLayerLinkHighlightPointer(); | 349 clearGraphicsLayerLinkHighlightPointer(); |
| 350 releaseResources(); | 350 releaseResources(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 class LinkHighlightDisplayItemClientForTracking : public DisplayItemClient { | 353 class LinkHighlightDisplayItemClientForTracking : public DisplayItemClient { |
| 354 String debugName() const final { return "LinkHighlight"; } | 354 String debugName() const final { return "LinkHighlight"; } |
| 355 LayoutRect visualRect() const final { return LayoutRect(); } | 355 LayoutRect visualRect() const final { return LayoutRect(); } |
| 356 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION |
| 356 }; | 357 }; |
| 357 | 358 |
| 358 void LinkHighlightImpl::updateGeometry() | 359 void LinkHighlightImpl::updateGeometry() |
| 359 { | 360 { |
| 360 // To avoid unnecessary updates (e.g. other entities have requested animatio
ns from our WebViewImpl), | 361 // To avoid unnecessary updates (e.g. other entities have requested animatio
ns from our WebViewImpl), |
| 361 // only proceed if we actually requested an update. | 362 // only proceed if we actually requested an update. |
| 362 if (!m_geometryNeedsUpdate) | 363 if (!m_geometryNeedsUpdate) |
| 363 return; | 364 return; |
| 364 | 365 |
| 365 m_geometryNeedsUpdate = false; | 366 m_geometryNeedsUpdate = false; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 { | 399 { |
| 399 return clipLayer(); | 400 return clipLayer(); |
| 400 } | 401 } |
| 401 | 402 |
| 402 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const | 403 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const |
| 403 { | 404 { |
| 404 return m_compositorPlayer.get(); | 405 return m_compositorPlayer.get(); |
| 405 } | 406 } |
| 406 | 407 |
| 407 } // namespace blink | 408 } // namespace blink |
| OLD | NEW |