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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutReplaced.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // CSS properties like 'zoom' or 'image-orientation'. 137 // CSS properties like 'zoom' or 'image-orientation'.
138 virtual void intrinsicSizeChanged(); 138 virtual void intrinsicSizeChanged();
139 139
140 virtual LayoutReplaced* embeddedReplacedContent() const { return nullptr; } 140 virtual LayoutReplaced* embeddedReplacedContent() const { return nullptr; }
141 141
142 PositionWithAffinity positionForPoint(const LayoutPoint&) override; 142 PositionWithAffinity positionForPoint(const LayoutPoint&) override;
143 143
144 bool isOfType(LayoutObjectType type) const override { 144 bool isOfType(LayoutObjectType type) const override {
145 return type == LayoutObjectLayoutReplaced || LayoutBox::isOfType(type); 145 return type == LayoutObjectLayoutReplaced || LayoutBox::isOfType(type);
146 } 146 }
147 char objectSize() const override { return sizeof(this); }
147 148
148 private: 149 private:
149 void computePreferredLogicalWidths() final; 150 void computePreferredLogicalWidths() final;
150 151
151 bool canBeSelectionLeaf() const override { return true; } 152 bool canBeSelectionLeaf() const override { return true; }
152 153
153 void computeIntrinsicSizingInfoForReplacedContent(LayoutReplaced*, 154 void computeIntrinsicSizingInfoForReplacedContent(LayoutReplaced*,
154 IntrinsicSizingInfo&) const; 155 IntrinsicSizingInfo&) const;
155 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; 156 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const;
156 157
157 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; 158 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const;
158 159
159 mutable LayoutSize m_intrinsicSize; 160 mutable LayoutSize m_intrinsicSize;
160 }; 161 };
161 162
162 } // namespace blink 163 } // namespace blink
163 164
164 #endif 165 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutQuote.h ('k') | third_party/WebKit/Source/core/layout/LayoutRuby.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698