| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 m_verticalScrollbar = addChildScrollbar(m_scrollView->verticalScrollbar(
)); | 110 m_verticalScrollbar = addChildScrollbar(m_scrollView->verticalScrollbar(
)); |
| 111 else if (!m_scrollView->verticalScrollbar() && m_verticalScrollbar) { | 111 else if (!m_scrollView->verticalScrollbar() && m_verticalScrollbar) { |
| 112 removeChildScrollbar(m_verticalScrollbar.get()); | 112 removeChildScrollbar(m_verticalScrollbar.get()); |
| 113 m_verticalScrollbar = 0; | 113 m_verticalScrollbar = 0; |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 | 116 |
| 117 void AccessibilityScrollView::removeChildScrollbar(AccessibilityObject* scrollba
r) | 117 void AccessibilityScrollView::removeChildScrollbar(AccessibilityObject* scrollba
r) |
| 118 { | 118 { |
| 119 size_t pos = m_children.find(scrollbar); | 119 size_t pos = m_children.find(scrollbar); |
| 120 if (pos != WTF::notFound) { | 120 if (pos != kNotFound) { |
| 121 m_children[pos]->detachFromParent(); | 121 m_children[pos]->detachFromParent(); |
| 122 m_children.remove(pos); | 122 m_children.remove(pos); |
| 123 } | 123 } |
| 124 } | 124 } |
| 125 | 125 |
| 126 AccessibilityScrollbar* AccessibilityScrollView::addChildScrollbar(Scrollbar* sc
rollbar) | 126 AccessibilityScrollbar* AccessibilityScrollView::addChildScrollbar(Scrollbar* sc
rollbar) |
| 127 { | 127 { |
| 128 if (!scrollbar) | 128 if (!scrollbar) |
| 129 return 0; | 129 return 0; |
| 130 | 130 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 return m_scrollView; | 233 return m_scrollView; |
| 234 } | 234 } |
| 235 | 235 |
| 236 void AccessibilityScrollView::scrollTo(const IntPoint& point) const | 236 void AccessibilityScrollView::scrollTo(const IntPoint& point) const |
| 237 { | 237 { |
| 238 if (m_scrollView) | 238 if (m_scrollView) |
| 239 m_scrollView->setScrollPosition(point); | 239 m_scrollView->setScrollPosition(point); |
| 240 } | 240 } |
| 241 | 241 |
| 242 } // namespace WebCore | 242 } // namespace WebCore |
| OLD | NEW |