| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 createLayer(type); | 99 createLayer(type); |
| 100 if (parent() && !needsLayout()) { | 100 if (parent() && !needsLayout()) { |
| 101 // FIXME: We should call a specialized version of this function. | 101 // FIXME: We should call a specialized version of this function. |
| 102 layer()->updateLayerPositionsAfterLayout(); | 102 layer()->updateLayerPositionsAfterLayout(); |
| 103 } | 103 } |
| 104 } | 104 } |
| 105 } else if (layer() && layer()->parent()) { | 105 } else if (layer() && layer()->parent()) { |
| 106 setHasTransform(false); // Either a transform wasn't specified or the ob
ject doesn't support transforms, so just null out the bit. | 106 setHasTransform(false); // Either a transform wasn't specified or the ob
ject doesn't support transforms, so just null out the bit. |
| 107 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l
ayer | 107 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l
ayer |
| 108 if (hadTransform) | 108 if (hadTransform) |
| 109 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(); | 109 setNeedsLayoutAndPrefWidthsRecalc(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 if (layer()) { | 112 if (layer()) { |
| 113 // FIXME: Ideally we shouldn't need this setter but we can't easily infe
r an overflow-only layer | 113 // FIXME: Ideally we shouldn't need this setter but we can't easily infe
r an overflow-only layer |
| 114 // from the style. | 114 // from the style. |
| 115 layer()->setLayerType(type); | 115 layer()->setLayerType(type); |
| 116 layer()->styleChanged(diff, oldStyle); | 116 layer()->styleChanged(diff, oldStyle); |
| 117 } | 117 } |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace blink | 120 } // namespace blink |
| 121 | 121 |
| OLD | NEW |