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

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

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 LayoutRect visualOverflowRect() const override; 90 LayoutRect visualOverflowRect() const override;
91 LayoutRect overflowClipRect( 91 LayoutRect overflowClipRect(
92 const LayoutPoint& location, 92 const LayoutPoint& location,
93 OverlayScrollbarClipBehavior = 93 OverlayScrollbarClipBehavior =
94 IgnorePlatformOverlayScrollbarSize) const override; 94 IgnorePlatformOverlayScrollbarSize) const override;
95 95
96 bool hasNonIsolatedBlendingDescendants() const final; 96 bool hasNonIsolatedBlendingDescendants() const final;
97 97
98 const char* name() const override { return "LayoutSVGRoot"; } 98 const char* name() const override { return "LayoutSVGRoot"; }
99 char objectSize() const override { return sizeof(this); }
99 100
100 private: 101 private:
101 const LayoutObjectChildList* children() const { return &m_children; } 102 const LayoutObjectChildList* children() const { return &m_children; }
102 LayoutObjectChildList* children() { return &m_children; } 103 LayoutObjectChildList* children() { return &m_children; }
103 104
104 LayoutObjectChildList* virtualChildren() override { return children(); } 105 LayoutObjectChildList* virtualChildren() override { return children(); }
105 const LayoutObjectChildList* virtualChildren() const override { 106 const LayoutObjectChildList* virtualChildren() const override {
106 return children(); 107 return children();
107 } 108 }
108 109
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 bool m_hasBoxDecorationBackground : 1; 180 bool m_hasBoxDecorationBackground : 1;
180 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 181 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
181 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 182 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
182 }; 183 };
183 184
184 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 185 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
185 186
186 } // namespace blink 187 } // namespace blink
187 188
188 #endif // LayoutSVGRoot_h 189 #endif // LayoutSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698