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 22 matching lines...) Expand all Loading... |
33 class LayoutSVGContainer : public LayoutSVGModelObject { | 33 class LayoutSVGContainer : public LayoutSVGModelObject { |
34 public: | 34 public: |
35 explicit LayoutSVGContainer(SVGElement*); | 35 explicit LayoutSVGContainer(SVGElement*); |
36 ~LayoutSVGContainer() override; | 36 ~LayoutSVGContainer() override; |
37 | 37 |
38 // If you have a LayoutSVGContainer, use firstChild or lastChild instead. | 38 // If you have a LayoutSVGContainer, use firstChild or lastChild instead. |
39 void slowFirstChild() const = delete; | 39 void slowFirstChild() const = delete; |
40 void slowLastChild() const = delete; | 40 void slowLastChild() const = delete; |
41 | 41 |
42 LayoutObject* firstChild() const { | 42 LayoutObject* firstChild() const { |
43 ASSERT(children() == virtualChildren()); | 43 DCHECK_EQ(children(), virtualChildren()); |
44 return children()->firstChild(); | 44 return children()->firstChild(); |
45 } | 45 } |
46 LayoutObject* lastChild() const { | 46 LayoutObject* lastChild() const { |
47 ASSERT(children() == virtualChildren()); | 47 DCHECK_EQ(children(), virtualChildren()); |
48 return children()->lastChild(); | 48 return children()->lastChild(); |
49 } | 49 } |
50 | 50 |
51 void paint(const PaintInfo&, const LayoutPoint&) const override; | 51 void paint(const PaintInfo&, const LayoutPoint&) const override; |
52 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; | 52 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; |
53 void setNeedsBoundariesUpdate() final { m_needsBoundariesUpdate = true; } | 53 void setNeedsBoundariesUpdate() final { m_needsBoundariesUpdate = true; } |
54 bool didScreenScaleFactorChange() const { | 54 bool didScreenScaleFactorChange() const { |
55 return m_didScreenScaleFactorChange; | 55 return m_didScreenScaleFactorChange; |
56 } | 56 } |
57 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } | 57 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 bool m_didScreenScaleFactorChange : 1; | 107 bool m_didScreenScaleFactorChange : 1; |
108 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 108 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
109 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 109 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
110 }; | 110 }; |
111 | 111 |
112 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer()); | 112 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer()); |
113 | 113 |
114 } // namespace blink | 114 } // namespace blink |
115 | 115 |
116 #endif // LayoutSVGContainer_h | 116 #endif // LayoutSVGContainer_h |
OLD | NEW |