| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 LayoutRect LayoutSVGModelObject::absoluteClippedOverflowRect() const { | 61 LayoutRect LayoutSVGModelObject::absoluteClippedOverflowRect() const { |
| 62 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, | 62 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, |
| 63 *view()); | 63 *view()); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void LayoutSVGModelObject::mapAncestorToLocal( | 66 void LayoutSVGModelObject::mapAncestorToLocal( |
| 67 const LayoutBoxModelObject* ancestor, | 67 const LayoutBoxModelObject* ancestor, |
| 68 TransformState& transformState, | 68 TransformState& transformState, |
| 69 MapCoordinatesFlags) const { | 69 MapCoordinatesFlags flags) const { |
| 70 SVGLayoutSupport::mapAncestorToLocal(*this, ancestor, transformState); | 70 SVGLayoutSupport::mapAncestorToLocal(*this, ancestor, transformState, flags); |
| 71 } | 71 } |
| 72 | 72 |
| 73 const LayoutObject* LayoutSVGModelObject::pushMappingToContainer( | 73 const LayoutObject* LayoutSVGModelObject::pushMappingToContainer( |
| 74 const LayoutBoxModelObject* ancestorToStopAt, | 74 const LayoutBoxModelObject* ancestorToStopAt, |
| 75 LayoutGeometryMap& geometryMap) const { | 75 LayoutGeometryMap& geometryMap) const { |
| 76 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, | 76 return SVGLayoutSupport::pushMappingToContainer(this, ancestorToStopAt, |
| 77 geometryMap); | 77 geometryMap); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void LayoutSVGModelObject::absoluteRects( | 80 void LayoutSVGModelObject::absoluteRects( |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // The SVG addOutlineRects() method adds rects in local coordinates so the | 150 // The SVG addOutlineRects() method adds rects in local coordinates so the |
| 151 // default absoluteElementBoundingBoxRect() returns incorrect values for SVG | 151 // default absoluteElementBoundingBoxRect() returns incorrect values for SVG |
| 152 // objects. Overriding this method provides access to the absolute bounds. | 152 // objects. Overriding this method provides access to the absolute bounds. |
| 153 IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const { | 153 IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const { |
| 154 return localToAbsoluteQuad( | 154 return localToAbsoluteQuad( |
| 155 FloatQuad(paintInvalidationRectInLocalSVGCoordinates())) | 155 FloatQuad(paintInvalidationRectInLocalSVGCoordinates())) |
| 156 .enclosingBoundingBox(); | 156 .enclosingBoundingBox(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace blink | 159 } // namespace blink |
| OLD | NEW |