OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 2009, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 h->invalidateContentsAndRootView(rect); | 78 h->invalidateContentsAndRootView(rect); |
79 } | 79 } |
80 | 80 |
81 HostWindow* FramelessScrollView::hostWindow() const | 81 HostWindow* FramelessScrollView::hostWindow() const |
82 { | 82 { |
83 return const_cast<FramelessScrollViewClient*>(m_client); | 83 return const_cast<FramelessScrollViewClient*>(m_client); |
84 } | 84 } |
85 | 85 |
86 IntRect FramelessScrollView::windowClipRect(bool clipToContents) const | 86 IntRect FramelessScrollView::windowClipRect(bool clipToContents) const |
87 { | 87 { |
88 return contentsToWindow(visibleContentRect(clipToContents ? ExcludeScrollbar
s : IncludeScrollbars)); | 88 IntRect clipRect = visibleContentRect(clipToContents ? ExcludeScrollbars : I
ncludeScrollbars); |
| 89 if (shouldPlaceVerticalScrollbarOnLeft() && verticalScrollbar()) |
| 90 clipRect.move(verticalScrollbar()->width(), 0); |
| 91 return contentsToWindow(clipRect); |
89 } | 92 } |
90 | 93 |
91 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&) | 94 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&) |
92 { | 95 { |
93 } | 96 } |
94 | 97 |
95 void FramelessScrollView::contentsResized() | 98 void FramelessScrollView::contentsResized() |
96 { | 99 { |
97 } | 100 } |
98 | 101 |
99 void FramelessScrollView::scrollbarExistenceDidChange() | 102 void FramelessScrollView::scrollbarExistenceDidChange() |
100 { | 103 { |
101 } | 104 } |
102 | 105 |
103 } // namespace WebCore | 106 } // namespace WebCore |
OLD | NEW |