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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 LayoutUnit containerLogicalWidth); 1473 LayoutUnit containerLogicalWidth);
1474 static void computeLogicalTopPositionedOffset( 1474 static void computeLogicalTopPositionedOffset(
1475 LayoutUnit& logicalTopPos, 1475 LayoutUnit& logicalTopPos,
1476 const LayoutBox* child, 1476 const LayoutBox* child,
1477 LayoutUnit logicalHeightValue, 1477 LayoutUnit logicalHeightValue,
1478 const LayoutBoxModelObject* containerBlock, 1478 const LayoutBoxModelObject* containerBlock,
1479 LayoutUnit containerLogicalHeight); 1479 LayoutUnit containerLogicalHeight);
1480 bool skipContainingBlockForPercentHeightCalculation( 1480 bool skipContainingBlockForPercentHeightCalculation(
1481 const LayoutBox* containingBlock) const; 1481 const LayoutBox* containingBlock) const;
1482 1482
1483 char objectSize() const override { return sizeof(this); }
1484 char approximateHeapMemoryUsage() const override {
1485 int memory = LayoutBoxModelObject::approximateHeapMemoryUsage();
1486 if (m_overflow)
1487 memory += sizeof(BoxOverflowModel);
1488 if (m_rareData)
1489 memory += sizeof(LayoutBoxRareData);
1490 return memory;
1491 }
1492
1483 private: 1493 private:
1484 void updateShapeOutsideInfoAfterStyleChange(const ComputedStyle&, 1494 void updateShapeOutsideInfoAfterStyleChange(const ComputedStyle&,
1485 const ComputedStyle* oldStyle); 1495 const ComputedStyle* oldStyle);
1486 void updateGridPositionAfterStyleChange(const ComputedStyle*); 1496 void updateGridPositionAfterStyleChange(const ComputedStyle*);
1487 void updateScrollSnapMappingAfterStyleChange(const ComputedStyle*, 1497 void updateScrollSnapMappingAfterStyleChange(const ComputedStyle*,
1488 const ComputedStyle* oldStyle); 1498 const ComputedStyle* oldStyle);
1489 void clearScrollSnapMapping(); 1499 void clearScrollSnapMapping();
1490 void addScrollSnapMapping(); 1500 void addScrollSnapMapping();
1491 1501
1492 bool autoWidthShouldFitContent() const; 1502 bool autoWidthShouldFitContent() const;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1702 breakValue == EBreakBetween::kLeft || 1712 breakValue == EBreakBetween::kLeft ||
1703 breakValue == EBreakBetween::kPage || 1713 breakValue == EBreakBetween::kPage ||
1704 breakValue == EBreakBetween::kRecto || 1714 breakValue == EBreakBetween::kRecto ||
1705 breakValue == EBreakBetween::kRight || 1715 breakValue == EBreakBetween::kRight ||
1706 breakValue == EBreakBetween::kVerso; 1716 breakValue == EBreakBetween::kVerso;
1707 } 1717 }
1708 1718
1709 } // namespace blink 1719 } // namespace blink
1710 1720
1711 #endif // LayoutBox_h 1721 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.h ('k') | third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698