| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "platform/HostWindow.h" | 34 #include "platform/HostWindow.h" |
| 35 #include "platform/geometry/DoubleRect.h" | 35 #include "platform/geometry/DoubleRect.h" |
| 36 #include "platform/geometry/FloatPoint.h" | 36 #include "platform/geometry/FloatPoint.h" |
| 37 #include "platform/geometry/LayoutRect.h" | 37 #include "platform/geometry/LayoutRect.h" |
| 38 #include "platform/graphics/GraphicsLayer.h" | 38 #include "platform/graphics/GraphicsLayer.h" |
| 39 #include "platform/scroll/MainThreadScrollingReason.h" | 39 #include "platform/scroll/MainThreadScrollingReason.h" |
| 40 #include "platform/scroll/ProgrammaticScrollAnimator.h" | 40 #include "platform/scroll/ProgrammaticScrollAnimator.h" |
| 41 #include "platform/scroll/ScrollbarTheme.h" | 41 #include "platform/scroll/ScrollbarTheme.h" |
| 42 | 42 |
| 43 #include "platform/TraceEvent.h" | 43 #include "platform/tracing/TraceEvent.h" |
| 44 | 44 |
| 45 static const int kPixelsPerLineStep = 40; | 45 static const int kPixelsPerLineStep = 40; |
| 46 static const float kMinFractionToStepWhenPaging = 0.875f; | 46 static const float kMinFractionToStepWhenPaging = 0.875f; |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 struct SameSizeAsScrollableArea { | 50 struct SameSizeAsScrollableArea { |
| 51 virtual ~SameSizeAsScrollableArea(); | 51 virtual ~SameSizeAsScrollableArea(); |
| 52 #if ENABLE(ASSERT) | 52 #if ENABLE(ASSERT) |
| 53 VerifyEagerFinalization verifyEager; | 53 VerifyEagerFinalization verifyEager; |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 std::max(0, size.height() - horizontalScrollbarHeight())); | 612 std::max(0, size.height() - horizontalScrollbarHeight())); |
| 613 } | 613 } |
| 614 | 614 |
| 615 DEFINE_TRACE(ScrollableArea) | 615 DEFINE_TRACE(ScrollableArea) |
| 616 { | 616 { |
| 617 visitor->trace(m_scrollAnimator); | 617 visitor->trace(m_scrollAnimator); |
| 618 visitor->trace(m_programmaticScrollAnimator); | 618 visitor->trace(m_programmaticScrollAnimator); |
| 619 } | 619 } |
| 620 | 620 |
| 621 } // namespace blink | 621 } // namespace blink |
| OLD | NEW |