OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "config.h" | 5 #include "config.h" |
6 #include "WebScrollbarLayerImpl.h" | 6 #include "WebScrollbarLayerImpl.h" |
7 | 7 |
8 #include "ScrollbarLayerChromium.h" | 8 #include "ScrollbarLayerChromium.h" |
9 #include "WebLayerImpl.h" | 9 #include "WebLayerImpl.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 void WebScrollbarLayerImpl::setScrollLayer(WebLayer* layer) | 35 void WebScrollbarLayerImpl::setScrollLayer(WebLayer* layer) |
36 { | 36 { |
37 int id = layer ? static_cast<WebLayerImpl*>(layer)->layer()->id() : 0; | 37 int id = layer ? static_cast<WebLayerImpl*>(layer)->layer()->id() : 0; |
38 static_cast<ScrollbarLayerChromium*>(m_layer->layer())->setScrollLayerId(id)
; | 38 static_cast<ScrollbarLayerChromium*>(m_layer->layer())->setScrollLayerId(id)
; |
39 } | 39 } |
40 | 40 |
41 | 41 |
42 | 42 |
43 } // namespace WebKit | 43 } // namespace WebKit |
OLD | NEW |