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

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

Issue 2727093002: Account for perspective and preserve-3d in mapToVisualRectInAncestorSpace (Closed)
Patch Set: none Created 3 years, 9 months 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 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 30 matching lines...) Expand all
41 // These mapping functions map coordinates in HTML spaces. 41 // These mapping functions map coordinates in HTML spaces.
42 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, 42 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor,
43 TransformState&, 43 TransformState&,
44 MapCoordinatesFlags = ApplyContainerFlip) const final; 44 MapCoordinatesFlags = ApplyContainerFlip) const final;
45 void mapAncestorToLocal(const LayoutBoxModelObject* ancestor, 45 void mapAncestorToLocal(const LayoutBoxModelObject* ancestor,
46 TransformState&, 46 TransformState&,
47 MapCoordinatesFlags = ApplyContainerFlip) const final; 47 MapCoordinatesFlags = ApplyContainerFlip) const final;
48 const LayoutObject* pushMappingToContainer( 48 const LayoutObject* pushMappingToContainer(
49 const LayoutBoxModelObject* ancestorToStopAt, 49 const LayoutBoxModelObject* ancestorToStopAt,
50 LayoutGeometryMap&) const final; 50 LayoutGeometryMap&) const final;
51 bool mapToVisualRectInAncestorSpace( 51 bool mapToVisualRectInAncestorSpaceInternal(
52 const LayoutBoxModelObject* ancestor, 52 const LayoutBoxModelObject* ancestor,
53 LayoutRect&, 53 TransformState&,
54 VisualRectFlags = DefaultVisualRectFlags) const final; 54 VisualRectFlags = DefaultVisualRectFlags) const final;
55 55
56 AffineTransform localSVGTransform() const final { return m_localTransform; } 56 AffineTransform localSVGTransform() const final { return m_localTransform; }
57 57
58 PaintLayerType layerTypeRequired() const final { return NoPaintLayer; } 58 PaintLayerType layerTypeRequired() const final { return NoPaintLayer; }
59 59
60 protected: 60 protected:
61 void willBeDestroyed() override; 61 void willBeDestroyed() override;
62 62
63 AffineTransform m_localTransform; 63 AffineTransform m_localTransform;
(...skipping 19 matching lines...) Expand all
83 HitTestAction) override; 83 HitTestAction) override;
84 84
85 // The inherited version doesn't check for SVG effects. 85 // The inherited version doesn't check for SVG effects.
86 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override { 86 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override {
87 return false; 87 return false;
88 } 88 }
89 }; 89 };
90 90
91 } // namespace blink 91 } // namespace blink
92 #endif // LayoutSVGBlock_h 92 #endif // LayoutSVGBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698