| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 3104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3115 current_scroll_chain.push_front(viewport_scroll_node); | 3115 current_scroll_chain.push_front(viewport_scroll_node); |
| 3116 break; | 3116 break; |
| 3117 } | 3117 } |
| 3118 | 3118 |
| 3119 if (!scroll_node->scrollable) | 3119 if (!scroll_node->scrollable) |
| 3120 continue; | 3120 continue; |
| 3121 | 3121 |
| 3122 current_scroll_chain.push_front(scroll_node); | 3122 current_scroll_chain.push_front(scroll_node); |
| 3123 } | 3123 } |
| 3124 } | 3124 } |
| 3125 scroll_state->set_scroll_chain_and_layer_tree(¤t_scroll_chain, | 3125 scroll_state->set_scroll_chain_and_layer_tree(current_scroll_chain, |
| 3126 active_tree()); | 3126 active_tree()); |
| 3127 scroll_state->DistributeToScrollChainDescendant(); | 3127 scroll_state->DistributeToScrollChainDescendant(); |
| 3128 } | 3128 } |
| 3129 | 3129 |
| 3130 InputHandlerScrollResult LayerTreeHostImpl::ScrollBy( | 3130 InputHandlerScrollResult LayerTreeHostImpl::ScrollBy( |
| 3131 ScrollState* scroll_state) { | 3131 ScrollState* scroll_state) { |
| 3132 DCHECK(scroll_state); | 3132 DCHECK(scroll_state); |
| 3133 | 3133 |
| 3134 TRACE_EVENT0("cc", "LayerTreeHostImpl::ScrollBy"); | 3134 TRACE_EVENT0("cc", "LayerTreeHostImpl::ScrollBy"); |
| 3135 if (!CurrentlyScrollingLayer()) | 3135 if (!CurrentlyScrollingLayer()) |
| (...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4130 worker_context_visibility_ = | 4130 worker_context_visibility_ = |
| 4131 worker_context->CacheController()->ClientBecameVisible(); | 4131 worker_context->CacheController()->ClientBecameVisible(); |
| 4132 } else { | 4132 } else { |
| 4133 worker_context->CacheController()->ClientBecameNotVisible( | 4133 worker_context->CacheController()->ClientBecameNotVisible( |
| 4134 std::move(worker_context_visibility_)); | 4134 std::move(worker_context_visibility_)); |
| 4135 } | 4135 } |
| 4136 } | 4136 } |
| 4137 } | 4137 } |
| 4138 | 4138 |
| 4139 } // namespace cc | 4139 } // namespace cc |
| OLD | NEW |