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