| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 const char* name() const override { return "LayoutSVGViewportContainer"; } | 44 const char* name() const override { return "LayoutSVGViewportContainer"; } |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVGViewportContainer || LayoutSVGContainer::isOfType(type); } | 47 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVGViewportContainer || LayoutSVGContainer::isOfType(type); } |
| 48 | 48 |
| 49 AffineTransform viewportTransform() const; | 49 AffineTransform viewportTransform() const; |
| 50 const AffineTransform& localToSVGParentTransform() const override { return m
_localToParentTransform; } | 50 const AffineTransform& localToSVGParentTransform() const override { return m
_localToParentTransform; } |
| 51 | 51 |
| 52 void calcViewport() override; | 52 void calcViewport() override; |
| 53 TransformChange calculateLocalTransform() override; | 53 SVGTransformChange calculateLocalTransform() override; |
| 54 | 54 |
| 55 bool pointIsInsideViewportClip(const FloatPoint& pointInParent) override; | 55 bool pointIsInsideViewportClip(const FloatPoint& pointInParent) override; |
| 56 | 56 |
| 57 FloatRect m_viewport; | 57 FloatRect m_viewport; |
| 58 mutable AffineTransform m_localToParentTransform; | 58 mutable AffineTransform m_localToParentTransform; |
| 59 bool m_isLayoutSizeChanged : 1; | 59 bool m_isLayoutSizeChanged : 1; |
| 60 bool m_needsTransformUpdate : 1; | 60 bool m_needsTransformUpdate : 1; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGViewportContainer, isSVGViewportContain
er()); | 63 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGViewportContainer, isSVGViewportContain
er()); |
| 64 | 64 |
| 65 } // namespace blink | 65 } // namespace blink |
| 66 | 66 |
| 67 #endif // LayoutSVGViewportContainer_h | 67 #endif // LayoutSVGViewportContainer_h |
| OLD | NEW |