| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void LayoutSVGBlock::willBeDestroyed() | 61 void LayoutSVGBlock::willBeDestroyed() |
| 62 { | 62 { |
| 63 SVGResourcesCache::clientDestroyed(this); | 63 SVGResourcesCache::clientDestroyed(this); |
| 64 LayoutBlockFlow::willBeDestroyed(); | 64 LayoutBlockFlow::willBeDestroyed(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void LayoutSVGBlock::styleDidChange(StyleDifference diff, const ComputedStyle* o
ldStyle) | 67 void LayoutSVGBlock::styleDidChange(StyleDifference diff, const ComputedStyle* o
ldStyle) |
| 68 { | 68 { |
| 69 if (diff.needsFullLayout()) { | 69 if (diff.needsFullLayout()) { |
| 70 setNeedsBoundariesUpdate(); | 70 setNeedsBoundariesUpdate(); |
| 71 if (style()->hasTransform()) | 71 if (diff.transformChanged()) |
| 72 setNeedsTransformUpdate(); | 72 setNeedsTransformUpdate(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 if (isBlendingAllowed()) { | 75 if (isBlendingAllowed()) { |
| 76 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st
yle()->hasBlendMode(); | 76 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st
yle()->hasBlendMode(); |
| 77 if (parent() && hasBlendModeChanged) | 77 if (parent() && hasBlendModeChanged) |
| 78 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo
de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate); | 78 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo
de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate); |
| 79 } | 79 } |
| 80 | 80 |
| 81 LayoutBlock::styleDidChange(diff, oldStyle); | 81 LayoutBlock::styleDidChange(diff, oldStyle); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid
ationState) | 120 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid
ationState) |
| 121 { | 121 { |
| 122 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 122 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
| 123 return; | 123 return; |
| 124 | 124 |
| 125 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); | 125 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); |
| 126 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); | 126 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace blink | 129 } // namespace blink |
| OLD | NEW |