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 } | 61 } |
62 | 62 |
63 void LayoutSVGBlock::willBeDestroyed() | 63 void LayoutSVGBlock::willBeDestroyed() |
64 { | 64 { |
65 SVGResourcesCache::clientDestroyed(this); | 65 SVGResourcesCache::clientDestroyed(this); |
66 LayoutBlockFlow::willBeDestroyed(); | 66 LayoutBlockFlow::willBeDestroyed(); |
67 } | 67 } |
68 | 68 |
69 void LayoutSVGBlock::styleDidChange(StyleDifference diff, const ComputedStyle* o
ldStyle) | 69 void LayoutSVGBlock::styleDidChange(StyleDifference diff, const ComputedStyle* o
ldStyle) |
70 { | 70 { |
71 if (diff.needsFullLayout()) | 71 if (diff.needsFullLayout()) { |
72 setNeedsBoundariesUpdate(); | 72 setNeedsBoundariesUpdate(); |
| 73 if (style()->hasTransform()) |
| 74 setNeedsTransformUpdate(); |
| 75 } |
73 | 76 |
74 if (isBlendingAllowed()) { | 77 if (isBlendingAllowed()) { |
75 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st
yle()->hasBlendMode(); | 78 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st
yle()->hasBlendMode(); |
76 if (parent() && hasBlendModeChanged) | 79 if (parent() && hasBlendModeChanged) |
77 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo
de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate); | 80 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo
de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate); |
78 } | 81 } |
79 | 82 |
80 LayoutBlock::styleDidChange(diff, oldStyle); | 83 LayoutBlock::styleDidChange(diff, oldStyle); |
81 SVGResourcesCache::clientStyleChanged(this, diff, styleRef()); | 84 SVGResourcesCache::clientStyleChanged(this, diff, styleRef()); |
82 } | 85 } |
(...skipping 29 matching lines...) Expand all Loading... |
112 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid
ationState) | 115 void LayoutSVGBlock::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalid
ationState) |
113 { | 116 { |
114 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 117 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
115 return; | 118 return; |
116 | 119 |
117 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); | 120 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); |
118 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); | 121 LayoutBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); |
119 } | 122 } |
120 | 123 |
121 } | 124 } |
OLD | NEW |