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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutIFrame.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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 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 17 matching lines...) Expand all
28 28
29 #include "core/layout/LayoutPart.h" 29 #include "core/layout/LayoutPart.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class LayoutIFrame final : public LayoutPart { 33 class LayoutIFrame final : public LayoutPart {
34 public: 34 public:
35 explicit LayoutIFrame(Element*); 35 explicit LayoutIFrame(Element*);
36 36
37 const char* name() const override { return "LayoutIFrame"; } 37 const char* name() const override { return "LayoutIFrame"; }
38 char objectSize() const override { return sizeof(this); }
38 39
39 private: 40 private:
40 bool shouldComputeSizeAsReplaced() const override; 41 bool shouldComputeSizeAsReplaced() const override;
41 bool isInlineBlockOrInlineTable() const override; 42 bool isInlineBlockOrInlineTable() const override;
42 43
43 void layout() override; 44 void layout() override;
44 45
45 bool isOfType(LayoutObjectType type) const override { 46 bool isOfType(LayoutObjectType type) const override {
46 return type == LayoutObjectLayoutIFrame || LayoutPart::isOfType(type); 47 return type == LayoutObjectLayoutIFrame || LayoutPart::isOfType(type);
47 } 48 }
48 49
49 PaintLayerType layerTypeRequired() const override; 50 PaintLayerType layerTypeRequired() const override;
50 }; 51 };
51 52
52 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutIFrame, isLayoutIFrame()); 53 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutIFrame, isLayoutIFrame());
53 54
54 } // namespace blink 55 } // namespace blink
55 56
56 #endif // LayoutIFrame_h 57 #endif // LayoutIFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutHTMLCanvas.h ('k') | third_party/WebKit/Source/core/layout/LayoutImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698