Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 child->isSVGGradientStop()); 50 child->isSVGGradientStop());
51 } 51 }
52 52
53 void LayoutSVGModelObject::mapLocalToAncestor( 53 void LayoutSVGModelObject::mapLocalToAncestor(
54 const LayoutBoxModelObject* ancestor, 54 const LayoutBoxModelObject* ancestor,
55 TransformState& transformState, 55 TransformState& transformState,
56 MapCoordinatesFlags flags) const { 56 MapCoordinatesFlags flags) const {
57 SVGLayoutSupport::mapLocalToAncestor(this, ancestor, transformState, flags); 57 SVGLayoutSupport::mapLocalToAncestor(this, ancestor, transformState, flags);
58 } 58 }
59 59
60 LayoutRect LayoutSVGModelObject::absoluteClippedOverflowRect() const { 60 LayoutRect LayoutSVGModelObject::absoluteVisualRect() const {
61 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, 61 return SVGLayoutSupport::visualRectInAncestorSpace(*this, *view());
62 *view());
63 } 62 }
64 63
65 void LayoutSVGModelObject::mapAncestorToLocal( 64 void LayoutSVGModelObject::mapAncestorToLocal(
66 const LayoutBoxModelObject* ancestor, 65 const LayoutBoxModelObject* ancestor,
67 TransformState& transformState, 66 TransformState& transformState,
68 MapCoordinatesFlags) const { 67 MapCoordinatesFlags) const {
69 SVGLayoutSupport::mapAncestorToLocal(*this, ancestor, transformState); 68 SVGLayoutSupport::mapAncestorToLocal(*this, ancestor, transformState);
70 } 69 }
71 70
72 const LayoutObject* LayoutSVGModelObject::pushMappingToContainer( 71 const LayoutObject* LayoutSVGModelObject::pushMappingToContainer(
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 const LayoutPoint&, 136 const LayoutPoint&,
138 HitTestAction) { 137 HitTestAction) {
139 ASSERT_NOT_REACHED(); 138 ASSERT_NOT_REACHED();
140 return false; 139 return false;
141 } 140 }
142 141
143 // The SVG addOutlineRects() method adds rects in local coordinates so the 142 // The SVG addOutlineRects() method adds rects in local coordinates so the
144 // default absoluteElementBoundingBoxRect() returns incorrect values for SVG 143 // default absoluteElementBoundingBoxRect() returns incorrect values for SVG
145 // objects. Overriding this method provides access to the absolute bounds. 144 // objects. Overriding this method provides access to the absolute bounds.
146 IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const { 145 IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const {
147 return localToAbsoluteQuad( 146 return localToAbsoluteQuad(FloatQuad(visualRectInLocalSVGCoordinates()))
148 FloatQuad(paintInvalidationRectInLocalSVGCoordinates()))
149 .enclosingBoundingBox(); 147 .enclosingBoundingBox();
150 } 148 }
151 149
152 } // namespace blink 150 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698