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. All rights reserved. | 4 * Copyright (C) 2009 Google, Inc. All rights reserved. |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransf
ormUpdate = true; } | 51 virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransf
ormUpdate = true; } |
52 virtual void setNeedsTransformUpdate() override { m_needsBoundariesOrTransfo
rmUpdate = true; } | 52 virtual void setNeedsTransformUpdate() override { m_needsBoundariesOrTransfo
rmUpdate = true; } |
53 | 53 |
54 IntSize containerSize() const { return m_containerSize; } | 54 IntSize containerSize() const { return m_containerSize; } |
55 void setContainerSize(const IntSize& containerSize) | 55 void setContainerSize(const IntSize& containerSize) |
56 { | 56 { |
57 // SVGImage::draw() does a view layout prior to painting, | 57 // SVGImage::draw() does a view layout prior to painting, |
58 // and we need that layout to know of the new size otherwise | 58 // and we need that layout to know of the new size otherwise |
59 // the layout may be incorrectly using the old size. | 59 // the layout may be incorrectly using the old size. |
60 if (m_containerSize != containerSize) | 60 if (m_containerSize != containerSize) |
61 setNeedsLayoutAndFullPaintInvalidation(); | 61 setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::Siz
eChanged); |
62 m_containerSize = containerSize; | 62 m_containerSize = containerSize; |
63 } | 63 } |
64 | 64 |
65 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS
S box coordinates. | 65 // localToBorderBoxTransform maps local SVG viewport coordinates to local CS
S box coordinates. |
66 const AffineTransform& localToBorderBoxTransform() const { return m_localToB
orderBoxTransform; } | 66 const AffineTransform& localToBorderBoxTransform() const { return m_localToB
orderBoxTransform; } |
67 bool shouldApplyViewportClip() const; | 67 bool shouldApplyViewportClip() const; |
68 | 68 |
69 virtual bool hasNonIsolatedBlendingDescendants() const override final; | 69 virtual bool hasNonIsolatedBlendingDescendants() const override final; |
70 | 70 |
71 virtual const char* name() const override { return "LayoutSVGRoot"; } | 71 virtual const char* name() const override { return "LayoutSVGRoot"; } |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 bool m_hasBoxDecorationBackground : 1; | 127 bool m_hasBoxDecorationBackground : 1; |
128 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 128 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
129 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 129 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
130 }; | 130 }; |
131 | 131 |
132 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); | 132 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); |
133 | 133 |
134 } // namespace blink | 134 } // namespace blink |
135 | 135 |
136 #endif // LayoutSVGRoot_h | 136 #endif // LayoutSVGRoot_h |
OLD | NEW |