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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.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) 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 29 matching lines...) Expand all
40 // but not all. (e.g. LayoutSVGForeignObject, LayoutSVGBlock) thus methods 40 // but not all. (e.g. LayoutSVGForeignObject, LayoutSVGBlock) thus methods
41 // required by SVG layoutObjects need to be declared on LayoutObject, but shared 41 // required by SVG layoutObjects need to be declared on LayoutObject, but shared
42 // logic can go in this class or in SVGLayoutSupport. 42 // logic can go in this class or in SVGLayoutSupport.
43 43
44 class LayoutSVGModelObject : public LayoutObject { 44 class LayoutSVGModelObject : public LayoutObject {
45 public: 45 public:
46 explicit LayoutSVGModelObject(SVGElement*); 46 explicit LayoutSVGModelObject(SVGElement*);
47 47
48 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; 48 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
49 49
50 LayoutRect absoluteClippedOverflowRect() const override; 50 LayoutRect absoluteVisualRect() const override;
51 FloatRect paintInvalidationRectInLocalSVGCoordinates() const override { 51 FloatRect visualRectInLocalSVGCoordinates() const override {
52 return m_paintInvalidationBoundingBox; 52 return m_localVisualRect;
53 } 53 }
54 54
55 void absoluteRects(Vector<IntRect>&, 55 void absoluteRects(Vector<IntRect>&,
56 const LayoutPoint& accumulatedOffset) const final; 56 const LayoutPoint& accumulatedOffset) const final;
57 void absoluteQuads(Vector<FloatQuad>&) const override; 57 void absoluteQuads(Vector<FloatQuad>&) const override;
58 FloatRect localBoundingBoxRectForAccessibility() const final; 58 FloatRect localBoundingBoxRectForAccessibility() const final;
59 59
60 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, 60 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor,
61 TransformState&, 61 TransformState&,
62 MapCoordinatesFlags = ApplyContainerFlip) const final; 62 MapCoordinatesFlags = ApplyContainerFlip) const final;
(...skipping 25 matching lines...) Expand all
88 void node() const = delete; 88 void node() const = delete;
89 89
90 // This method should never be called, SVG uses a different nodeAtPoint method 90 // This method should never be called, SVG uses a different nodeAtPoint method
91 bool nodeAtPoint(HitTestResult&, 91 bool nodeAtPoint(HitTestResult&,
92 const HitTestLocation& locationInContainer, 92 const HitTestLocation& locationInContainer,
93 const LayoutPoint& accumulatedOffset, 93 const LayoutPoint& accumulatedOffset,
94 HitTestAction) final; 94 HitTestAction) final;
95 IntRect absoluteElementBoundingBoxRect() const final; 95 IntRect absoluteElementBoundingBoxRect() const final;
96 96
97 protected: 97 protected:
98 FloatRect m_paintInvalidationBoundingBox; 98 FloatRect m_localVisualRect;
99 }; 99 };
100 100
101 } // namespace blink 101 } // namespace blink
102 102
103 #endif 103 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698