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 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2084 | 2084 |
2085 // Convert from ancestor to local coordinates. | 2085 // Convert from ancestor to local coordinates. |
2086 IntSize ancestorToLocalOffset = paintInfo.offsetFromLayoutObject - ancestorP
aintInfo->offsetFromLayoutObject; | 2086 IntSize ancestorToLocalOffset = paintInfo.offsetFromLayoutObject - ancestorP
aintInfo->offsetFromLayoutObject; |
2087 parentClipRect.move(ancestorToLocalOffset); | 2087 parentClipRect.move(ancestorToLocalOffset); |
2088 return parentClipRect; | 2088 return parentClipRect; |
2089 } | 2089 } |
2090 | 2090 |
2091 void CompositedDeprecatedPaintLayerMapping::doPaintTask(const GraphicsLayerPaint
Info& paintInfo, const PaintLayerFlags& paintLayerFlags, GraphicsContext* contex
t, | 2091 void CompositedDeprecatedPaintLayerMapping::doPaintTask(const GraphicsLayerPaint
Info& paintInfo, const PaintLayerFlags& paintLayerFlags, GraphicsContext* contex
t, |
2092 const IntRect& clip) // In the coords of rootLayer. | 2092 const IntRect& clip) // In the coords of rootLayer. |
2093 { | 2093 { |
| 2094 ASSERT(!RuntimeEnabledFeatures::slimmingPaintCompositorLayerizationEnabled()
|| clip == LayoutRect::infiniteIntRect()); |
| 2095 |
2094 FontCachePurgePreventer fontCachePurgePreventer; | 2096 FontCachePurgePreventer fontCachePurgePreventer; |
2095 | 2097 |
2096 IntSize offset = paintInfo.offsetFromLayoutObject; | 2098 IntSize offset = paintInfo.offsetFromLayoutObject; |
2097 AffineTransform translation; | 2099 AffineTransform translation; |
2098 translation.translate(-offset.width(), -offset.height()); | 2100 translation.translate(-offset.width(), -offset.height()); |
2099 TransformRecorder transformRecorder(*context, *this, translation); | 2101 TransformRecorder transformRecorder(*context, *this, translation); |
2100 | 2102 |
2101 // The dirtyRect is in the coords of the painting root. | 2103 // The dirtyRect is in the coords of the painting root. |
2102 IntRect dirtyRect(clip); | 2104 IntRect dirtyRect(clip); |
2103 dirtyRect.move(offset); | 2105 dirtyRect.move(offset); |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2386 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { | 2388 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { |
2387 name = "Scrolling Block Selection Layer"; | 2389 name = "Scrolling Block Selection Layer"; |
2388 } else { | 2390 } else { |
2389 ASSERT_NOT_REACHED(); | 2391 ASSERT_NOT_REACHED(); |
2390 } | 2392 } |
2391 | 2393 |
2392 return name; | 2394 return name; |
2393 } | 2395 } |
2394 | 2396 |
2395 } // namespace blink | 2397 } // namespace blink |
OLD | NEW |