Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: Source/modules/accessibility/AXScrollView.cpp

Issue 952273006: Make the constructor of a LayoutRect from an IntRect explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXLayoutObject.cpp ('k') | Source/modules/accessibility/AXScrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698