| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 { | 325 { |
| 326 // Since WebViewImpl may hang on to us for a while, make sure we | 326 // Since WebViewImpl may hang on to us for a while, make sure we |
| 327 // release resources as soon as possible. | 327 // release resources as soon as possible. |
| 328 clearGraphicsLayerLinkHighlightPointer(); | 328 clearGraphicsLayerLinkHighlightPointer(); |
| 329 releaseResources(); | 329 releaseResources(); |
| 330 } | 330 } |
| 331 | 331 |
| 332 class LinkHighlightDisplayItemClientForTracking : public DisplayItemClient { | 332 class LinkHighlightDisplayItemClientForTracking : public DisplayItemClient { |
| 333 String debugName() const final { return "LinkHighlight"; } | 333 String debugName() const final { return "LinkHighlight"; } |
| 334 LayoutRect visualRect() const final { return LayoutRect(); } | 334 LayoutRect visualRect() const final { return LayoutRect(); } |
| 335 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION |
| 335 }; | 336 }; |
| 336 | 337 |
| 337 void LinkHighlightImpl::updateGeometry() | 338 void LinkHighlightImpl::updateGeometry() |
| 338 { | 339 { |
| 339 // To avoid unnecessary updates (e.g. other entities have requested animatio
ns from our WebViewImpl), | 340 // To avoid unnecessary updates (e.g. other entities have requested animatio
ns from our WebViewImpl), |
| 340 // only proceed if we actually requested an update. | 341 // only proceed if we actually requested an update. |
| 341 if (!m_geometryNeedsUpdate) | 342 if (!m_geometryNeedsUpdate) |
| 342 return; | 343 return; |
| 343 | 344 |
| 344 m_geometryNeedsUpdate = false; | 345 m_geometryNeedsUpdate = false; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 { | 378 { |
| 378 return clipLayer(); | 379 return clipLayer(); |
| 379 } | 380 } |
| 380 | 381 |
| 381 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const | 382 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const |
| 382 { | 383 { |
| 383 return m_compositorPlayer.get(); | 384 return m_compositorPlayer.get(); |
| 384 } | 385 } |
| 385 | 386 |
| 386 } // namespace blink | 387 } // namespace blink |
| OLD | NEW |