| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 void Scrollbar::setFrameRect(const IntRect& frameRect) | 103 void Scrollbar::setFrameRect(const IntRect& frameRect) |
| 104 { | 104 { |
| 105 if (frameRect == this->frameRect()) | 105 if (frameRect == this->frameRect()) |
| 106 return; | 106 return; |
| 107 | 107 |
| 108 Widget::setFrameRect(frameRect); | 108 Widget::setFrameRect(frameRect); |
| 109 setNeedsPaintInvalidation(AllParts); | 109 setNeedsPaintInvalidation(AllParts); |
| 110 } | 110 } |
| 111 | 111 |
| 112 ScrollbarOverlayStyle Scrollbar::scrollbarOverlayStyle() const | 112 ScrollbarOverlayStyle Scrollbar::getScrollbarOverlayStyle() const |
| 113 { | 113 { |
| 114 return m_scrollableArea ? m_scrollableArea->scrollbarOverlayStyle() : Scroll
barOverlayStyleDefault; | 114 return m_scrollableArea ? m_scrollableArea->getScrollbarOverlayStyle() : Scr
ollbarOverlayStyleDefault; |
| 115 } | 115 } |
| 116 | 116 |
| 117 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const | 117 void Scrollbar::getTickmarks(Vector<IntRect>& tickmarks) const |
| 118 { | 118 { |
| 119 if (m_scrollableArea) | 119 if (m_scrollableArea) |
| 120 m_scrollableArea->getTickmarks(tickmarks); | 120 m_scrollableArea->getTickmarks(tickmarks); |
| 121 } | 121 } |
| 122 | 122 |
| 123 bool Scrollbar::isScrollableAreaActive() const | 123 bool Scrollbar::isScrollableAreaActive() const |
| 124 { | 124 { |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 invalidParts = AllParts; | 580 invalidParts = AllParts; |
| 581 if (invalidParts & ~ThumbPart) | 581 if (invalidParts & ~ThumbPart) |
| 582 m_trackNeedsRepaint = true; | 582 m_trackNeedsRepaint = true; |
| 583 if (invalidParts & ThumbPart) | 583 if (invalidParts & ThumbPart) |
| 584 m_thumbNeedsRepaint = true; | 584 m_thumbNeedsRepaint = true; |
| 585 if (m_scrollableArea) | 585 if (m_scrollableArea) |
| 586 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); | 586 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); |
| 587 } | 587 } |
| 588 | 588 |
| 589 } // namespace blink | 589 } // namespace blink |
| OLD | NEW |