Chromium Code Reviews| 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 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2018 // FIXME: need to split out paint invalidations for the background. | 2018 // FIXME: need to split out paint invalidations for the background. |
| 2019 ApplyToGraphicsLayers(this, SetContentsNeedsDisplayFunctor(), ApplyToContent Layers); | 2019 ApplyToGraphicsLayers(this, SetContentsNeedsDisplayFunctor(), ApplyToContent Layers); |
| 2020 } | 2020 } |
| 2021 | 2021 |
| 2022 struct SetContentsNeedsDisplayInRectFunctor { | 2022 struct SetContentsNeedsDisplayInRectFunctor { |
| 2023 void operator() (GraphicsLayer* layer) const | 2023 void operator() (GraphicsLayer* layer) const |
| 2024 { | 2024 { |
| 2025 if (layer->drawsContent()) { | 2025 if (layer->drawsContent()) { |
| 2026 IntRect layerDirtyRect = r; | 2026 IntRect layerDirtyRect = r; |
| 2027 layerDirtyRect.move(-layer->offsetFromLayoutObject()); | 2027 layerDirtyRect.move(-layer->offsetFromLayoutObject()); |
| 2028 // fprintf(stderr, "SetContentsNeedsDisplayInRectFunctor\n"); | |
|
dglazkov
2015/09/08 17:54:05
Remove maybe?
| |
| 2028 layer->setNeedsDisplayInRect(layerDirtyRect, invalidationReason); | 2029 layer->setNeedsDisplayInRect(layerDirtyRect, invalidationReason); |
| 2029 } | 2030 } |
| 2030 } | 2031 } |
| 2031 | 2032 |
| 2032 IntRect r; | 2033 IntRect r; |
| 2033 PaintInvalidationReason invalidationReason; | 2034 PaintInvalidationReason invalidationReason; |
| 2034 }; | 2035 }; |
| 2035 | 2036 |
| 2036 // r is in the coordinate space of the layer's layout object | 2037 // r is in the coordinate space of the layer's layout object |
| 2037 void CompositedDeprecatedPaintLayerMapping::setContentsNeedDisplayInRect(const L ayoutRect& r, PaintInvalidationReason invalidationReason) | 2038 void CompositedDeprecatedPaintLayerMapping::setContentsNeedDisplayInRect(const L ayoutRect& r, PaintInvalidationReason invalidationReason) |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2397 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { | 2398 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { |
| 2398 name = "Scrolling Block Selection Layer"; | 2399 name = "Scrolling Block Selection Layer"; |
| 2399 } else { | 2400 } else { |
| 2400 ASSERT_NOT_REACHED(); | 2401 ASSERT_NOT_REACHED(); |
| 2401 } | 2402 } |
| 2402 | 2403 |
| 2403 return name; | 2404 return name; |
| 2404 } | 2405 } |
| 2405 | 2406 |
| 2406 } // namespace blink | 2407 } // namespace blink |
| OLD | NEW |