| OLD | NEW |
| 1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
| 2 // All rights reserved. | 2 // 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 bool FramelessScrollView::isActive() const | 52 bool FramelessScrollView::isActive() const |
| 53 { | 53 { |
| 54 // FIXME | 54 // FIXME |
| 55 return true; | 55 return true; |
| 56 } | 56 } |
| 57 | 57 |
| 58 void FramelessScrollView::invalidateRect(const IntRect& rect) | 58 void FramelessScrollView::invalidateRect(const IntRect& rect) |
| 59 { | 59 { |
| 60 if (HostWindow* h = hostWindow()) | 60 if (HostWindow* h = hostWindow()) |
| 61 h->repaint(contentsToWindow(rect), true); | 61 h->repaint(rect, true); |
| 62 } | 62 } |
| 63 | 63 |
| 64 HostWindow* FramelessScrollView::hostWindow() const | 64 HostWindow* FramelessScrollView::hostWindow() const |
| 65 { | 65 { |
| 66 return const_cast<FramelessScrollViewClient*>(m_client); | 66 return const_cast<FramelessScrollViewClient*>(m_client); |
| 67 } | 67 } |
| 68 | 68 |
| 69 IntRect FramelessScrollView::windowClipRect(bool clipToContents) const | 69 IntRect FramelessScrollView::windowClipRect(bool clipToContents) const |
| 70 { | 70 { |
| 71 return contentsToWindow(visibleContentRect(!clipToContents)); | 71 return contentsToWindow(visibleContentRect(!clipToContents)); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect& damageR
ect) | 74 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect& damageR
ect) |
| 75 { | 75 { |
| 76 } | 76 } |
| 77 | 77 |
| 78 void FramelessScrollView::contentsResized() | 78 void FramelessScrollView::contentsResized() |
| 79 { | 79 { |
| 80 } | 80 } |
| 81 | 81 |
| 82 void FramelessScrollView::visibleContentsResized() | 82 void FramelessScrollView::visibleContentsResized() |
| 83 { | 83 { |
| 84 } | 84 } |
| 85 | 85 |
| 86 } | 86 } |
| OLD | NEW |