| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 else | 184 else |
| 185 m_verticalBarDamage.unite(rect); | 185 m_verticalBarDamage.unite(rect); |
| 186 } | 186 } |
| 187 | 187 |
| 188 void resetScrollbarDamage() | 188 void resetScrollbarDamage() |
| 189 { | 189 { |
| 190 m_verticalBarDamage = IntRect(); | 190 m_verticalBarDamage = IntRect(); |
| 191 m_horizontalBarDamage = IntRect(); | 191 m_horizontalBarDamage = IntRect(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 GraphicsLayer* layerForContainer() const; | |
| 195 virtual GraphicsLayer* layerForScrolling() const = 0; | |
| 196 virtual GraphicsLayer* layerForHorizontalScrollbar() const = 0; | |
| 197 virtual GraphicsLayer* layerForVerticalScrollbar() const = 0; | |
| 198 bool hasLayerForHorizontalScrollbar() const; | |
| 199 bool hasLayerForVerticalScrollbar() const; | |
| 200 | |
| 201 void cancelProgrammaticScrollAnimation(); | 194 void cancelProgrammaticScrollAnimation(); |
| 202 | 195 |
| 203 protected: | 196 protected: |
| 204 ScrollableArea(); | 197 ScrollableArea(); |
| 205 virtual ~ScrollableArea(); | 198 virtual ~ScrollableArea(); |
| 206 | 199 |
| 207 void setScrollOrigin(const IntPoint&); | 200 void setScrollOrigin(const IntPoint&); |
| 208 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } | 201 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } |
| 209 | 202 |
| 210 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0; | 203 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // vertical-lr / ltr NO NO | 249 // vertical-lr / ltr NO NO |
| 257 // vertical-lr / rtl NO YES | 250 // vertical-lr / rtl NO YES |
| 258 // vertical-rl / ltr YES NO | 251 // vertical-rl / ltr YES NO |
| 259 // vertical-rl / rtl YES YES | 252 // vertical-rl / rtl YES YES |
| 260 IntPoint m_scrollOrigin; | 253 IntPoint m_scrollOrigin; |
| 261 }; | 254 }; |
| 262 | 255 |
| 263 } // namespace blink | 256 } // namespace blink |
| 264 | 257 |
| 265 #endif // ScrollableArea_h | 258 #endif // ScrollableArea_h |
| OLD | NEW |