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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void setContainerSize(const IntSize& containerSize) { | 67 void setContainerSize(const IntSize& containerSize) { |
68 // SVGImage::draw() does a view layout prior to painting, | 68 // SVGImage::draw() does a view layout prior to painting, |
69 // and we need that layout to know of the new size otherwise | 69 // and we need that layout to know of the new size otherwise |
70 // the layout may be incorrectly using the old size. | 70 // the layout may be incorrectly using the old size. |
71 if (m_containerSize != containerSize) | 71 if (m_containerSize != containerSize) |
72 setNeedsLayoutAndFullPaintInvalidation( | 72 setNeedsLayoutAndFullPaintInvalidation( |
73 LayoutInvalidationReason::SizeChanged); | 73 LayoutInvalidationReason::SizeChanged); |
74 m_containerSize = containerSize; | 74 m_containerSize = containerSize; |
75 } | 75 } |
76 | 76 |
77 // localToBorderBoxTransform maps local SVG viewport coordinates to local CSS
box coordinates. | 77 // localToBorderBoxTransform maps local SVG viewport coordinates to local CSS |
| 78 // box coordinates. |
78 const AffineTransform& localToBorderBoxTransform() const { | 79 const AffineTransform& localToBorderBoxTransform() const { |
79 return m_localToBorderBoxTransform; | 80 return m_localToBorderBoxTransform; |
80 } | 81 } |
81 bool shouldApplyViewportClip() const; | 82 bool shouldApplyViewportClip() const; |
82 | 83 |
83 LayoutRect visualOverflowRect() const override; | 84 LayoutRect visualOverflowRect() const override; |
84 LayoutRect overflowClipRect( | 85 LayoutRect overflowClipRect( |
85 const LayoutPoint& location, | 86 const LayoutPoint& location, |
86 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; | 87 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; |
87 | 88 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 bool m_hasBoxDecorationBackground : 1; | 168 bool m_hasBoxDecorationBackground : 1; |
168 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 169 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
169 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 170 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
170 }; | 171 }; |
171 | 172 |
172 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); | 173 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); |
173 | 174 |
174 } // namespace blink | 175 } // namespace blink |
175 | 176 |
176 #endif // LayoutSVGRoot_h | 177 #endif // LayoutSVGRoot_h |
OLD | NEW |