| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 if (m_renderer.layer()->groupedMapping()) { | 130 if (m_renderer.layer()->groupedMapping()) { |
| 131 LayoutRect paintInvalidationRect = r; | 131 LayoutRect paintInvalidationRect = r; |
| 132 paintInvalidationRect.move(m_renderer.layer()->subpixelAccumulation()); | 132 paintInvalidationRect.move(m_renderer.layer()->subpixelAccumulation()); |
| 133 if (GraphicsLayer* squashingLayer = m_renderer.layer()->groupedMapping()
->squashingLayer()) | 133 if (GraphicsLayer* squashingLayer = m_renderer.layer()->groupedMapping()
->squashingLayer()) |
| 134 squashingLayer->setNeedsDisplayInRect(pixelSnappedIntRect(paintInval
idationRect)); | 134 squashingLayer->setNeedsDisplayInRect(pixelSnappedIntRect(paintInval
idationRect)); |
| 135 } else { | 135 } else { |
| 136 m_renderer.layer()->compositedLayerMapping()->setContentsNeedDisplayInRe
ct(r); | 136 m_renderer.layer()->compositedLayerMapping()->setContentsNeedDisplayInRe
ct(r); |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 | 139 |
| 140 void RenderLayerRepainter::setBackingIncludesFirstPaintInvalidation() |
| 141 { |
| 142 GraphicsLayer* backingLayer = m_renderer.layer()->graphicsLayerBacking(); |
| 143 if (backingLayer) |
| 144 backingLayer->setIncludesFirstPaintInvalidation(); |
| 145 } |
| 146 |
| 140 void RenderLayerRepainter::setFilterBackendNeedsPaintInvalidationInRect(const La
youtRect& rect) | 147 void RenderLayerRepainter::setFilterBackendNeedsPaintInvalidationInRect(const La
youtRect& rect) |
| 141 { | 148 { |
| 142 if (rect.isEmpty()) | 149 if (rect.isEmpty()) |
| 143 return; | 150 return; |
| 144 LayoutRect rectForPaintInvalidation = rect; | 151 LayoutRect rectForPaintInvalidation = rect; |
| 145 m_renderer.style()->filterOutsets().expandRect(rectForPaintInvalidation); | 152 m_renderer.style()->filterOutsets().expandRect(rectForPaintInvalidation); |
| 146 | 153 |
| 147 ASSERT(m_renderer.layer()->filterInfo()); | 154 ASSERT(m_renderer.layer()->filterInfo()); |
| 148 | 155 |
| 149 RenderLayer* parentLayer = enclosingFilterPaintInvalidationLayer(); | 156 RenderLayer* parentLayer = enclosingFilterPaintInvalidationLayer(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 176 RenderLayer* RenderLayerRepainter::enclosingFilterPaintInvalidationLayer() const | 183 RenderLayer* RenderLayerRepainter::enclosingFilterPaintInvalidationLayer() const |
| 177 { | 184 { |
| 178 for (const RenderLayer* curr = m_renderer.layer(); curr; curr = curr->parent
()) { | 185 for (const RenderLayer* curr = m_renderer.layer(); curr; curr = curr->parent
()) { |
| 179 if ((curr != m_renderer.layer() && curr->requiresFullLayerImageForFilter
s()) || curr->compositingState() == PaintsIntoOwnBacking || curr->isRootLayer()) | 186 if ((curr != m_renderer.layer() && curr->requiresFullLayerImageForFilter
s()) || curr->compositingState() == PaintsIntoOwnBacking || curr->isRootLayer()) |
| 180 return const_cast<RenderLayer*>(curr); | 187 return const_cast<RenderLayer*>(curr); |
| 181 } | 188 } |
| 182 return 0; | 189 return 0; |
| 183 } | 190 } |
| 184 | 191 |
| 185 } // namespace blink | 192 } // namespace blink |
| OLD | NEW |