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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 if (absRect.isEmpty()) | 119 if (absRect.isEmpty()) |
120 return; | 120 return; |
121 | 121 |
122 RenderView* view = m_renderer.view(); | 122 RenderView* view = m_renderer.view(); |
123 if (view) | 123 if (view) |
124 view->repaintViewRectangle(absRect); | 124 view->repaintViewRectangle(absRect); |
125 return; | 125 return; |
126 } | 126 } |
127 IntRect repaintRect = pixelSnappedIntRect(r); | 127 IntRect repaintRect = pixelSnappedIntRect(r); |
128 // FIXME: generalize accessors to backing GraphicsLayers so that this code i
s squashing-agnostic. | 128 // FIXME: generalize accessors to backing GraphicsLayers so that this code i
s squasphing-agnostic. |
129 if (m_renderer.groupedMapping()) { | 129 if (m_renderer.layer()->groupedMapping()) { |
130 if (GraphicsLayer* squashingLayer = m_renderer.groupedMapping()->squashi
ngLayer()) | 130 if (GraphicsLayer* squashingLayer = m_renderer.layer()->groupedMapping()
->squashingLayer()) |
131 squashingLayer->setNeedsDisplayInRect(repaintRect); | 131 squashingLayer->setNeedsDisplayInRect(repaintRect); |
132 } else { | 132 } else { |
133 m_renderer.compositedLayerMapping()->setContentsNeedDisplayInRect(repain
tRect); | 133 m_renderer.layer()->compositedLayerMapping()->setContentsNeedDisplayInRe
ct(repaintRect); |
134 } | 134 } |
135 } | 135 } |
136 | 136 |
137 void RenderLayerRepainter::setFilterBackendNeedsRepaintingInRect(const LayoutRec
t& rect) | 137 void RenderLayerRepainter::setFilterBackendNeedsRepaintingInRect(const LayoutRec
t& rect) |
138 { | 138 { |
139 if (rect.isEmpty()) | 139 if (rect.isEmpty()) |
140 return; | 140 return; |
141 LayoutRect rectForRepaint = rect; | 141 LayoutRect rectForRepaint = rect; |
142 m_renderer.style()->filterOutsets().expandRect(rectForRepaint); | 142 m_renderer.style()->filterOutsets().expandRect(rectForRepaint); |
143 | 143 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 RenderLayer* RenderLayerRepainter::enclosingFilterRepaintLayer() const | 175 RenderLayer* RenderLayerRepainter::enclosingFilterRepaintLayer() const |
176 { | 176 { |
177 for (const RenderLayer* curr = m_renderer.layer(); curr; curr = curr->parent
()) { | 177 for (const RenderLayer* curr = m_renderer.layer(); curr; curr = curr->parent
()) { |
178 if ((curr != m_renderer.layer() && curr->requiresFullLayerImageForFilter
s()) || curr->compositingState() == PaintsIntoOwnBacking || curr->isRootLayer()) | 178 if ((curr != m_renderer.layer() && curr->requiresFullLayerImageForFilter
s()) || curr->compositingState() == PaintsIntoOwnBacking || curr->isRootLayer()) |
179 return const_cast<RenderLayer*>(curr); | 179 return const_cast<RenderLayer*>(curr); |
180 } | 180 } |
181 return 0; | 181 return 0; |
182 } | 182 } |
183 | 183 |
184 } // Namespace WebCore | 184 } // Namespace WebCore |
OLD | NEW |