OLD | NEW |
1 | |
2 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
3 // 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 |
4 // found in the LICENSE file. | 3 // found in the LICENSE file. |
5 | 4 |
6 #include "cc/layers/scrollbar_layer.h" | 5 #include "cc/layers/scrollbar_layer.h" |
7 | 6 |
8 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
11 #include "cc/layers/scrollbar_layer_impl.h" | 10 #include "cc/layers/scrollbar_layer_impl.h" |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 thumb_size = gfx::Size(scrollbar_->ThumbLength(), | 340 thumb_size = gfx::Size(scrollbar_->ThumbLength(), |
342 scrollbar_->ThumbThickness()); | 341 scrollbar_->ThumbThickness()); |
343 } else { | 342 } else { |
344 thumb_size = gfx::Size(scrollbar_->ThumbThickness(), | 343 thumb_size = gfx::Size(scrollbar_->ThumbThickness(), |
345 scrollbar_->ThumbLength()); | 344 scrollbar_->ThumbLength()); |
346 } | 345 } |
347 return ScrollbarLayerRectToContentRect(gfx::Rect(thumb_size)); | 346 return ScrollbarLayerRectToContentRect(gfx::Rect(thumb_size)); |
348 } | 347 } |
349 | 348 |
350 } // namespace cc | 349 } // namespace cc |
OLD | NEW |