OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009-2010. 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 23 matching lines...) Expand all Loading... |
34 #include "core/layout/svg/LayoutSVGResourceMasker.h" | 34 #include "core/layout/svg/LayoutSVGResourceMasker.h" |
35 #include "core/layout/svg/LayoutSVGRoot.h" | 35 #include "core/layout/svg/LayoutSVGRoot.h" |
36 #include "core/layout/svg/LayoutSVGShape.h" | 36 #include "core/layout/svg/LayoutSVGShape.h" |
37 #include "core/layout/svg/LayoutSVGText.h" | 37 #include "core/layout/svg/LayoutSVGText.h" |
38 #include "core/layout/svg/LayoutSVGViewportContainer.h" | 38 #include "core/layout/svg/LayoutSVGViewportContainer.h" |
39 #include "core/layout/svg/SVGResources.h" | 39 #include "core/layout/svg/SVGResources.h" |
40 #include "core/layout/svg/SVGResourcesCache.h" | 40 #include "core/layout/svg/SVGResourcesCache.h" |
41 #include "core/paint/DeprecatedPaintLayer.h" | 41 #include "core/paint/DeprecatedPaintLayer.h" |
42 #include "core/svg/SVGElement.h" | 42 #include "core/svg/SVGElement.h" |
43 #include "platform/geometry/TransformState.h" | 43 #include "platform/geometry/TransformState.h" |
| 44 #include "platform/graphics/StrokeData.h" |
44 | 45 |
45 namespace blink { | 46 namespace blink { |
46 | 47 |
47 static inline LayoutRect enclosingIntRectIfNotEmpty(const FloatRect& rect) | 48 static inline LayoutRect enclosingIntRectIfNotEmpty(const FloatRect& rect) |
48 { | 49 { |
49 if (rect.isEmpty()) | 50 if (rect.isEmpty()) |
50 return LayoutRect(); | 51 return LayoutRect(); |
51 return LayoutRect(enclosingIntRect(rect)); | 52 return LayoutRect(enclosingIntRect(rect)); |
52 } | 53 } |
53 | 54 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 | 456 |
456 // FIXME: trying to compute a device space transform at record time is wrong
. All clients | 457 // FIXME: trying to compute a device space transform at record time is wrong
. All clients |
457 // should be updated to avoid relying on this information, and the method sh
ould be removed. | 458 // should be updated to avoid relying on this information, and the method sh
ould be removed. |
458 AffineTransform ctm = deprecatedCalculateTransformToLayer(layoutObject) * cu
rrentContentTransformation(); | 459 AffineTransform ctm = deprecatedCalculateTransformToLayer(layoutObject) * cu
rrentContentTransformation(); |
459 ctm.scale(layoutObject->document().frameHost()->deviceScaleFactor()); | 460 ctm.scale(layoutObject->document().frameHost()->deviceScaleFactor()); |
460 | 461 |
461 return narrowPrecisionToFloat(sqrt((pow(ctm.xScale(), 2) + pow(ctm.yScale(),
2)) / 2)); | 462 return narrowPrecisionToFloat(sqrt((pow(ctm.xScale(), 2) + pow(ctm.yScale(),
2)) / 2)); |
462 } | 463 } |
463 | 464 |
464 } | 465 } |
OLD | NEW |