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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 return m_verticalScrollbar.get(); | 199 return m_verticalScrollbar.get(); |
200 | 200 |
201 return webArea->accessibilityHitTest(point); | 201 return webArea->accessibilityHitTest(point); |
202 } | 202 } |
203 | 203 |
204 LayoutRect AXScrollView::elementRect() const | 204 LayoutRect AXScrollView::elementRect() const |
205 { | 205 { |
206 if (!m_scrollView) | 206 if (!m_scrollView) |
207 return LayoutRect(); | 207 return LayoutRect(); |
208 | 208 |
209 return m_scrollView->frameRect(); | 209 return LayoutRect(m_scrollView->frameRect()); |
210 } | 210 } |
211 | 211 |
212 FrameView* AXScrollView::documentFrameView() const | 212 FrameView* AXScrollView::documentFrameView() const |
213 { | 213 { |
214 if (!m_scrollView || !m_scrollView->isFrameView()) | 214 if (!m_scrollView || !m_scrollView->isFrameView()) |
215 return 0; | 215 return 0; |
216 | 216 |
217 return m_scrollView; | 217 return m_scrollView; |
218 } | 218 } |
219 | 219 |
(...skipping 27 matching lines...) Expand all Loading... |
247 return m_scrollView; | 247 return m_scrollView; |
248 } | 248 } |
249 | 249 |
250 void AXScrollView::scrollTo(const IntPoint& point) const | 250 void AXScrollView::scrollTo(const IntPoint& point) const |
251 { | 251 { |
252 if (m_scrollView) | 252 if (m_scrollView) |
253 m_scrollView->setScrollPosition(point); | 253 m_scrollView->setScrollPosition(point); |
254 } | 254 } |
255 | 255 |
256 } // namespace blink | 256 } // namespace blink |
OLD | NEW |