Chromium Code Reviews| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 114 if (m_renderer.layer()->groupedMapping()) { | 114 if (m_renderer.layer()->groupedMapping()) { |
| 115 LayoutRect paintInvalidationRect = r; | 115 LayoutRect paintInvalidationRect = r; |
| 116 paintInvalidationRect.move(m_renderer.layer()->subpixelAccumulation()); | 116 paintInvalidationRect.move(m_renderer.layer()->subpixelAccumulation()); |
| 117 if (GraphicsLayer* squashingLayer = m_renderer.layer()->groupedMapping() ->squashingLayer()) | 117 if (GraphicsLayer* squashingLayer = m_renderer.layer()->groupedMapping() ->squashingLayer()) |
| 118 squashingLayer->setNeedsDisplayInRect(pixelSnappedIntRect(paintInval idationRect)); | 118 squashingLayer->setNeedsDisplayInRect(pixelSnappedIntRect(paintInval idationRect)); |
| 119 } else { | 119 } else { |
| 120 m_renderer.layer()->compositedLayerMapping()->setContentsNeedDisplayInRe ct(r); | 120 m_renderer.layer()->compositedLayerMapping()->setContentsNeedDisplayInRe ct(r); |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 | 123 |
| 124 void RenderLayerRepainter::setBackingIncludesFirstPaintInvalidation() | |
| 125 { | |
| 126 GraphicsLayer* backingLayer = m_renderer.layer()->graphicsLayerBacking(); | |
|
chrishtr
2014/08/25 16:55:05
Per comment in RenderObject, get rid of this metho
kouhei (in TOK)
2014/08/26 14:18:18
Done.
| |
| 127 if (backingLayer) | |
| 128 backingLayer->setIncludesFirstPaintInvalidation(); | |
| 129 } | |
| 130 | |
| 124 void RenderLayerRepainter::setFilterBackendNeedsPaintInvalidationInRect(const La youtRect& rect) | 131 void RenderLayerRepainter::setFilterBackendNeedsPaintInvalidationInRect(const La youtRect& rect) |
| 125 { | 132 { |
| 126 if (rect.isEmpty()) | 133 if (rect.isEmpty()) |
| 127 return; | 134 return; |
| 128 LayoutRect rectForPaintInvalidation = rect; | 135 LayoutRect rectForPaintInvalidation = rect; |
| 129 | 136 |
| 130 ASSERT(m_renderer.layer()->filterInfo()); | 137 ASSERT(m_renderer.layer()->filterInfo()); |
| 131 | 138 |
| 132 RenderLayer* parentLayer = enclosingFilterPaintInvalidationLayer(); | 139 RenderLayer* parentLayer = enclosingFilterPaintInvalidationLayer(); |
| 133 ASSERT(parentLayer); | 140 ASSERT(parentLayer); |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 159 RenderLayer* RenderLayerRepainter::enclosingFilterPaintInvalidationLayer() const | 166 RenderLayer* RenderLayerRepainter::enclosingFilterPaintInvalidationLayer() const |
| 160 { | 167 { |
| 161 for (const RenderLayer* curr = m_renderer.layer(); curr; curr = curr->parent ()) { | 168 for (const RenderLayer* curr = m_renderer.layer(); curr; curr = curr->parent ()) { |
| 162 if ((curr != m_renderer.layer() && curr->requiresFullLayerImageForFilter s()) || curr->compositingState() == PaintsIntoOwnBacking || curr->isRootLayer()) | 169 if ((curr != m_renderer.layer() && curr->requiresFullLayerImageForFilter s()) || curr->compositingState() == PaintsIntoOwnBacking || curr->isRootLayer()) |
| 163 return const_cast<RenderLayer*>(curr); | 170 return const_cast<RenderLayer*>(curr); |
| 164 } | 171 } |
| 165 return 0; | 172 return 0; |
| 166 } | 173 } |
| 167 | 174 |
| 168 } // namespace blink | 175 } // namespace blink |
| OLD | NEW |