| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 HostWindow* FramelessScrollView::hostWindow() const | 75 HostWindow* FramelessScrollView::hostWindow() const |
| 76 { | 76 { |
| 77 return const_cast<FramelessScrollViewClient*>(m_client); | 77 return const_cast<FramelessScrollViewClient*>(m_client); |
| 78 } | 78 } |
| 79 | 79 |
| 80 IntRect FramelessScrollView::windowClipRect(IncludeScrollbarsInRect scrollbarInc
lusion) const | 80 IntRect FramelessScrollView::windowClipRect(IncludeScrollbarsInRect scrollbarInc
lusion) const |
| 81 { | 81 { |
| 82 IntRect clipRect = visibleContentRect(scrollbarInclusion); | 82 IntRect clipRect = visibleContentRect(scrollbarInclusion); |
| 83 if (shouldPlaceVerticalScrollbarOnLeft() && verticalScrollbar()) | 83 if (shouldPlaceVerticalScrollbarOnLeft() && verticalScrollbar() && !vertical
Scrollbar()->isOverlayScrollbar()) |
| 84 clipRect.move(verticalScrollbar()->width(), 0); | 84 clipRect.move(verticalScrollbar()->width(), 0); |
| 85 return contentsToWindow(clipRect); | 85 return contentsToWindow(clipRect); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&) | 88 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&) |
| 89 { | 89 { |
| 90 } | 90 } |
| 91 | 91 |
| 92 void FramelessScrollView::contentsResized() | 92 void FramelessScrollView::contentsResized() |
| 93 { | 93 { |
| 94 } | 94 } |
| 95 | 95 |
| 96 void FramelessScrollView::scrollbarExistenceDidChange() | 96 void FramelessScrollView::scrollbarExistenceDidChange() |
| 97 { | 97 { |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace WebCore | 100 } // namespace WebCore |
| OLD | NEW |