OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 } | 58 } |
59 | 59 |
60 LayoutRect LayoutSVGModelObject::absoluteClippedOverflowRect() const { | 60 LayoutRect LayoutSVGModelObject::absoluteClippedOverflowRect() const { |
61 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, | 61 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, |
62 *view()); | 62 *view()); |
63 } | 63 } |
64 | 64 |
65 void LayoutSVGModelObject::mapAncestorToLocal( | 65 void LayoutSVGModelObject::mapAncestorToLocal( |
66 const LayoutBoxModelObject* ancestor, | 66 const LayoutBoxModelObject* ancestor, |
67 TransformState& transformState, | 67 TransformState& transformState, |
68 MapCoordinatesFlags) const { | 68 MapCoordinatesFlags flags) const { |
69 SVGLayoutSupport::mapAncestorToLocal(*this, ancestor, transformState); | 69 SVGLayoutSupport::mapAncestorToLocal(*this, ancestor, transformState, flags); |
70 } | 70 } |
71 | 71 |
72 const LayoutObject* LayoutSVGModelObject::pushMappingToContainer( | 72 const LayoutObject* LayoutSVGModelObject::pushMappingToContainer( |
73 const LayoutBoxModelObject* ancestorToStopAt, | 73 const LayoutBoxModelObject* ancestorToStopAt, |
74 LayoutGeometryMap& geometryMap) const { | 74 LayoutGeometryMap& geometryMap) const { |
75 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, | 75 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, |
76 geometryMap); | 76 geometryMap); |
77 } | 77 } |
78 | 78 |
79 void LayoutSVGModelObject::absoluteRects( | 79 void LayoutSVGModelObject::absoluteRects( |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // The SVG addOutlineRects() method adds rects in local coordinates so the | 143 // The SVG addOutlineRects() method adds rects in local coordinates so the |
144 // default absoluteElementBoundingBoxRect() returns incorrect values for SVG | 144 // default absoluteElementBoundingBoxRect() returns incorrect values for SVG |
145 // objects. Overriding this method provides access to the absolute bounds. | 145 // objects. Overriding this method provides access to the absolute bounds. |
146 IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const { | 146 IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const { |
147 return localToAbsoluteQuad( | 147 return localToAbsoluteQuad( |
148 FloatQuad(paintInvalidationRectInLocalSVGCoordinates())) | 148 FloatQuad(paintInvalidationRectInLocalSVGCoordinates())) |
149 .enclosingBoundingBox(); | 149 .enclosingBoundingBox(); |
150 } | 150 } |
151 | 151 |
152 } // namespace blink | 152 } // namespace blink |
OLD | NEW |