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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGInline.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) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 FloatRect LayoutSVGInline::strokeBoundingBox() const { 68 FloatRect LayoutSVGInline::strokeBoundingBox() const {
69 if (const LayoutSVGText* textRoot = 69 if (const LayoutSVGText* textRoot =
70 LayoutSVGText::locateLayoutSVGTextAncestor(this)) 70 LayoutSVGText::locateLayoutSVGTextAncestor(this))
71 return textRoot->strokeBoundingBox(); 71 return textRoot->strokeBoundingBox();
72 72
73 return FloatRect(); 73 return FloatRect();
74 } 74 }
75 75
76 FloatRect LayoutSVGInline::paintInvalidationRectInLocalSVGCoordinates() const { 76 FloatRect LayoutSVGInline::visualRectInLocalSVGCoordinates() const {
77 if (const LayoutSVGText* textRoot = 77 if (const LayoutSVGText* textRoot =
78 LayoutSVGText::locateLayoutSVGTextAncestor(this)) 78 LayoutSVGText::locateLayoutSVGTextAncestor(this))
79 return textRoot->paintInvalidationRectInLocalSVGCoordinates(); 79 return textRoot->visualRectInLocalSVGCoordinates();
80 80
81 return FloatRect(); 81 return FloatRect();
82 } 82 }
83 83
84 LayoutRect LayoutSVGInline::absoluteClippedOverflowRect() const { 84 LayoutRect LayoutSVGInline::absoluteVisualRect() const {
85 return SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(*this, 85 return SVGLayoutSupport::visualRectInAncestorSpace(*this, *view());
86 *view());
87 } 86 }
88 87
89 void LayoutSVGInline::mapLocalToAncestor(const LayoutBoxModelObject* ancestor, 88 void LayoutSVGInline::mapLocalToAncestor(const LayoutBoxModelObject* ancestor,
90 TransformState& transformState, 89 TransformState& transformState,
91 MapCoordinatesFlags flags) const { 90 MapCoordinatesFlags flags) const {
92 SVGLayoutSupport::mapLocalToAncestor(this, ancestor, transformState, flags); 91 SVGLayoutSupport::mapLocalToAncestor(this, ancestor, transformState, flags);
93 } 92 }
94 93
95 const LayoutObject* LayoutSVGInline::pushMappingToContainer( 94 const LayoutObject* LayoutSVGInline::pushMappingToContainer(
96 const LayoutBoxModelObject* ancestorToStopAt, 95 const LayoutBoxModelObject* ancestorToStopAt,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 148
150 void LayoutSVGInline::invalidateTreeIfNeeded( 149 void LayoutSVGInline::invalidateTreeIfNeeded(
151 const PaintInvalidationState& paintInvalidationState) { 150 const PaintInvalidationState& paintInvalidationState) {
152 // TODO(wangxianzhu): Verify if the inherited 151 // TODO(wangxianzhu): Verify if the inherited
153 // LayoutBoxModelObject::invalidateTreeIfNeeded() is applicable here. 152 // LayoutBoxModelObject::invalidateTreeIfNeeded() is applicable here.
154 // If yes, remove this overriding method. 153 // If yes, remove this overriding method.
155 LayoutObject::invalidateTreeIfNeeded(paintInvalidationState); 154 LayoutObject::invalidateTreeIfNeeded(paintInvalidationState);
156 } 155 }
157 156
158 } // namespace blink 157 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698