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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.h

Issue 1508223005: Client side display item cache flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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) 2004, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 int m_documentDragPos; 193 int m_documentDragPos;
194 194
195 bool m_enabled; 195 bool m_enabled;
196 196
197 Timer<Scrollbar> m_scrollTimer; 197 Timer<Scrollbar> m_scrollTimer;
198 bool m_overlapsResizer; 198 bool m_overlapsResizer;
199 199
200 float m_elasticOverscroll; 200 float m_elasticOverscroll;
201 201
202 private: 202 private:
203 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION
204
203 bool isScrollbar() const override { return true; } 205 bool isScrollbar() const override { return true; }
204 206
205 void invalidate() override { setNeedsPaintInvalidation(); } 207 void invalidate() override { setNeedsPaintInvalidation(); }
206 void invalidateRect(const IntRect&) override { setNeedsPaintInvalidation(); } 208 void invalidateRect(const IntRect&) override { setNeedsPaintInvalidation(); }
207 209
208 float scrollableAreaCurrentPos() const; 210 float scrollableAreaCurrentPos() const;
209 211
210 void updateThumbPosition(); 212 void updateThumbPosition();
211 void updateThumbProportion(); 213 void updateThumbProportion();
212 214
213 bool m_trackNeedsRepaint; 215 bool m_trackNeedsRepaint;
214 bool m_thumbNeedsRepaint; 216 bool m_thumbNeedsRepaint;
215 }; 217 };
216 218
217 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); 219 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar());
218 220
219 } // namespace blink 221 } // namespace blink
220 222
221 #endif // Scrollbar_h 223 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698