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

Side by Side Diff: cc/blink/web_scrollbar_layer_impl.cc

Issue 2866733002: Remove owning_id from EffectNode and replace it by an opaque stable_id (Closed)
Patch Set: none Created 3 years, 7 months 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 | « cc/blink/web_scrollbar_layer_impl.h ('k') | cc/input/scrollbar_animation_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/blink/web_scrollbar_layer_impl.h" 5 #include "cc/blink/web_scrollbar_layer_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/blink/scrollbar_impl.h" 10 #include "cc/blink/scrollbar_impl.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 return layer_.get(); 68 return layer_.get();
69 } 69 }
70 70
71 void WebScrollbarLayerImpl::SetScrollLayer(blink::WebLayer* layer) { 71 void WebScrollbarLayerImpl::SetScrollLayer(blink::WebLayer* layer) {
72 cc::Layer* scroll_layer = 72 cc::Layer* scroll_layer =
73 layer ? static_cast<WebLayerImpl*>(layer)->layer() : nullptr; 73 layer ? static_cast<WebLayerImpl*>(layer)->layer() : nullptr;
74 layer_->layer()->ToScrollbarLayer()->SetScrollElementId( 74 layer_->layer()->ToScrollbarLayer()->SetScrollElementId(
75 scroll_layer ? scroll_layer->element_id() : cc::ElementId()); 75 scroll_layer ? scroll_layer->element_id() : cc::ElementId());
76 } 76 }
77 77
78 // This is not the same as scroll_element_id. scroll_elent_id is the
79 // ElementId for the scrolling contents, not the scrollbar itself.
80 void WebScrollbarLayerImpl::SetElementId(const cc::ElementId& element_id) {
81 layer_->SetElementId(element_id);
82 }
83
78 } // namespace cc_blink 84 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_scrollbar_layer_impl.h ('k') | cc/input/scrollbar_animation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698