| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 virtual bool shouldPerformScrollAnchoring() const { return false; } | 357 virtual bool shouldPerformScrollAnchoring() const { return false; } |
| 358 | 358 |
| 359 // Need to promptly let go of owned animator objects. | 359 // Need to promptly let go of owned animator objects. |
| 360 EAGERLY_FINALIZE(); | 360 EAGERLY_FINALIZE(); |
| 361 DECLARE_VIRTUAL_TRACE(); | 361 DECLARE_VIRTUAL_TRACE(); |
| 362 | 362 |
| 363 virtual void clearScrollableArea(); | 363 virtual void clearScrollableArea(); |
| 364 | 364 |
| 365 virtual ScrollAnchor* scrollAnchor() { return nullptr; } | 365 virtual ScrollAnchor* scrollAnchor() { return nullptr; } |
| 366 | 366 |
| 367 virtual void didScrollWithScrollbar(ScrollbarPart, ScrollbarOrientation) {} |
| 368 |
| 367 protected: | 369 protected: |
| 368 ScrollableArea(); | 370 ScrollableArea(); |
| 369 | 371 |
| 370 ScrollbarOrientation scrollbarOrientationFromDirection( | 372 ScrollbarOrientation scrollbarOrientationFromDirection( |
| 371 ScrollDirectionPhysical) const; | 373 ScrollDirectionPhysical) const; |
| 372 float scrollStep(ScrollGranularity, ScrollbarOrientation) const; | 374 float scrollStep(ScrollGranularity, ScrollbarOrientation) const; |
| 373 | 375 |
| 374 void setScrollOrigin(const IntPoint&); | 376 void setScrollOrigin(const IntPoint&); |
| 375 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } | 377 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } |
| 376 | 378 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 // vertical-lr / ltr NO NO | 442 // vertical-lr / ltr NO NO |
| 441 // vertical-lr / rtl NO YES | 443 // vertical-lr / rtl NO YES |
| 442 // vertical-rl / ltr YES NO | 444 // vertical-rl / ltr YES NO |
| 443 // vertical-rl / rtl YES YES | 445 // vertical-rl / rtl YES YES |
| 444 IntPoint m_scrollOrigin; | 446 IntPoint m_scrollOrigin; |
| 445 }; | 447 }; |
| 446 | 448 |
| 447 } // namespace blink | 449 } // namespace blink |
| 448 | 450 |
| 449 #endif // ScrollableArea_h | 451 #endif // ScrollableArea_h |
| OLD | NEW |