OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 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 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3290 ScrollableAreaPainter(*scrollableArea) | 3290 ScrollableAreaPainter(*scrollableArea) |
3291 .paintResizer(builder.context(), -scrollCornerAndResizerLocation, | 3291 .paintResizer(builder.context(), -scrollCornerAndResizerLocation, |
3292 cullRect); | 3292 cullRect); |
3293 } | 3293 } |
3294 // Replay the painted scrollbar content with the GraphicsLayer backing as the | 3294 // Replay the painted scrollbar content with the GraphicsLayer backing as the |
3295 // DisplayItemClient in order for the resulting DrawingDisplayItem to produce | 3295 // DisplayItemClient in order for the resulting DrawingDisplayItem to produce |
3296 // the correct visualRect (i.e., the bounds of the involved GraphicsLayer). | 3296 // the correct visualRect (i.e., the bounds of the involved GraphicsLayer). |
3297 DrawingRecorder drawingRecorder(context, *graphicsLayer, | 3297 DrawingRecorder drawingRecorder(context, *graphicsLayer, |
3298 DisplayItem::kScrollbarCompositedScrollbar, | 3298 DisplayItem::kScrollbarCompositedScrollbar, |
3299 layerBounds); | 3299 layerBounds); |
3300 context.canvas()->drawPicture(builder.endRecording()); | 3300 context.canvas()->PlaybackPaintRecord(builder.endRecording()); |
3301 } | 3301 } |
3302 | 3302 |
3303 bool CompositedLayerMapping::isScrollableAreaLayer( | 3303 bool CompositedLayerMapping::isScrollableAreaLayer( |
3304 const GraphicsLayer* graphicsLayer) const { | 3304 const GraphicsLayer* graphicsLayer) const { |
3305 return graphicsLayer == layerForHorizontalScrollbar() || | 3305 return graphicsLayer == layerForHorizontalScrollbar() || |
3306 graphicsLayer == layerForVerticalScrollbar() || | 3306 graphicsLayer == layerForVerticalScrollbar() || |
3307 graphicsLayer == layerForScrollCorner(); | 3307 graphicsLayer == layerForScrollCorner(); |
3308 } | 3308 } |
3309 | 3309 |
3310 bool CompositedLayerMapping::isTrackingRasterInvalidations() const { | 3310 bool CompositedLayerMapping::isTrackingRasterInvalidations() const { |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3498 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { | 3498 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { |
3499 name = "Decoration Layer"; | 3499 name = "Decoration Layer"; |
3500 } else { | 3500 } else { |
3501 ASSERT_NOT_REACHED(); | 3501 ASSERT_NOT_REACHED(); |
3502 } | 3502 } |
3503 | 3503 |
3504 return name; | 3504 return name; |
3505 } | 3505 } |
3506 | 3506 |
3507 } // namespace blink | 3507 } // namespace blink |
OLD | NEW |