| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // This code path should never be taken for SVG, as we're assuming useTransf
orms=true everywhere, absoluteQuads should be used. | 70 // This code path should never be taken for SVG, as we're assuming useTransf
orms=true everywhere, absoluteQuads should be used. |
| 71 ASSERT_NOT_REACHED(); | 71 ASSERT_NOT_REACHED(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void LayoutSVGBlock::willBeDestroyed() | 74 void LayoutSVGBlock::willBeDestroyed() |
| 75 { | 75 { |
| 76 SVGResourcesCache::clientDestroyed(this); | 76 SVGResourcesCache::clientDestroyed(this); |
| 77 LayoutBlockFlow::willBeDestroyed(); | 77 LayoutBlockFlow::willBeDestroyed(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void LayoutSVGBlock::styleDidChange(StyleDifference diff, const LayoutStyle* old
Style) | 80 void LayoutSVGBlock::styleDidChange(StyleDifference diff, const ComputedStyle* o
ldStyle) |
| 81 { | 81 { |
| 82 if (diff.needsFullLayout()) | 82 if (diff.needsFullLayout()) |
| 83 setNeedsBoundariesUpdate(); | 83 setNeedsBoundariesUpdate(); |
| 84 | 84 |
| 85 if (isBlendingAllowed()) { | 85 if (isBlendingAllowed()) { |
| 86 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st
yle()->hasBlendMode(); | 86 bool hasBlendModeChanged = (oldStyle && oldStyle->hasBlendMode()) == !st
yle()->hasBlendMode(); |
| 87 if (parent() && hasBlendModeChanged) | 87 if (parent() && hasBlendModeChanged) |
| 88 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo
de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate); | 88 parent()->descendantIsolationRequirementsChanged(style()->hasBlendMo
de() ? DescendantIsolationRequired : DescendantIsolationNeedsUpdate); |
| 89 } | 89 } |
| 90 | 90 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 void LayoutSVGBlock::updatePaintInfoRect(IntRect& rect) | 146 void LayoutSVGBlock::updatePaintInfoRect(IntRect& rect) |
| 147 { | 147 { |
| 148 if (rect != LayoutRect::infiniteIntRect()) { | 148 if (rect != LayoutRect::infiniteIntRect()) { |
| 149 AffineTransform transformToRoot = m_cachedPaintInvalidationTransform * l
ocalTransform(); | 149 AffineTransform transformToRoot = m_cachedPaintInvalidationTransform * l
ocalTransform(); |
| 150 rect = enclosingIntRect(transformToRoot.inverse().mapRect(FloatRect(rect
))); | 150 rect = enclosingIntRect(transformToRoot.inverse().mapRect(FloatRect(rect
))); |
| 151 } | 151 } |
| 152 } | 152 } |
| 153 | 153 |
| 154 } | 154 } |
| OLD | NEW |