OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
7 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. | 7 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 RenderObject::styleDidChange(diff, oldStyle); | 141 RenderObject::styleDidChange(diff, oldStyle); |
142 updateFromStyle(); | 142 updateFromStyle(); |
143 | 143 |
144 LayerType type = layerTypeRequired(); | 144 LayerType type = layerTypeRequired(); |
145 if (type != NoLayer) { | 145 if (type != NoLayer) { |
146 if (!layer() && layerCreationAllowedForSubtree()) { | 146 if (!layer() && layerCreationAllowedForSubtree()) { |
147 if (s_wasFloating && isFloating()) | 147 if (s_wasFloating && isFloating()) |
148 setChildNeedsLayout(); | 148 setChildNeedsLayout(); |
149 createLayer(type); | 149 createLayer(type); |
150 if (parent() && !needsLayout() && containingBlock()) { | 150 if (parent() && !needsLayout() && containingBlock()) { |
151 layer()->repainter().setRepaintStatus(NeedsFullRepaint); | 151 // FIXME: This invalidation is overly broad. We should update to |
| 152 // do the correct invalidation at RenderStyle::diff time. crbug.
com/349061 |
| 153 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) |
| 154 layer()->renderer()->setShouldDoFullRepaintAfterLayout(true)
; |
| 155 else |
| 156 layer()->repainter().setRepaintStatus(NeedsFullRepaint); |
152 // There is only one layer to update, it is not worth using |cac
hedOffset| since | 157 // There is only one layer to update, it is not worth using |cac
hedOffset| since |
153 // we are not sure the value will be used. | 158 // we are not sure the value will be used. |
154 layer()->updateLayerPositions(0); | 159 layer()->updateLayerPositions(0); |
155 } | 160 } |
156 } | 161 } |
157 } else if (layer() && layer()->parent()) { | 162 } else if (layer() && layer()->parent()) { |
158 setHasTransform(false); // Either a transform wasn't specified or the ob
ject doesn't support transforms, so just null out the bit. | 163 setHasTransform(false); // Either a transform wasn't specified or the ob
ject doesn't support transforms, so just null out the bit. |
159 setHasReflection(false); | 164 setHasReflection(false); |
160 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l
ayer | 165 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l
ayer |
161 if (s_wasFloating && isFloating()) | 166 if (s_wasFloating && isFloating()) |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 return m_layer ? m_layer->hasCompositedLayerMapping() : false; | 219 return m_layer ? m_layer->hasCompositedLayerMapping() : false; |
215 } | 220 } |
216 | 221 |
217 CompositedLayerMapping* RenderLayerModelObject::groupedMapping() const | 222 CompositedLayerMapping* RenderLayerModelObject::groupedMapping() const |
218 { | 223 { |
219 return m_layer ? m_layer->groupedMapping() : 0; | 224 return m_layer ? m_layer->groupedMapping() : 0; |
220 } | 225 } |
221 | 226 |
222 } // namespace WebCore | 227 } // namespace WebCore |
223 | 228 |
OLD | NEW |