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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 return 0; | 180 return 0; |
181 | 181 |
182 if (m_horizontalScrollbar && m_horizontalScrollbar->elementRect().contains(p
oint)) | 182 if (m_horizontalScrollbar && m_horizontalScrollbar->elementRect().contains(p
oint)) |
183 return m_horizontalScrollbar.get(); | 183 return m_horizontalScrollbar.get(); |
184 if (m_verticalScrollbar && m_verticalScrollbar->elementRect().contains(point
)) | 184 if (m_verticalScrollbar && m_verticalScrollbar->elementRect().contains(point
)) |
185 return m_verticalScrollbar.get(); | 185 return m_verticalScrollbar.get(); |
186 | 186 |
187 return webArea->accessibilityHitTest(point); | 187 return webArea->accessibilityHitTest(point); |
188 } | 188 } |
189 | 189 |
190 LayoutRect AccessibilityScrollView::elementRect() const | 190 LayoutRect AccessibilityScrollView::elementRect() |
191 { | 191 { |
192 if (!m_scrollView) | 192 if (!m_scrollView) |
193 return LayoutRect(); | 193 return LayoutRect(); |
194 | 194 |
195 return m_scrollView->frameRect(); | 195 return m_scrollView->frameRect(); |
196 } | 196 } |
197 | 197 |
198 FrameView* AccessibilityScrollView::documentFrameView() const | 198 FrameView* AccessibilityScrollView::documentFrameView() const |
199 { | 199 { |
200 if (!m_scrollView || !m_scrollView->isFrameView()) | 200 if (!m_scrollView || !m_scrollView->isFrameView()) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 return m_scrollView; | 232 return m_scrollView; |
233 } | 233 } |
234 | 234 |
235 void AccessibilityScrollView::scrollTo(const IntPoint& point) const | 235 void AccessibilityScrollView::scrollTo(const IntPoint& point) const |
236 { | 236 { |
237 if (m_scrollView) | 237 if (m_scrollView) |
238 m_scrollView->setScrollPosition(point); | 238 m_scrollView->setScrollPosition(point); |
239 } | 239 } |
240 | 240 |
241 } // namespace WebCore | 241 } // namespace WebCore |
OLD | NEW |