OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2009 Google, Inc. | 4 * Copyright (C) 2009 Google, Inc. |
5 * Copyright (C) 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2009 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 private: | 45 private: |
46 virtual bool isSVGViewportContainer() const OVERRIDE { return true; } | 46 virtual bool isSVGViewportContainer() const OVERRIDE { return true; } |
47 virtual const char* renderName() const OVERRIDE { return "RenderSVGViewportC
ontainer"; } | 47 virtual const char* renderName() const OVERRIDE { return "RenderSVGViewportC
ontainer"; } |
48 | 48 |
49 AffineTransform viewportTransform() const; | 49 AffineTransform viewportTransform() const; |
50 virtual const AffineTransform& localToParentTransform() const OVERRIDE { ret
urn m_localToParentTransform; } | 50 virtual const AffineTransform& localToParentTransform() const OVERRIDE { ret
urn m_localToParentTransform; } |
51 | 51 |
52 virtual void calcViewport() OVERRIDE; | 52 virtual void calcViewport() OVERRIDE; |
53 virtual bool calculateLocalTransform() OVERRIDE; | 53 virtual bool calculateLocalTransform() OVERRIDE; |
54 | 54 |
55 virtual void applyViewportClip(PaintInfo&) OVERRIDE; | |
56 virtual bool pointIsInsideViewportClip(const FloatPoint& pointInParent) OVER
RIDE; | 55 virtual bool pointIsInsideViewportClip(const FloatPoint& pointInParent) OVER
RIDE; |
57 | 56 |
58 FloatRect m_viewport; | 57 FloatRect m_viewport; |
59 mutable AffineTransform m_localToParentTransform; | 58 mutable AffineTransform m_localToParentTransform; |
60 bool m_didTransformToRootUpdate : 1; | 59 bool m_didTransformToRootUpdate : 1; |
61 bool m_isLayoutSizeChanged : 1; | 60 bool m_isLayoutSizeChanged : 1; |
62 bool m_needsTransformUpdate : 1; | 61 bool m_needsTransformUpdate : 1; |
63 }; | 62 }; |
64 | 63 |
65 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGViewportContainer, isSVGViewportContain
er()); | 64 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGViewportContainer, isSVGViewportContain
er()); |
66 | 65 |
67 } // namespace blink | 66 } // namespace blink |
68 | 67 |
69 #endif // RenderSVGViewportContainer_h | 68 #endif // RenderSVGViewportContainer_h |
OLD | NEW |