OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2009 Google, Inc. | 3 * Copyright (C) 2009 Google, 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 20 matching lines...) Expand all Loading... |
31 public: | 31 public: |
32 explicit LayoutSVGTransformableContainer(SVGGraphicsElement*); | 32 explicit LayoutSVGTransformableContainer(SVGGraphicsElement*); |
33 | 33 |
34 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; | 34 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; |
35 | 35 |
36 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVGTransformableContainer || LayoutSVGContainer::isOfType(type); } | 36 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVGTransformableContainer || LayoutSVGContainer::isOfType(type); } |
37 const AffineTransform& localToSVGParentTransform() const override { return m
_localTransform; } | 37 const AffineTransform& localToSVGParentTransform() const override { return m
_localTransform; } |
38 const FloatSize& additionalTranslation() const { return m_additionalTranslat
ion; } | 38 const FloatSize& additionalTranslation() const { return m_additionalTranslat
ion; } |
39 | 39 |
40 void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; } | 40 void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; } |
41 bool didTransformToRootUpdate() const override { return m_didTransformToRoot
Update; } | |
42 | 41 |
43 private: | 42 private: |
44 bool calculateLocalTransform() override; | 43 bool calculateLocalTransform() override; |
45 AffineTransform localSVGTransform() const override { return m_localTransform
; } | 44 AffineTransform localSVGTransform() const override { return m_localTransform
; } |
46 | 45 |
47 bool m_needsTransformUpdate : 1; | 46 bool m_needsTransformUpdate : 1; |
48 bool m_didTransformToRootUpdate : 1; | |
49 AffineTransform m_localTransform; | 47 AffineTransform m_localTransform; |
50 FloatSize m_additionalTranslation; | 48 FloatSize m_additionalTranslation; |
51 }; | 49 }; |
52 | 50 |
53 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGTransformableContainer, isSVGTransforma
bleContainer()); | 51 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGTransformableContainer, isSVGTransforma
bleContainer()); |
54 | 52 |
55 } // namespace blink | 53 } // namespace blink |
56 | 54 |
57 #endif // LayoutSVGTransformableContainer_h | 55 #endif // LayoutSVGTransformableContainer_h |
OLD | NEW |