OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> |
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void LayoutSVGResourceMarker::removeAllClientsFromCache( | 49 void LayoutSVGResourceMarker::removeAllClientsFromCache( |
50 bool markForInvalidation) { | 50 bool markForInvalidation) { |
51 markAllClientsForInvalidation(markForInvalidation | 51 markAllClientsForInvalidation(markForInvalidation |
52 ? LayoutAndBoundariesInvalidation | 52 ? LayoutAndBoundariesInvalidation |
53 : ParentOnlyInvalidation); | 53 : ParentOnlyInvalidation); |
54 } | 54 } |
55 | 55 |
56 void LayoutSVGResourceMarker::removeClientFromCache(LayoutObject* client, | 56 void LayoutSVGResourceMarker::removeClientFromCache(LayoutObject* client, |
57 bool markForInvalidation) { | 57 bool markForInvalidation) { |
58 ASSERT(client); | 58 ASSERT(client); |
59 markClientForInvalidation(client, markForInvalidation | 59 markClientForInvalidation( |
60 ? BoundariesInvalidation | 60 client, |
61 : ParentOnlyInvalidation); | 61 markForInvalidation ? BoundariesInvalidation : ParentOnlyInvalidation); |
62 } | 62 } |
63 | 63 |
64 FloatRect LayoutSVGResourceMarker::markerBoundaries( | 64 FloatRect LayoutSVGResourceMarker::markerBoundaries( |
65 const AffineTransform& markerTransformation) const { | 65 const AffineTransform& markerTransformation) const { |
66 FloatRect coordinates = LayoutSVGContainer::visualRectInLocalSVGCoordinates(); | 66 FloatRect coordinates = LayoutSVGContainer::visualRectInLocalSVGCoordinates(); |
67 | 67 |
68 // Map visual rect into parent coordinate space, in which the marker | 68 // Map visual rect into parent coordinate space, in which the marker |
69 // boundaries have to be evaluated. | 69 // boundaries have to be evaluated. |
70 coordinates = localToSVGParentTransform().mapRect(coordinates); | 70 coordinates = localToSVGParentTransform().mapRect(coordinates); |
71 | 71 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 SVGTransformChangeDetector changeDetector(m_localToParentTransform); | 154 SVGTransformChangeDetector changeDetector(m_localToParentTransform); |
155 m_localToParentTransform = marker->viewBoxToViewTransform( | 155 m_localToParentTransform = marker->viewBoxToViewTransform( |
156 m_viewportSize.width(), m_viewportSize.height()); | 156 m_viewportSize.width(), m_viewportSize.height()); |
157 | 157 |
158 m_needsTransformUpdate = false; | 158 m_needsTransformUpdate = false; |
159 return changeDetector.computeChange(m_localToParentTransform); | 159 return changeDetector.computeChange(m_localToParentTransform); |
160 } | 160 } |
161 | 161 |
162 } // namespace blink | 162 } // namespace blink |
OLD | NEW |