Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1413373007: CC AnimationHost: Fix LinkHighlights detach scope. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GC. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/LinkHighlightImplTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 2663 matching lines...) Expand 10 before | Expand all | Expand 10 after
2674 } 2674 }
2675 2675
2676 bool WebViewImpl::isAcceleratedCompositingActive() const 2676 bool WebViewImpl::isAcceleratedCompositingActive() const
2677 { 2677 {
2678 return m_rootLayer; 2678 return m_rootLayer;
2679 } 2679 }
2680 2680
2681 void WebViewImpl::willCloseLayerTreeView() 2681 void WebViewImpl::willCloseLayerTreeView()
2682 { 2682 {
2683 if (m_linkHighlightsTimeline) { 2683 if (m_linkHighlightsTimeline) {
2684 m_linkHighlights.clear();
pdr. 2015/11/04 02:53:02 Can you help me understand this line? Why do we on
loyso (OOO) 2015/11/04 04:16:30 Ermmm. We can clear m_linkHighlights in any case,
2684 detachCompositorAnimationTimeline(m_linkHighlightsTimeline.get()); 2685 detachCompositorAnimationTimeline(m_linkHighlightsTimeline.get());
2685 m_linkHighlightsTimeline.clear(); 2686 m_linkHighlightsTimeline.clear();
2686 } 2687 }
2687 2688
2688 if (page()) 2689 if (page())
2689 page()->willCloseLayerTreeView(); 2690 page()->willCloseLayerTreeView();
2690 2691
2691 setRootGraphicsLayer(nullptr); 2692 setRootGraphicsLayer(nullptr);
2692 m_layerTreeView = nullptr; 2693 m_layerTreeView = nullptr;
2693 } 2694 }
(...skipping 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after
4466 if (m_pageColorOverlay) 4467 if (m_pageColorOverlay)
4467 m_pageColorOverlay->update(); 4468 m_pageColorOverlay->update();
4468 if (InspectorOverlay* overlay = inspectorOverlay()) { 4469 if (InspectorOverlay* overlay = inspectorOverlay()) {
4469 PageOverlay* inspectorPageOverlay = overlay->pageOverlay(); 4470 PageOverlay* inspectorPageOverlay = overlay->pageOverlay();
4470 if (inspectorPageOverlay) 4471 if (inspectorPageOverlay)
4471 inspectorPageOverlay->update(); 4472 inspectorPageOverlay->update();
4472 } 4473 }
4473 } 4474 }
4474 4475
4475 } // namespace blink 4476 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/LinkHighlightImplTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698