| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 | 123 |
| 124 void RenderLayerRepainter::setFilterBackendNeedsRepaintingInRect(const LayoutRec
t& rect) | 124 void RenderLayerRepainter::setFilterBackendNeedsRepaintingInRect(const LayoutRec
t& rect) |
| 125 { | 125 { |
| 126 if (rect.isEmpty()) | 126 if (rect.isEmpty()) |
| 127 return; | 127 return; |
| 128 LayoutRect rectForRepaint = rect; | 128 LayoutRect rectForRepaint = rect; |
| 129 m_renderer.style()->filterOutsets().expandRect(rectForRepaint); | 129 m_renderer.style()->filterOutsets().expandRect(rectForRepaint); |
| 130 | 130 |
| 131 RenderLayerFilterInfo* filterInfo = m_renderer.layer()->filterInfo(); | 131 ASSERT(m_renderer.layer()->filterInfo()); |
| 132 ASSERT(filterInfo); | |
| 133 filterInfo->expandDirtySourceRect(rectForRepaint); | |
| 134 | 132 |
| 135 RenderLayer* parentLayer = enclosingFilterRepaintLayer(); | 133 RenderLayer* parentLayer = enclosingFilterRepaintLayer(); |
| 136 ASSERT(parentLayer); | 134 ASSERT(parentLayer); |
| 137 FloatQuad repaintQuad(rectForRepaint); | 135 FloatQuad repaintQuad(rectForRepaint); |
| 138 LayoutRect parentLayerRect = m_renderer.localToContainerQuad(repaintQuad, pa
rentLayer->renderer()).enclosingBoundingBox(); | 136 LayoutRect parentLayerRect = m_renderer.localToContainerQuad(repaintQuad, pa
rentLayer->renderer()).enclosingBoundingBox(); |
| 139 | 137 |
| 140 if (parentLayerRect.isEmpty()) | 138 if (parentLayerRect.isEmpty()) |
| 141 return; | 139 return; |
| 142 | 140 |
| 143 if (parentLayer->hasCompositedLayerMapping()) { | 141 if (parentLayer->hasCompositedLayerMapping()) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 162 RenderLayer* RenderLayerRepainter::enclosingFilterRepaintLayer() const | 160 RenderLayer* RenderLayerRepainter::enclosingFilterRepaintLayer() const |
| 163 { | 161 { |
| 164 for (const RenderLayer* curr = m_renderer.layer(); curr; curr = curr->parent
()) { | 162 for (const RenderLayer* curr = m_renderer.layer(); curr; curr = curr->parent
()) { |
| 165 if ((curr != m_renderer.layer() && curr->requiresFullLayerImageForFilter
s()) || curr->compositingState() == PaintsIntoOwnBacking || curr->isRootLayer()) | 163 if ((curr != m_renderer.layer() && curr->requiresFullLayerImageForFilter
s()) || curr->compositingState() == PaintsIntoOwnBacking || curr->isRootLayer()) |
| 166 return const_cast<RenderLayer*>(curr); | 164 return const_cast<RenderLayer*>(curr); |
| 167 } | 165 } |
| 168 return 0; | 166 return 0; |
| 169 } | 167 } |
| 170 | 168 |
| 171 } // namespace blink | 169 } // namespace blink |
| OLD | NEW |