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

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

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. Created 5 years, 6 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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGBlock.h ('k') | Source/core/layout/svg/LayoutSVGGradientStop.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 virtual FloatRect objectBoundingBox() const override final { return m_object BoundingBox; } 56 virtual FloatRect objectBoundingBox() const override final { return m_object BoundingBox; }
57 57
58 protected: 58 protected:
59 virtual LayoutObjectChildList* virtualChildren() override final { return chi ldren(); } 59 virtual LayoutObjectChildList* virtualChildren() override final { return chi ldren(); }
60 virtual const LayoutObjectChildList* virtualChildren() const override final { return children(); } 60 virtual const LayoutObjectChildList* virtualChildren() const override final { return children(); }
61 61
62 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGContainer || LayoutSVGModelObject::isOfType(type); } 62 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGContainer || LayoutSVGModelObject::isOfType(type); }
63 virtual void layout() override; 63 virtual void layout() override;
64 64
65 virtual void addChild(LayoutObject* child, LayoutObject* beforeChild = 0) ov erride final; 65 virtual void addChild(LayoutObject* child, LayoutObject* beforeChild = nullp tr) override final;
66 virtual void removeChild(LayoutObject*) override final; 66 virtual void removeChild(LayoutObject*) override final;
67 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const override final; 67 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const override final;
68 68
69 virtual FloatRect strokeBoundingBox() const override final { return m_stroke BoundingBox; } 69 virtual FloatRect strokeBoundingBox() const override final { return m_stroke BoundingBox; }
70 70
71 virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen t, HitTestAction) override; 71 virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen t, HitTestAction) override;
72 72
73 // Allow LayoutSVGTransformableContainer to hook in at the right time in lay out(). 73 // Allow LayoutSVGTransformableContainer to hook in at the right time in lay out().
74 virtual bool calculateLocalTransform() { return false; } 74 virtual bool calculateLocalTransform() { return false; }
75 75
(...skipping 18 matching lines...) Expand all
94 bool m_needsBoundariesUpdate; 94 bool m_needsBoundariesUpdate;
95 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 95 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
96 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 96 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
97 }; 97 };
98 98
99 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer()); 99 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGContainer, isSVGContainer());
100 100
101 } // namespace blink 101 } // namespace blink
102 102
103 #endif // LayoutSVGContainer_h 103 #endif // LayoutSVGContainer_h
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGBlock.h ('k') | Source/core/layout/svg/LayoutSVGGradientStop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698