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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // Do a repaint with the old style first, e.g., for example if we go
from | 100 // Do a repaint with the old style first, e.g., for example if we go
from |
101 // having an outline to not having an outline. | 101 // having an outline to not having an outline. |
102 if (diff == StyleDifferenceRepaintLayer) { | 102 if (diff == StyleDifferenceRepaintLayer) { |
103 layer()->repainter().repaintIncludingDescendants(); | 103 layer()->repainter().repaintIncludingDescendants(); |
104 if (oldStyle->clip() != newStyle->clip()) | 104 if (oldStyle->clip() != newStyle->clip()) |
105 layer()->clipper().clearClipRectsIncludingDescendants(); | 105 layer()->clipper().clearClipRectsIncludingDescendants(); |
106 } else if (diff == StyleDifferenceRepaint || newStyle->outlineSize()
< oldStyle->outlineSize()) | 106 } else if (diff == StyleDifferenceRepaint || newStyle->outlineSize()
< oldStyle->outlineSize()) |
107 repaint(); | 107 repaint(); |
108 } | 108 } |
109 | 109 |
110 if (diff == StyleDifferenceLayout || diff == StyleDifferenceSimplifiedLa
yout) { | 110 if (diff == StyleDifferenceLayout) { |
111 // When a layout hint happens, we go ahead and do a repaint of the l
ayer, since the layer could | 111 // When a layout hint happens, we go ahead and do a repaint of the l
ayer, since the layer could |
112 // end up being destroyed. | 112 // end up being destroyed. |
113 if (hasLayer()) { | 113 if (hasLayer()) { |
114 if (oldStyle->hasClip() != newStyle->hasClip() | 114 if (oldStyle->hasClip() != newStyle->hasClip() |
115 || oldStyle->clip() != newStyle->clip()) { | 115 || oldStyle->clip() != newStyle->clip()) { |
116 // Composited layers don't need to be repainted when a paren
t's clip changes. | 116 // Composited layers don't need to be repainted when a paren
t's clip changes. |
117 layer()->repainter().repaintIncludingNonCompositingDescendan
ts(containerForRepaint()); | 117 layer()->repainter().repaintIncludingNonCompositingDescendan
ts(containerForRepaint()); |
118 } else if (!layer()->hasCompositedLayerMapping()) { | 118 } else if (!layer()->hasCompositedLayerMapping()) { |
119 if (oldStyle->position() != newStyle->position() | 119 if (oldStyle->position() != newStyle->position() |
120 || oldStyle->zIndex() != newStyle->zIndex() | 120 || oldStyle->zIndex() != newStyle->zIndex() |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 return m_layer ? m_layer->hasCompositedLayerMapping() : false; | 222 return m_layer ? m_layer->hasCompositedLayerMapping() : false; |
223 } | 223 } |
224 | 224 |
225 CompositedLayerMapping* RenderLayerModelObject::groupedMapping() const | 225 CompositedLayerMapping* RenderLayerModelObject::groupedMapping() const |
226 { | 226 { |
227 return m_layer ? m_layer->groupedMapping() : 0; | 227 return m_layer ? m_layer->groupedMapping() : 0; |
228 } | 228 } |
229 | 229 |
230 } // namespace WebCore | 230 } // namespace WebCore |
231 | 231 |
OLD | NEW |