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 | |
336 }; | 335 }; |
337 | 336 |
338 void LinkHighlightImpl::updateGeometry() | 337 void LinkHighlightImpl::updateGeometry() |
339 { | 338 { |
340 // To avoid unnecessary updates (e.g. other entities have requested animatio
ns from our WebViewImpl), | 339 // To avoid unnecessary updates (e.g. other entities have requested animatio
ns from our WebViewImpl), |
341 // only proceed if we actually requested an update. | 340 // only proceed if we actually requested an update. |
342 if (!m_geometryNeedsUpdate) | 341 if (!m_geometryNeedsUpdate) |
343 return; | 342 return; |
344 | 343 |
345 m_geometryNeedsUpdate = false; | 344 m_geometryNeedsUpdate = false; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 { | 377 { |
379 return clipLayer(); | 378 return clipLayer(); |
380 } | 379 } |
381 | 380 |
382 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const | 381 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const |
383 { | 382 { |
384 return m_compositorPlayer.get(); | 383 return m_compositorPlayer.get(); |
385 } | 384 } |
386 | 385 |
387 } // namespace blink | 386 } // namespace blink |
OLD | NEW |