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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 class CORE_EXPORT LayoutMultiColumnFlowThread : public LayoutFlowThread, 143 class CORE_EXPORT LayoutMultiColumnFlowThread : public LayoutFlowThread,
144 public FragmentationContext { 144 public FragmentationContext {
145 public: 145 public:
146 ~LayoutMultiColumnFlowThread() override; 146 ~LayoutMultiColumnFlowThread() override;
147 147
148 static LayoutMultiColumnFlowThread* createAnonymous( 148 static LayoutMultiColumnFlowThread* createAnonymous(
149 Document&, 149 Document&,
150 const ComputedStyle& parentStyle); 150 const ComputedStyle& parentStyle);
151 151
152 bool isLayoutMultiColumnFlowThread() const final { return true; } 152 bool isLayoutMultiColumnFlowThread() const final { return true; }
153 char objectSize() const override { return sizeof(this); }
153 154
154 LayoutBlockFlow* multiColumnBlockFlow() const { 155 LayoutBlockFlow* multiColumnBlockFlow() const {
155 return toLayoutBlockFlow(parent()); 156 return toLayoutBlockFlow(parent());
156 } 157 }
157 158
158 LayoutMultiColumnSet* firstMultiColumnSet() const; 159 LayoutMultiColumnSet* firstMultiColumnSet() const;
159 LayoutMultiColumnSet* lastMultiColumnSet() const; 160 LayoutMultiColumnSet* lastMultiColumnSet() const;
160 161
161 // Return the first column set or spanner placeholder. 162 // Return the first column set or spanner placeholder.
162 LayoutBox* firstMultiColumnBox() const { return nextSiblingBox(); } 163 LayoutBox* firstMultiColumnBox() const { return nextSiblingBox(); }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // LayoutObject. 372 // LayoutObject.
372 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, 373 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread,
373 LayoutFlowThread, 374 LayoutFlowThread,
374 object, 375 object,
375 object->isLayoutMultiColumnFlowThread(), 376 object->isLayoutMultiColumnFlowThread(),
376 object.isLayoutMultiColumnFlowThread()); 377 object.isLayoutMultiColumnFlowThread());
377 378
378 } // namespace blink 379 } // namespace blink
379 380
380 #endif // LayoutMultiColumnFlowThread_h 381 #endif // LayoutMultiColumnFlowThread_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutMenuList.h ('k') | third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698