| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 } | 610 } |
| 611 | 611 |
| 612 // Map the given point from coordinates in the RenderLayer to GraphicsLayer coor
dinates. | 612 // Map the given point from coordinates in the RenderLayer to GraphicsLayer coor
dinates. |
| 613 FloatPoint RenderLayerBacking::contentsToGraphicsLayerCoordinates(const Graphics
Layer* graphicsLayer, const FloatPoint& point) | 613 FloatPoint RenderLayerBacking::contentsToGraphicsLayerCoordinates(const Graphics
Layer* graphicsLayer, const FloatPoint& point) |
| 614 { | 614 { |
| 615 return point - FloatSize(graphicsLayer->offsetFromRenderer()); | 615 return point - FloatSize(graphicsLayer->offsetFromRenderer()); |
| 616 } | 616 } |
| 617 | 617 |
| 618 bool RenderLayerBacking::paintingGoesToWindow() const | 618 bool RenderLayerBacking::paintingGoesToWindow() const |
| 619 { | 619 { |
| 620 return m_owningLayer->isDocumentLayer(); | 620 return m_owningLayer->isRootLayer(); |
| 621 } | 621 } |
| 622 | 622 |
| 623 void RenderLayerBacking::setContentsNeedDisplay() | 623 void RenderLayerBacking::setContentsNeedDisplay() |
| 624 { | 624 { |
| 625 if (m_graphicsLayer) | 625 if (m_graphicsLayer) |
| 626 m_graphicsLayer->setNeedsDisplay(); | 626 m_graphicsLayer->setNeedsDisplay(); |
| 627 if (m_contentsLayer) | 627 if (m_contentsLayer) |
| 628 m_contentsLayer->setNeedsDisplay(); | 628 m_contentsLayer->setNeedsDisplay(); |
| 629 } | 629 } |
| 630 | 630 |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 case CSSPropertyBackgroundColor: | 957 case CSSPropertyBackgroundColor: |
| 958 return AnimatedPropertyBackgroundColor; | 958 return AnimatedPropertyBackgroundColor; |
| 959 // It's fine if we see other css properties here; they are just not acce
lerated. | 959 // It's fine if we see other css properties here; they are just not acce
lerated. |
| 960 } | 960 } |
| 961 return AnimatedPropertyInvalid; | 961 return AnimatedPropertyInvalid; |
| 962 } | 962 } |
| 963 | 963 |
| 964 } // namespace WebCore | 964 } // namespace WebCore |
| 965 | 965 |
| 966 #endif // USE(ACCELERATED_COMPOSITING) | 966 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |