OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "core/layout/LayoutScrollbarPart.h" | 26 #include "core/layout/LayoutScrollbarPart.h" |
27 | 27 |
28 #include "core/frame/FrameView.h" | 28 #include "core/frame/FrameView.h" |
29 #include "core/frame/UseCounter.h" | 29 #include "core/frame/UseCounter.h" |
30 #include "core/layout/LayoutScrollbar.h" | 30 #include "core/layout/LayoutScrollbar.h" |
31 #include "core/layout/LayoutScrollbarTheme.h" | 31 #include "core/layout/LayoutScrollbarTheme.h" |
32 #include "core/layout/LayoutView.h" | 32 #include "core/layout/LayoutView.h" |
33 #include "core/paint/PaintLayerScrollableArea.h" | |
34 #include "platform/LengthFunctions.h" | 33 #include "platform/LengthFunctions.h" |
35 | 34 |
36 namespace blink { | 35 namespace blink { |
37 | 36 |
38 LayoutScrollbarPart::LayoutScrollbarPart(ScrollableArea* scrollableArea, LayoutS
crollbar* scrollbar, ScrollbarPart part) | 37 LayoutScrollbarPart::LayoutScrollbarPart(ScrollableArea* scrollableArea, LayoutS
crollbar* scrollbar, ScrollbarPart part) |
39 : LayoutBlock(nullptr) | 38 : LayoutBlock(nullptr) |
40 , m_scrollableArea(scrollableArea) | 39 , m_scrollableArea(scrollableArea) |
41 , m_scrollbar(scrollbar) | 40 , m_scrollbar(scrollbar) |
42 , m_part(part) | 41 , m_part(part) |
43 { | 42 { |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 } | 217 } |
219 | 218 |
220 LayoutRect LayoutScrollbarPart::visualRect() const | 219 LayoutRect LayoutScrollbarPart::visualRect() const |
221 { | 220 { |
222 // This returns the combined bounds of all scrollbar parts, which is suffici
ent for correctness | 221 // This returns the combined bounds of all scrollbar parts, which is suffici
ent for correctness |
223 // but not as tight as it could be. | 222 // but not as tight as it could be. |
224 return m_scrollableArea->visualRectForScrollbarParts(); | 223 return m_scrollableArea->visualRectForScrollbarParts(); |
225 } | 224 } |
226 | 225 |
227 } // namespace blink | 226 } // namespace blink |
OLD | NEW |