Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.h

Issue 2748103015: Replace ASSERT with DCHECK in core/layout/<sub dirs> (Closed)
Patch Set: Rebase with latest Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698