Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h

Issue 1714663002: Attempt to fix the crash in blink Scroll Animator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review feedback Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2010, 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 class Scrollbar; 45 class Scrollbar;
46 46
47 class PLATFORM_EXPORT ScrollAnimatorMac : public ScrollAnimatorBase { 47 class PLATFORM_EXPORT ScrollAnimatorMac : public ScrollAnimatorBase {
48 WILL_BE_USING_PRE_FINALIZER(ScrollAnimatorMac, dispose); 48 WILL_BE_USING_PRE_FINALIZER(ScrollAnimatorMac, dispose);
49 public: 49 public:
50 ScrollAnimatorMac(ScrollableArea*); 50 ScrollAnimatorMac(ScrollableArea*);
51 ~ScrollAnimatorMac() override; 51 ~ScrollAnimatorMac() override;
52 52
53 void dispose() override; 53 void dispose() override;
54 void clearScrollAnimator() override;
54 55
55 void immediateScrollToPointForScrollAnimation(const FloatPoint& newPosition) ; 56 void immediateScrollToPointForScrollAnimation(const FloatPoint& newPosition) ;
56 bool haveScrolledSincePageLoad() const { return m_haveScrolledSincePageLoad; } 57 bool haveScrolledSincePageLoad() const { return m_haveScrolledSincePageLoad; }
57 58
58 void updateScrollerStyle(); 59 void updateScrollerStyle();
59 60
60 bool scrollbarPaintTimerIsActive() const; 61 bool scrollbarPaintTimerIsActive() const;
61 void startScrollbarPaintTimer(); 62 void startScrollbarPaintTimer();
62 void stopScrollbarPaintTimer(); 63 void stopScrollbarPaintTimer();
63 64
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void immediateScrollTo(const FloatPoint&); 129 void immediateScrollTo(const FloatPoint&);
129 130
130 bool m_haveScrolledSincePageLoad; 131 bool m_haveScrolledSincePageLoad;
131 bool m_needsScrollerStyleUpdate; 132 bool m_needsScrollerStyleUpdate;
132 IntRect m_visibleScrollerThumbRect; 133 IntRect m_visibleScrollerThumbRect;
133 }; 134 };
134 135
135 } // namespace blink 136 } // namespace blink
136 137
137 #endif // ScrollAnimatorMac_h 138 #endif // ScrollAnimatorMac_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698