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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 if (oldStyle->hasClip() != newStyle.hasClip() | 103 if (oldStyle->hasClip() != newStyle.hasClip() |
104 || oldStyle->clip() != newStyle.clip()) | 104 || oldStyle->clip() != newStyle.clip()) |
105 layer()->clipper().clearClipRectsIncludingDescendants(); | 105 layer()->clipper().clearClipRectsIncludingDescendants(); |
106 } else if (diff.needsFullLayout()) { | 106 } else if (diff.needsFullLayout()) { |
107 if (hasLayer()) { | 107 if (hasLayer()) { |
108 if (!layer()->hasCompositedLayerMapping() && oldStyle->position(
) != newStyle.position()) | 108 if (!layer()->hasCompositedLayerMapping() && oldStyle->position(
) != newStyle.position()) |
109 layer()->repainter().repaintIncludingNonCompositingDescendan
ts(); | 109 layer()->repainter().repaintIncludingNonCompositingDescendan
ts(); |
110 } else if (newStyle.hasTransform() || newStyle.opacity() < 1 || newS
tyle.hasFilter()) { | 110 } else if (newStyle.hasTransform() || newStyle.opacity() < 1 || newS
tyle.hasFilter()) { |
111 // If we don't have a layer yet, but we are going to get one bec
ause of transform or opacity, | 111 // If we don't have a layer yet, but we are going to get one bec
ause of transform or opacity, |
112 // then we need to repaint the old position of the object. | 112 // then we need to repaint the old position of the object. |
113 repaint(); | 113 paintInvalidationForWholeRenderer(); |
114 } | 114 } |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
118 RenderObject::styleWillChange(diff, newStyle); | 118 RenderObject::styleWillChange(diff, newStyle); |
119 } | 119 } |
120 | 120 |
121 void RenderLayerModelObject::styleDidChange(StyleDifference diff, const RenderSt
yle* oldStyle) | 121 void RenderLayerModelObject::styleDidChange(StyleDifference diff, const RenderSt
yle* oldStyle) |
122 { | 122 { |
123 bool hadTransform = hasTransform(); | 123 bool hadTransform = hasTransform(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 return m_layer ? m_layer->hasCompositedLayerMapping() : false; | 202 return m_layer ? m_layer->hasCompositedLayerMapping() : false; |
203 } | 203 } |
204 | 204 |
205 CompositedLayerMapping* RenderLayerModelObject::groupedMapping() const | 205 CompositedLayerMapping* RenderLayerModelObject::groupedMapping() const |
206 { | 206 { |
207 return m_layer ? m_layer->groupedMapping() : 0; | 207 return m_layer ? m_layer->groupedMapping() : 0; |
208 } | 208 } |
209 | 209 |
210 } // namespace WebCore | 210 } // namespace WebCore |
211 | 211 |
OLD | NEW |