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

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

Issue 2421573002: Caches the scrollbar's thickness for the given theme and control size (Closed)
Patch Set: CL for src perf tryjob to run blink_perf.layout benchmark on all-mac platform(s) Created 4 years, 2 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 void invalidate() override { setNeedsPaintInvalidation(AllParts); } 243 void invalidate() override { setNeedsPaintInvalidation(AllParts); }
244 void invalidateRect(const IntRect&) override { 244 void invalidateRect(const IntRect&) override {
245 setNeedsPaintInvalidation(AllParts); 245 setNeedsPaintInvalidation(AllParts);
246 } 246 }
247 247
248 float scrollableAreaCurrentPos() const; 248 float scrollableAreaCurrentPos() const;
249 float scrollableAreaTargetPos() const; 249 float scrollableAreaTargetPos() const;
250 bool thumbWillBeUnderMouse() const; 250 bool thumbWillBeUnderMouse() const;
251 251
252 int m_themeScrollbarThickness;
252 bool m_trackNeedsRepaint; 253 bool m_trackNeedsRepaint;
253 bool m_thumbNeedsRepaint; 254 bool m_thumbNeedsRepaint;
254 }; 255 };
255 256
256 DEFINE_TYPE_CASTS(Scrollbar, 257 DEFINE_TYPE_CASTS(Scrollbar,
257 Widget, 258 Widget,
258 widget, 259 widget,
259 widget->isScrollbar(), 260 widget->isScrollbar(),
260 widget.isScrollbar()); 261 widget.isScrollbar());
261 262
262 } // namespace blink 263 } // namespace blink
263 264
264 #endif // Scrollbar_h 265 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698