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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 // FIXME: We should call a specialized version of this function. | 290 // FIXME: We should call a specialized version of this function. |
291 layer()->updateLayerPositionsAfterLayout(); | 291 layer()->updateLayerPositionsAfterLayout(); |
292 } | 292 } |
293 } | 293 } |
294 } else if (layer() && layer()->parent()) { | 294 } else if (layer() && layer()->parent()) { |
295 PaintLayer* parentLayer = layer()->parent(); | 295 PaintLayer* parentLayer = layer()->parent(); |
296 // Either a transform wasn't specified or the object doesn't support | 296 // Either a transform wasn't specified or the object doesn't support |
297 // transforms, so just null out the bit. | 297 // transforms, so just null out the bit. |
298 setHasTransformRelatedProperty(false); | 298 setHasTransformRelatedProperty(false); |
299 setHasReflection(false); | 299 setHasReflection(false); |
| 300 layer()->updateFilters(oldStyle, styleRef()); |
300 // Calls destroyLayer() which clears m_layer. | 301 // Calls destroyLayer() which clears m_layer. |
301 layer()->removeOnlyThisLayerAfterStyleChange(); | 302 layer()->removeOnlyThisLayerAfterStyleChange(); |
302 if (wasFloatingBeforeStyleChanged && isFloating()) | 303 if (wasFloatingBeforeStyleChanged && isFloating()) |
303 setChildNeedsLayout(); | 304 setChildNeedsLayout(); |
304 if (hadTransform) | 305 if (hadTransform) |
305 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( | 306 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( |
306 LayoutInvalidationReason::StyleChange); | 307 LayoutInvalidationReason::StyleChange); |
307 if (!needsLayout()) { | 308 if (!needsLayout()) { |
308 // FIXME: We should call a specialized version of this function. | 309 // FIXME: We should call a specialized version of this function. |
309 parentLayer->updateLayerPositionsAfterLayout(); | 310 parentLayer->updateLayerPositionsAfterLayout(); |
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1376 if (rootElementStyle->hasBackground()) | 1377 if (rootElementStyle->hasBackground()) |
1377 return false; | 1378 return false; |
1378 | 1379 |
1379 if (node() != document().firstBodyElement()) | 1380 if (node() != document().firstBodyElement()) |
1380 return false; | 1381 return false; |
1381 | 1382 |
1382 return true; | 1383 return true; |
1383 } | 1384 } |
1384 | 1385 |
1385 } // namespace blink | 1386 } // namespace blink |
OLD | NEW |