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

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 4 years, 7 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) 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 void invalidate() override { setNeedsPaintInvalidation(AllParts); } 225 void invalidate() override { setNeedsPaintInvalidation(AllParts); }
226 void invalidateRect(const IntRect&) override { setNeedsPaintInvalidation(All Parts); } 226 void invalidateRect(const IntRect&) override { setNeedsPaintInvalidation(All Parts); }
227 227
228 float scrollableAreaCurrentPos() const; 228 float scrollableAreaCurrentPos() const;
229 float scrollableAreaTargetPos() const; 229 float scrollableAreaTargetPos() const;
230 bool thumbWillBeUnderMouse() const; 230 bool thumbWillBeUnderMouse() const;
231 231
232 bool m_trackNeedsRepaint; 232 bool m_trackNeedsRepaint;
233 bool m_thumbNeedsRepaint; 233 bool m_thumbNeedsRepaint;
234
235 DISPLAY_ITEM_CACHE_STATUS_IMPLEMENTATION
234 }; 236 };
235 237
236 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); 238 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar());
237 239
238 } // namespace blink 240 } // namespace blink
239 241
240 #endif // Scrollbar_h 242 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698