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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights
8 * reserved. 8 * reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 LayoutRect logicalRectForWritingModeAndDirection(const LayoutRect&) const; 301 LayoutRect logicalRectForWritingModeAndDirection(const LayoutRect&) const;
302 302
303 CellSpan dirtiedRows(const LayoutRect& visualRect) const; 303 CellSpan dirtiedRows(const LayoutRect& visualRect) const;
304 CellSpan dirtiedEffectiveColumns(const LayoutRect& visualRect) const; 304 CellSpan dirtiedEffectiveColumns(const LayoutRect& visualRect) const;
305 const HashSet<LayoutTableCell*>& overflowingCells() const { 305 const HashSet<LayoutTableCell*>& overflowingCells() const {
306 return m_overflowingCells; 306 return m_overflowingCells;
307 } 307 }
308 bool hasMultipleCellLevels() const { return m_hasMultipleCellLevels; } 308 bool hasMultipleCellLevels() const { return m_hasMultipleCellLevels; }
309 309
310 const char* name() const override { return "LayoutTableSection"; } 310 const char* name() const override { return "LayoutTableSection"; }
311 char objectSize() const override { return sizeof(this); }
312 char approximateHeapMemoryUsage() const override {
313 // TODO(pdr): Include additional heap allocations in this class.
314 return LayoutTableBoxComponent::approximateHeapMemoryUsage();
315 }
311 316
312 // Whether a section has opaque background depends on many factors, e.g. 317 // Whether a section has opaque background depends on many factors, e.g.
313 // border spacing, border collapsing, missing cells, etc. For simplicity, 318 // border spacing, border collapsing, missing cells, etc. For simplicity,
314 // just conservatively assume all table sections are not opaque. 319 // just conservatively assume all table sections are not opaque.
315 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, 320 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&,
316 unsigned) const override { 321 unsigned) const override {
317 return false; 322 return false;
318 } 323 }
319 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { 324 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override {
320 return false; 325 return false;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 // The use is to disable a painting optimization where we just paint the 480 // The use is to disable a painting optimization where we just paint the
476 // invalidated cells. 481 // invalidated cells.
477 bool m_hasMultipleCellLevels; 482 bool m_hasMultipleCellLevels;
478 }; 483 };
479 484
480 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 485 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
481 486
482 } // namespace blink 487 } // namespace blink
483 488
484 #endif // LayoutTableSection_h 489 #endif // LayoutTableSection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.h ('k') | third_party/WebKit/Source/core/layout/LayoutText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698