| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. | 3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 } | 363 } |
| 364 | 364 |
| 365 void ScrollableArea::didAddScrollbar(Scrollbar& scrollbar, ScrollbarOrientation
orientation) | 365 void ScrollableArea::didAddScrollbar(Scrollbar& scrollbar, ScrollbarOrientation
orientation) |
| 366 { | 366 { |
| 367 if (orientation == VerticalScrollbar) | 367 if (orientation == VerticalScrollbar) |
| 368 scrollAnimator().didAddVerticalScrollbar(scrollbar); | 368 scrollAnimator().didAddVerticalScrollbar(scrollbar); |
| 369 else | 369 else |
| 370 scrollAnimator().didAddHorizontalScrollbar(scrollbar); | 370 scrollAnimator().didAddHorizontalScrollbar(scrollbar); |
| 371 | 371 |
| 372 // <rdar://problem/9797253> AppKit resets the scrollbar's style when you att
ach a scrollbar | 372 // <rdar://problem/9797253> AppKit resets the scrollbar's style when you att
ach a scrollbar |
| 373 setScrollbarOverlayStyle(scrollbarOverlayStyle()); | 373 setScrollbarOverlayStyle(getScrollbarOverlayStyle()); |
| 374 } | 374 } |
| 375 | 375 |
| 376 void ScrollableArea::willRemoveScrollbar(Scrollbar& scrollbar, ScrollbarOrientat
ion orientation) | 376 void ScrollableArea::willRemoveScrollbar(Scrollbar& scrollbar, ScrollbarOrientat
ion orientation) |
| 377 { | 377 { |
| 378 if (orientation == VerticalScrollbar) | 378 if (orientation == VerticalScrollbar) |
| 379 scrollAnimator().willRemoveVerticalScrollbar(scrollbar); | 379 scrollAnimator().willRemoveVerticalScrollbar(scrollbar); |
| 380 else | 380 else |
| 381 scrollAnimator().willRemoveHorizontalScrollbar(scrollbar); | 381 scrollAnimator().willRemoveHorizontalScrollbar(scrollbar); |
| 382 } | 382 } |
| 383 | 383 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 std::max(0, size.height() - horizontalScrollbarHeight)); | 617 std::max(0, size.height() - horizontalScrollbarHeight)); |
| 618 } | 618 } |
| 619 | 619 |
| 620 DEFINE_TRACE(ScrollableArea) | 620 DEFINE_TRACE(ScrollableArea) |
| 621 { | 621 { |
| 622 visitor->trace(m_scrollAnimator); | 622 visitor->trace(m_scrollAnimator); |
| 623 visitor->trace(m_programmaticScrollAnimator); | 623 visitor->trace(m_programmaticScrollAnimator); |
| 624 } | 624 } |
| 625 | 625 |
| 626 } // namespace blink | 626 } // namespace blink |
| OLD | NEW |