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 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1707 } | 1707 } |
1708 | 1708 |
1709 void CompositedLayerMapping::contentChanged(ContentChangeType changeType) | 1709 void CompositedLayerMapping::contentChanged(ContentChangeType changeType) |
1710 { | 1710 { |
1711 if ((changeType == ImageChanged) && isDirectlyCompositedImage()) { | 1711 if ((changeType == ImageChanged) && isDirectlyCompositedImage()) { |
1712 updateImageContents(); | 1712 updateImageContents(); |
1713 return; | 1713 return; |
1714 } | 1714 } |
1715 | 1715 |
1716 if ((changeType == CanvasChanged || changeType == CanvasPixelsChanged) && is AcceleratedCanvas(renderer())) { | 1716 if ((changeType == CanvasChanged || changeType == CanvasPixelsChanged) && is AcceleratedCanvas(renderer())) { |
1717 m_graphicsLayer->setContentsNeedsDisplay(); | 1717 m_graphicsLayer->setContentsNeedsDisplayInRect(toHTMLCanvasElement(rende rer()->node())->dirtyRect()); |
1718 return; | 1718 return; |
abarth-chromium
2014/06/20 15:19:47
Rather than using this awkward notification pipeli
| |
1719 } | 1719 } |
1720 } | 1720 } |
1721 | 1721 |
1722 void CompositedLayerMapping::updateImageContents() | 1722 void CompositedLayerMapping::updateImageContents() |
1723 { | 1723 { |
1724 ASSERT(renderer()->isImage()); | 1724 ASSERT(renderer()->isImage()); |
1725 RenderImage* imageRenderer = toRenderImage(renderer()); | 1725 RenderImage* imageRenderer = toRenderImage(renderer()); |
1726 | 1726 |
1727 ImageResource* cachedImage = imageRenderer->cachedImage(); | 1727 ImageResource* cachedImage = imageRenderer->cachedImage(); |
1728 if (!cachedImage) | 1728 if (!cachedImage) |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2237 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { | 2237 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { |
2238 name = "Scrolling Block Selection Layer"; | 2238 name = "Scrolling Block Selection Layer"; |
2239 } else { | 2239 } else { |
2240 ASSERT_NOT_REACHED(); | 2240 ASSERT_NOT_REACHED(); |
2241 } | 2241 } |
2242 | 2242 |
2243 return name; | 2243 return name; |
2244 } | 2244 } |
2245 | 2245 |
2246 } // namespace WebCore | 2246 } // namespace WebCore |
OLD | NEW |