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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebScrollbarThemeClientImpl.cpp

Issue 1458703010: Mac: Don't repaint scrollbars every frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master2
Patch Set: Rebase and resolve 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 float WebScrollbarThemeClientImpl::elasticOverscroll() const 227 float WebScrollbarThemeClientImpl::elasticOverscroll() const
228 { 228 {
229 return m_scrollbar->elasticOverscroll(); 229 return m_scrollbar->elasticOverscroll();
230 } 230 }
231 231
232 void WebScrollbarThemeClientImpl::setElasticOverscroll(float elasticOverscroll) 232 void WebScrollbarThemeClientImpl::setElasticOverscroll(float elasticOverscroll)
233 { 233 {
234 return m_scrollbar->setElasticOverscroll(elasticOverscroll); 234 return m_scrollbar->setElasticOverscroll(elasticOverscroll);
235 } 235 }
236 236
237 bool WebScrollbarThemeClientImpl::trackNeedsRepaint() const
238 {
239 return true;
240 }
241
242 void WebScrollbarThemeClientImpl::setTrackNeedsRepaint(bool)
243 {
244 ASSERT_NOT_REACHED();
245 }
246
247 bool WebScrollbarThemeClientImpl::thumbNeedsRepaint() const
248 {
249 return true;
250 }
251
252 void WebScrollbarThemeClientImpl::setThumbNeedsRepaint(bool)
253 {
254 ASSERT_NOT_REACHED();
255 }
256
237 DisplayItemClient WebScrollbarThemeClientImpl::displayItemClient() const 257 DisplayItemClient WebScrollbarThemeClientImpl::displayItemClient() const
238 { 258 {
239 ASSERT_NOT_REACHED(); 259 ASSERT_NOT_REACHED();
240 return toDisplayItemClient(this); 260 return toDisplayItemClient(this);
241 } 261 }
242 262
243 String WebScrollbarThemeClientImpl::debugName() const 263 String WebScrollbarThemeClientImpl::debugName() const
244 { 264 {
245 return "WebScrollbarThemeClientImpl"; 265 return "WebScrollbarThemeClientImpl";
246 } 266 }
247 267
248 } // namespace blink 268 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698