LEFT | RIGHT |
(no file at all) | |
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Pass our local paint rect to computeRectForRepaint() which will | 65 // Pass our local paint rect to computeRectForRepaint() which will |
66 // map to parent coords and recurse up the parent chain. | 66 // map to parent coords and recurse up the parent chain. |
67 FloatRect repaintRect = repaintRectForRendererInLocalCoordinatesExcludingSVG
Shadow(renderer); | 67 FloatRect repaintRect = repaintRectForRendererInLocalCoordinatesExcludingSVG
Shadow(renderer); |
68 const SVGRenderStyle& svgStyle = renderer.style().svgStyle(); | 68 const SVGRenderStyle& svgStyle = renderer.style().svgStyle(); |
69 if (const ShadowData* shadow = svgStyle.shadow()) | 69 if (const ShadowData* shadow = svgStyle.shadow()) |
70 shadow->adjustRectForShadow(repaintRect); | 70 shadow->adjustRectForShadow(repaintRect); |
71 return enclosingLayoutRect(renderer.computeFloatRectForRepaint(repaintRect,
repaintContainer)); | 71 return enclosingLayoutRect(renderer.computeFloatRectForRepaint(repaintRect,
repaintContainer)); |
72 } | 72 } |
73 | 73 |
74 FloatRect SVGRenderSupport::computeFloatRectForRepaint(const RenderElement& rend
erer, const FloatRect& repaintRect, const RenderLayerModelObject* repaintContain
er, bool fixed) | 74 FloatRect SVGRenderSupport::computeFloatRectForRepaint(const RenderElement& rend
erer, const FloatRect& repaintRect, const RenderLayerModelObject* repaintContain
er, bool fixed, bool useInclusiveIntersection, bool* intersects) |
75 { | 75 { |
76 FloatRect adjustedRect = repaintRect; | 76 FloatRect adjustedRect = repaintRect; |
77 const SVGRenderStyle& svgStyle = renderer.style().svgStyle(); | 77 const SVGRenderStyle& svgStyle = renderer.style().svgStyle(); |
78 if (const ShadowData* shadow = svgStyle.shadow()) | 78 if (const ShadowData* shadow = svgStyle.shadow()) |
79 shadow->adjustRectForShadow(adjustedRect); | 79 shadow->adjustRectForShadow(adjustedRect); |
80 adjustedRect.inflate(renderer.style().outlineWidth()); | 80 adjustedRect.inflate(renderer.style().outlineWidth()); |
81 | 81 |
82 // Translate to coords in our parent renderer, and then call computeFloatRec
tForRepaint() on our parent. | 82 // Translate to coords in our parent renderer, and then call computeFloatRec
tForRepaint() on our parent. |
83 adjustedRect = renderer.localToParentTransform().mapRect(adjustedRect); | 83 adjustedRect = renderer.localToParentTransform().mapRect(adjustedRect); |
84 return renderer.parent()->computeFloatRectForRepaint(adjustedRect, repaintCo
ntainer, fixed); | 84 return renderer.parent()->computeFloatRectForRepaint(adjustedRect, repaintCo
ntainer, fixed, useInclusiveIntersection, intersects); |
85 } | 85 } |
86 | 86 |
87 const RenderElement& SVGRenderSupport::localToParentTransform(const RenderElemen
t& renderer, AffineTransform &transform) | 87 const RenderElement& SVGRenderSupport::localToParentTransform(const RenderElemen
t& renderer, AffineTransform &transform) |
88 { | 88 { |
89 ASSERT(renderer.parent()); | 89 ASSERT(renderer.parent()); |
90 auto& parent = *renderer.parent(); | 90 auto& parent = *renderer.parent(); |
91 | 91 |
92 // At the SVG/HTML boundary (aka RenderSVGRoot), we apply the localToBorderB
oxTransform | 92 // At the SVG/HTML boundary (aka RenderSVGRoot), we apply the localToBorderB
oxTransform |
93 // to map an element from SVG viewport coordinates to CSS box coordinates. | 93 // to map an element from SVG viewport coordinates to CSS box coordinates. |
94 if (is<RenderSVGRoot>(parent)) | 94 if (is<RenderSVGRoot>(parent)) |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 continue; | 493 continue; |
494 | 494 |
495 if (ancestor->computedStyle()->svgStyle().hasMasker()) | 495 if (ancestor->computedStyle()->svgStyle().hasMasker()) |
496 downcast<SVGGraphicsElement>(*ancestor).setShouldIsolateBlending(mas
kedAncestorShouldIsolateBlending); | 496 downcast<SVGGraphicsElement>(*ancestor).setShouldIsolateBlending(mas
kedAncestorShouldIsolateBlending); |
497 | 497 |
498 return; | 498 return; |
499 } | 499 } |
500 } | 500 } |
501 #endif | 501 #endif |
502 } | 502 } |
LEFT | RIGHT |