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 15 matching lines...) Expand all Loading... |
26 #include "core/rendering/svg/RenderSVGModelObject.h" | 26 #include "core/rendering/svg/RenderSVGModelObject.h" |
27 | 27 |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 class SVGElement; | 30 class SVGElement; |
31 | 31 |
32 class RenderSVGContainer : public RenderSVGModelObject { | 32 class RenderSVGContainer : public RenderSVGModelObject { |
33 public: | 33 public: |
34 explicit RenderSVGContainer(SVGElement*); | 34 explicit RenderSVGContainer(SVGElement*); |
35 virtual ~RenderSVGContainer(); | 35 virtual ~RenderSVGContainer(); |
36 virtual void trace(Visitor*) override; | |
37 | 36 |
38 // If you have a RenderSVGContainer, use firstChild or lastChild instead. | 37 // If you have a RenderSVGContainer, use firstChild or lastChild instead. |
39 void slowFirstChild() const = delete; | 38 void slowFirstChild() const = delete; |
40 void slowLastChild() const = delete; | 39 void slowLastChild() const = delete; |
41 | 40 |
42 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 41 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
43 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 42 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
44 | 43 |
45 virtual void paint(const PaintInfo&, const LayoutPoint&) override; | 44 virtual void paint(const PaintInfo&, const LayoutPoint&) override; |
46 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; | 45 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 bool m_needsBoundariesUpdate; | 92 bool m_needsBoundariesUpdate; |
94 mutable bool m_hasNonIsolatedBlendingDescendants : 1; | 93 mutable bool m_hasNonIsolatedBlendingDescendants : 1; |
95 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; | 94 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; |
96 }; | 95 }; |
97 | 96 |
98 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGContainer, isSVGContainer()); | 97 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGContainer, isSVGContainer()); |
99 | 98 |
100 } // namespace blink | 99 } // namespace blink |
101 | 100 |
102 #endif // RenderSVGContainer_h | 101 #endif // RenderSVGContainer_h |
OLD | NEW |