| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 #ifndef LayoutSVGRoot_h | 23 #ifndef LayoutSVGRoot_h |
| 24 #define LayoutSVGRoot_h | 24 #define LayoutSVGRoot_h |
| 25 | 25 |
| 26 #include "core/layout/LayoutReplaced.h" | 26 #include "core/layout/LayoutReplaced.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 class SVGElement; | 30 class SVGElement; |
| 31 | 31 |
| 32 class LayoutSVGRoot final : public LayoutReplaced { | 32 class CORE_EXPORT LayoutSVGRoot final : public LayoutReplaced { |
| 33 public: | 33 public: |
| 34 explicit LayoutSVGRoot(SVGElement*); | 34 explicit LayoutSVGRoot(SVGElement*); |
| 35 ~LayoutSVGRoot() override; | 35 ~LayoutSVGRoot() override; |
| 36 | 36 |
| 37 bool isEmbeddedThroughSVGImage() const; | 37 bool isEmbeddedThroughSVGImage() const; |
| 38 bool isEmbeddedThroughFrameContainingSVGDocument() const; | 38 bool isEmbeddedThroughFrameContainingSVGDocument() const; |
| 39 | 39 |
| 40 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; | 40 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; |
| 41 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La
youtRect&, VisualRectFlags = DefaultVisualRectFlags) const override; | |
| 42 | 41 |
| 43 // If you have a LayoutSVGRoot, use firstChild or lastChild instead. | 42 // If you have a LayoutSVGRoot, use firstChild or lastChild instead. |
| 44 void slowFirstChild() const = delete; | 43 void slowFirstChild() const = delete; |
| 45 void slowLastChild() const = delete; | 44 void slowLastChild() const = delete; |
| 46 | 45 |
| 47 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 46 LayoutObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
| 48 LayoutObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 47 LayoutObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
| 49 | 48 |
| 50 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } | 49 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } |
| 51 void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdat
e = true; } | 50 void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdat
e = true; } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 bool m_hasBoxDecorationBackground : 1; | 128 bool m_hasBoxDecorationBackground : 1; |
| 130 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 129 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
| 131 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 130 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
| 132 }; | 131 }; |
| 133 | 132 |
| 134 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); | 133 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); |
| 135 | 134 |
| 136 } // namespace blink | 135 } // namespace blink |
| 137 | 136 |
| 138 #endif // LayoutSVGRoot_h | 137 #endif // LayoutSVGRoot_h |
| OLD | NEW |