| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 LayoutInvalidationReason::SizeChanged); | 74 LayoutInvalidationReason::SizeChanged); |
| 75 } | 75 } |
| 76 m_containerSize = containerSize; | 76 m_containerSize = containerSize; |
| 77 } | 77 } |
| 78 | 78 |
| 79 // localToBorderBoxTransform maps local SVG viewport coordinates to local CSS | 79 // localToBorderBoxTransform maps local SVG viewport coordinates to local CSS |
| 80 // box coordinates. | 80 // box coordinates. |
| 81 const AffineTransform& localToBorderBoxTransform() const { | 81 const AffineTransform& localToBorderBoxTransform() const { |
| 82 return m_localToBorderBoxTransform; | 82 return m_localToBorderBoxTransform; |
| 83 } | 83 } |
| 84 |
| 84 bool shouldApplyViewportClip() const; | 85 bool shouldApplyViewportClip() const; |
| 86 bool shouldClipOverflow() const override { |
| 87 return LayoutBox::shouldClipOverflow() || shouldApplyViewportClip(); |
| 88 } |
| 85 | 89 |
| 86 LayoutRect visualOverflowRect() const override; | 90 LayoutRect visualOverflowRect() const override; |
| 87 LayoutRect overflowClipRect( | 91 LayoutRect overflowClipRect( |
| 88 const LayoutPoint& location, | 92 const LayoutPoint& location, |
| 89 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; | 93 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; |
| 90 | 94 |
| 91 bool hasNonIsolatedBlendingDescendants() const final; | 95 bool hasNonIsolatedBlendingDescendants() const final; |
| 92 | 96 |
| 93 const char* name() const override { return "LayoutSVGRoot"; } | 97 const char* name() const override { return "LayoutSVGRoot"; } |
| 94 | 98 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 bool m_hasBoxDecorationBackground : 1; | 178 bool m_hasBoxDecorationBackground : 1; |
| 175 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 179 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
| 176 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 180 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
| 177 }; | 181 }; |
| 178 | 182 |
| 179 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); | 183 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); |
| 180 | 184 |
| 181 } // namespace blink | 185 } // namespace blink |
| 182 | 186 |
| 183 #endif // LayoutSVGRoot_h | 187 #endif // LayoutSVGRoot_h |
| OLD | NEW |