OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 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 * 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // The client needs to implement these in order to be aware of layout effect
s | 154 // The client needs to implement these in order to be aware of layout effect
s |
155 // like CSS transforms. | 155 // like CSS transforms. |
156 virtual IntRect convertFromScrollbarToContainingWidget(const Scrollbar* scro
llbar, const IntRect& scrollbarRect) const | 156 virtual IntRect convertFromScrollbarToContainingWidget(const Scrollbar* scro
llbar, const IntRect& scrollbarRect) const |
157 { | 157 { |
158 return scrollbar->Widget::convertToContainingWidget(scrollbarRect); | 158 return scrollbar->Widget::convertToContainingWidget(scrollbarRect); |
159 } | 159 } |
160 virtual IntRect convertFromContainingWidgetToScrollbar(const Scrollbar* scro
llbar, const IntRect& parentRect) const | 160 virtual IntRect convertFromContainingWidgetToScrollbar(const Scrollbar* scro
llbar, const IntRect& parentRect) const |
161 { | 161 { |
162 return scrollbar->Widget::convertFromContainingWidget(parentRect); | 162 return scrollbar->Widget::convertFromContainingWidget(parentRect); |
163 } | 163 } |
| 164 virtual FloatRect convertFromScrollbarToContainingWidget(const Scrollbar* sc
rollbar, const FloatRect& scrollbarRect) const |
| 165 { |
| 166 return scrollbar->Widget::convertToContainingWidget(scrollbarRect); |
| 167 } |
164 virtual IntPoint convertFromScrollbarToContainingWidget(const Scrollbar* scr
ollbar, const IntPoint& scrollbarPoint) const | 168 virtual IntPoint convertFromScrollbarToContainingWidget(const Scrollbar* scr
ollbar, const IntPoint& scrollbarPoint) const |
165 { | 169 { |
166 return scrollbar->Widget::convertToContainingWidget(scrollbarPoint); | 170 return scrollbar->Widget::convertToContainingWidget(scrollbarPoint); |
167 } | 171 } |
168 virtual IntPoint convertFromContainingWidgetToScrollbar(const Scrollbar* scr
ollbar, const IntPoint& parentPoint) const | 172 virtual IntPoint convertFromContainingWidgetToScrollbar(const Scrollbar* scr
ollbar, const IntPoint& parentPoint) const |
169 { | 173 { |
170 return scrollbar->Widget::convertFromContainingWidget(parentPoint); | 174 return scrollbar->Widget::convertFromContainingWidget(parentPoint); |
171 } | 175 } |
172 | 176 |
173 virtual Scrollbar* horizontalScrollbar() const { return 0; } | 177 virtual Scrollbar* horizontalScrollbar() const { return 0; } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 // vertical-lr / ltr NO NO | 349 // vertical-lr / ltr NO NO |
346 // vertical-lr / rtl NO YES | 350 // vertical-lr / rtl NO YES |
347 // vertical-rl / ltr YES NO | 351 // vertical-rl / ltr YES NO |
348 // vertical-rl / rtl YES YES | 352 // vertical-rl / rtl YES YES |
349 IntPoint m_scrollOrigin; | 353 IntPoint m_scrollOrigin; |
350 }; | 354 }; |
351 | 355 |
352 } // namespace blink | 356 } // namespace blink |
353 | 357 |
354 #endif // ScrollableArea_h | 358 #endif // ScrollableArea_h |
OLD | NEW |