| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Apple 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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 GraphicsContext& context, | 896 GraphicsContext& context, |
| 897 const IntRect& clip) { | 897 const IntRect& clip) { |
| 898 // Frame scrollbars are painted in the space of the containing frame, not the | 898 // Frame scrollbars are painted in the space of the containing frame, not the |
| 899 // local space of the scrollbar. | 899 // local space of the scrollbar. |
| 900 const IntPoint& paintOffset = scrollbar->frameRect().location(); | 900 const IntPoint& paintOffset = scrollbar->frameRect().location(); |
| 901 IntRect transformedClip = clip; | 901 IntRect transformedClip = clip; |
| 902 transformedClip.moveBy(paintOffset); | 902 transformedClip.moveBy(paintOffset); |
| 903 | 903 |
| 904 AffineTransform translation; | 904 AffineTransform translation; |
| 905 translation.translate(-paintOffset.x(), -paintOffset.y()); | 905 translation.translate(-paintOffset.x(), -paintOffset.y()); |
| 906 TransformRecorder transformRecorder(context, *scrollbar, translation); | 906 TransformRecorder transformRecorder( |
| 907 context, translation, scrollbar->visualRect(), scrollbar->debugName(), |
| 908 scrollbar->paintedOutputOfObjectHasNoEffectRegardlessOfSize()); |
| 907 scrollbar->paint(context, CullRect(transformedClip)); | 909 scrollbar->paint(context, CullRect(transformedClip)); |
| 908 } | 910 } |
| 909 | 911 |
| 910 IntRect PaintLayerCompositor::computeInterestRect( | 912 IntRect PaintLayerCompositor::computeInterestRect( |
| 911 const GraphicsLayer* graphicsLayer, | 913 const GraphicsLayer* graphicsLayer, |
| 912 const IntRect&) const { | 914 const IntRect&) const { |
| 913 return enclosingIntRect(FloatRect(FloatPoint(), graphicsLayer->size())); | 915 return enclosingIntRect(FloatRect(FloatPoint(), graphicsLayer->size())); |
| 914 } | 916 } |
| 915 | 917 |
| 916 void PaintLayerCompositor::paintContents(const GraphicsLayer* graphicsLayer, | 918 void PaintLayerCompositor::paintContents(const GraphicsLayer* graphicsLayer, |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1348 } else if (graphicsLayer == m_scrollLayer.get()) { | 1350 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 1349 name = "Frame Scrolling Layer"; | 1351 name = "Frame Scrolling Layer"; |
| 1350 } else { | 1352 } else { |
| 1351 ASSERT_NOT_REACHED(); | 1353 ASSERT_NOT_REACHED(); |
| 1352 } | 1354 } |
| 1353 | 1355 |
| 1354 return name; | 1356 return name; |
| 1355 } | 1357 } |
| 1356 | 1358 |
| 1357 } // namespace blink | 1359 } // namespace blink |
| OLD | NEW |