| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 { | 98 { |
| 99 if (m_scrollableArea) | 99 if (m_scrollableArea) |
| 100 m_scrollableArea->getTickmarks(tickmarks); | 100 m_scrollableArea->getTickmarks(tickmarks); |
| 101 } | 101 } |
| 102 | 102 |
| 103 bool Scrollbar::isScrollableAreaActive() const | 103 bool Scrollbar::isScrollableAreaActive() const |
| 104 { | 104 { |
| 105 return m_scrollableArea && m_scrollableArea->isActive(); | 105 return m_scrollableArea && m_scrollableArea->isActive(); |
| 106 } | 106 } |
| 107 | 107 |
| 108 bool Scrollbar::isScrollViewScrollbar() const | |
| 109 { | |
| 110 return m_scrollableArea && m_scrollableArea->isScrollViewScrollbar(this); | |
| 111 } | |
| 112 | |
| 113 bool Scrollbar::isLeftSideVerticalScrollbar() const | 108 bool Scrollbar::isLeftSideVerticalScrollbar() const |
| 114 { | 109 { |
| 115 if (m_orientation == VerticalScrollbar && m_scrollableArea) | 110 if (m_orientation == VerticalScrollbar && m_scrollableArea) |
| 116 return m_scrollableArea->shouldPlaceVerticalScrollbarOnLeft(); | 111 return m_scrollableArea->shouldPlaceVerticalScrollbarOnLeft(); |
| 117 return false; | 112 return false; |
| 118 } | 113 } |
| 119 | 114 |
| 120 void Scrollbar::offsetDidChange() | 115 void Scrollbar::offsetDidChange() |
| 121 { | 116 { |
| 122 ASSERT(m_scrollableArea); | 117 ASSERT(m_scrollableArea); |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 if (!m_scrollableArea) | 527 if (!m_scrollableArea) |
| 533 return 0; | 528 return 0; |
| 534 | 529 |
| 535 if (m_orientation == HorizontalScrollbar) | 530 if (m_orientation == HorizontalScrollbar) |
| 536 return m_scrollableArea->scrollPosition().x() - m_scrollableArea->minimu
mScrollPosition().x(); | 531 return m_scrollableArea->scrollPosition().x() - m_scrollableArea->minimu
mScrollPosition().x(); |
| 537 | 532 |
| 538 return m_scrollableArea->scrollPosition().y() - m_scrollableArea->minimumScr
ollPosition().y(); | 533 return m_scrollableArea->scrollPosition().y() - m_scrollableArea->minimumScr
ollPosition().y(); |
| 539 } | 534 } |
| 540 | 535 |
| 541 } // namespace blink | 536 } // namespace blink |
| OLD | NEW |