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, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 7 * Copyright (C) 2013 Adobe Systems Incorporated. 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 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 | 1258 |
1259 AllowPaintInvalidationScope scoper(frameView()); | 1259 AllowPaintInvalidationScope scoper(frameView()); |
1260 | 1260 |
1261 if ((style()->borderImage().image() && style()->borderImage().image()->data(
) == image) || | 1261 if ((style()->borderImage().image() && style()->borderImage().image()->data(
) == image) || |
1262 (style()->maskBoxImage().image() && style()->maskBoxImage().image()->dat
a() == image)) { | 1262 (style()->maskBoxImage().image() && style()->maskBoxImage().image()->dat
a() == image)) { |
1263 setShouldDoFullPaintInvalidation(true); | 1263 setShouldDoFullPaintInvalidation(true); |
1264 return; | 1264 return; |
1265 } | 1265 } |
1266 | 1266 |
1267 ShapeValue* shapeOutsideValue = style()->shapeOutside(); | 1267 ShapeValue* shapeOutsideValue = style()->shapeOutside(); |
1268 if (isFloating() && shapeOutsideValue && shapeOutsideValue->image() && shape
OutsideValue->image()->data() == image) { | 1268 if (!frameView()->isInPerformLayout() && isFloating() && shapeOutsideValue &
& shapeOutsideValue->image() && shapeOutsideValue->image()->data() == image) { |
1269 ShapeOutsideInfo& info = ShapeOutsideInfo::ensureInfo(*this); | 1269 ShapeOutsideInfo& info = ShapeOutsideInfo::ensureInfo(*this); |
1270 if (!info.isComputingShape()) { | 1270 if (!info.isComputingShape()) { |
1271 info.markShapeAsDirty(); | 1271 info.markShapeAsDirty(); |
1272 markShapeOutsideDependentsForLayout(); | 1272 markShapeOutsideDependentsForLayout(); |
1273 } | 1273 } |
1274 } | 1274 } |
1275 | 1275 |
1276 if (!paintInvalidationLayerRectsForImage(image, style()->backgroundLayers(),
true)) | 1276 if (!paintInvalidationLayerRectsForImage(image, style()->backgroundLayers(),
true)) |
1277 paintInvalidationLayerRectsForImage(image, style()->maskLayers(), false)
; | 1277 paintInvalidationLayerRectsForImage(image, style()->maskLayers(), false)
; |
1278 } | 1278 } |
(...skipping 3260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4539 ASSERT(style()->hasBackground() || style()->hasBoxDecorations()); | 4539 ASSERT(style()->hasBackground() || style()->hasBoxDecorations()); |
4540 | 4540 |
4541 if (m_rareData && m_rareData->m_previousBorderBoxSize.width() != -1) | 4541 if (m_rareData && m_rareData->m_previousBorderBoxSize.width() != -1) |
4542 return m_rareData->m_previousBorderBoxSize; | 4542 return m_rareData->m_previousBorderBoxSize; |
4543 | 4543 |
4544 // We didn't save the old border box size because it was the same as the siz
e of oldBounds. | 4544 // We didn't save the old border box size because it was the same as the siz
e of oldBounds. |
4545 return previousBoundsSize; | 4545 return previousBoundsSize; |
4546 } | 4546 } |
4547 | 4547 |
4548 } // namespace blink | 4548 } // namespace blink |
OLD | NEW |