OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. | 3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 ScrollbarTheme::theme()->updateScrollbarOverlayStyle(scrollbar); | 375 ScrollbarTheme::theme()->updateScrollbarOverlayStyle(scrollbar); |
376 scrollbar->invalidate(); | 376 scrollbar->invalidate(); |
377 } | 377 } |
378 } | 378 } |
379 | 379 |
380 void ScrollableArea::invalidateScrollbar(Scrollbar* scrollbar, const IntRect& re
ct) | 380 void ScrollableArea::invalidateScrollbar(Scrollbar* scrollbar, const IntRect& re
ct) |
381 { | 381 { |
382 if (scrollbar == horizontalScrollbar()) { | 382 if (scrollbar == horizontalScrollbar()) { |
383 if (GraphicsLayer* graphicsLayer = layerForHorizontalScrollbar()) { | 383 if (GraphicsLayer* graphicsLayer = layerForHorizontalScrollbar()) { |
384 graphicsLayer->setNeedsDisplay(); | 384 graphicsLayer->setNeedsDisplay(); |
385 graphicsLayer->setContentsNeedsDisplay(); | 385 graphicsLayer->setContentsNeedsDisplay(rect); |
386 return; | 386 return; |
387 } | 387 } |
388 } else if (scrollbar == verticalScrollbar()) { | 388 } else if (scrollbar == verticalScrollbar()) { |
389 if (GraphicsLayer* graphicsLayer = layerForVerticalScrollbar()) { | 389 if (GraphicsLayer* graphicsLayer = layerForVerticalScrollbar()) { |
390 graphicsLayer->setNeedsDisplay(); | 390 graphicsLayer->setNeedsDisplay(); |
391 graphicsLayer->setContentsNeedsDisplay(); | 391 graphicsLayer->setContentsNeedsDisplay(rect); |
392 return; | 392 return; |
393 } | 393 } |
394 } | 394 } |
395 invalidateScrollbarRect(scrollbar, rect); | 395 invalidateScrollbarRect(scrollbar, rect); |
396 } | 396 } |
397 | 397 |
398 void ScrollableArea::invalidateScrollCorner(const IntRect& rect) | 398 void ScrollableArea::invalidateScrollCorner(const IntRect& rect) |
399 { | 399 { |
400 if (GraphicsLayer* graphicsLayer = layerForScrollCorner()) { | 400 if (GraphicsLayer* graphicsLayer = layerForScrollCorner()) { |
401 graphicsLayer->setNeedsDisplay(); | 401 graphicsLayer->setNeedsDisplay(); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 { | 483 { |
484 return scrollSize(orientation); | 484 return scrollSize(orientation); |
485 } | 485 } |
486 | 486 |
487 float ScrollableArea::pixelStep(ScrollbarOrientation) const | 487 float ScrollableArea::pixelStep(ScrollbarOrientation) const |
488 { | 488 { |
489 return 1; | 489 return 1; |
490 } | 490 } |
491 | 491 |
492 } // namespace blink | 492 } // namespace blink |
OLD | NEW |