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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGInline.h

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 Computer Inc. 3 * Copyright (C) 2006 Apple Computer Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 23 matching lines...) Expand all
34 bool isOfType(LayoutObjectType type) const override { 34 bool isOfType(LayoutObjectType type) const override {
35 return type == LayoutObjectSVG || type == LayoutObjectSVGInline || 35 return type == LayoutObjectSVG || type == LayoutObjectSVGInline ||
36 LayoutInline::isOfType(type); 36 LayoutInline::isOfType(type);
37 } 37 }
38 38
39 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; 39 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
40 40
41 // Chapter 10.4 of the SVG Specification say that we should use the 41 // Chapter 10.4 of the SVG Specification say that we should use the
42 // object bounding box of the parent text element. 42 // object bounding box of the parent text element.
43 // We search for the root text element and take its bounding box. 43 // We search for the root text element and take its bounding box.
44 // It is also necessary to take the stroke and paint invalidation rect of 44 // It is also necessary to take the stroke and visual rect of this element,
45 // this element, since we need it for filters. 45 // since we need it for filters.
46 FloatRect objectBoundingBox() const final; 46 FloatRect objectBoundingBox() const final;
47 FloatRect strokeBoundingBox() const final; 47 FloatRect strokeBoundingBox() const final;
48 FloatRect paintInvalidationRectInLocalSVGCoordinates() const final; 48 FloatRect visualRectInLocalSVGCoordinates() const final;
49 49
50 LayoutRect absoluteClippedOverflowRect() const final; 50 LayoutRect absoluteVisualRect() const final;
51 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, 51 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor,
52 TransformState&, 52 TransformState&,
53 MapCoordinatesFlags = ApplyContainerFlip) const final; 53 MapCoordinatesFlags = ApplyContainerFlip) const final;
54 const LayoutObject* pushMappingToContainer( 54 const LayoutObject* pushMappingToContainer(
55 const LayoutBoxModelObject* ancestorToStopAt, 55 const LayoutBoxModelObject* ancestorToStopAt,
56 LayoutGeometryMap&) const final; 56 LayoutGeometryMap&) const final;
57 void absoluteQuads(Vector<FloatQuad>&) const final; 57 void absoluteQuads(Vector<FloatQuad>&) const final;
58 58
59 private: 59 private:
60 InlineFlowBox* createInlineFlowBox() final; 60 InlineFlowBox* createInlineFlowBox() final;
61 61
62 void invalidateTreeIfNeeded(const PaintInvalidationState&) final; 62 void invalidateTreeIfNeeded(const PaintInvalidationState&) final;
63 63
64 void willBeDestroyed() final; 64 void willBeDestroyed() final;
65 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; 65 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final;
66 66
67 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) final; 67 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) final;
68 void removeChild(LayoutObject*) final; 68 void removeChild(LayoutObject*) final;
69 }; 69 };
70 70
71 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInline, isSVGInline()); 71 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInline, isSVGInline());
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 #endif // LayoutSVGInline_H 75 #endif // LayoutSVGInline_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698