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 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 layer()->updateLayerPositionsAfterLayout(); | 177 layer()->updateLayerPositionsAfterLayout(); |
178 } | 178 } |
179 } | 179 } |
180 } else if (layer() && layer()->parent()) { | 180 } else if (layer() && layer()->parent()) { |
181 setHasTransformRelatedProperty(false); // Either a transform wasn't spec
ified or the object doesn't support transforms, so just null out the bit. | 181 setHasTransformRelatedProperty(false); // Either a transform wasn't spec
ified or the object doesn't support transforms, so just null out the bit. |
182 setHasReflection(false); | 182 setHasReflection(false); |
183 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l
ayer | 183 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l
ayer |
184 if (s_wasFloating && isFloating()) | 184 if (s_wasFloating && isFloating()) |
185 setChildNeedsLayout(); | 185 setChildNeedsLayout(); |
186 if (hadTransform) | 186 if (hadTransform) |
187 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(); | 187 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInva
lidationReason::StyleChange); |
188 } | 188 } |
189 | 189 |
190 if (layer()) { | 190 if (layer()) { |
191 // FIXME: Ideally we shouldn't need this setter but we can't easily infe
r an overflow-only layer | 191 // FIXME: Ideally we shouldn't need this setter but we can't easily infe
r an overflow-only layer |
192 // from the style. | 192 // from the style. |
193 layer()->setLayerType(type); | 193 layer()->setLayerType(type); |
194 | 194 |
195 layer()->styleChanged(diff, oldStyle); | 195 layer()->styleChanged(diff, oldStyle); |
196 if (hadLayer && layer()->isSelfPaintingLayer() != layerWasSelfPainting) | 196 if (hadLayer && layer()->isSelfPaintingLayer() != layerWasSelfPainting) |
197 setChildNeedsLayout(); | 197 setChildNeedsLayout(); |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); | 886 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); |
887 for (LayoutObject* child = startChild; child && child != endChild; ) { | 887 for (LayoutObject* child = startChild; child && child != endChild; ) { |
888 // Save our next sibling as moveChildTo will clear it. | 888 // Save our next sibling as moveChildTo will clear it. |
889 LayoutObject* nextSibling = child->nextSibling(); | 889 LayoutObject* nextSibling = child->nextSibling(); |
890 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); | 890 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); |
891 child = nextSibling; | 891 child = nextSibling; |
892 } | 892 } |
893 } | 893 } |
894 | 894 |
895 } // namespace blink | 895 } // namespace blink |
OLD | NEW |