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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutRubyBase.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 namespace blink { 36 namespace blink {
37 37
38 class LayoutRubyRun; 38 class LayoutRubyRun;
39 39
40 class LayoutRubyBase final : public LayoutBlockFlow { 40 class LayoutRubyBase final : public LayoutBlockFlow {
41 public: 41 public:
42 ~LayoutRubyBase() override; 42 ~LayoutRubyBase() override;
43 static LayoutRubyBase* createAnonymous(Document*); 43 static LayoutRubyBase* createAnonymous(Document*);
44 44
45 const char* name() const override { return "LayoutRubyBase"; } 45 const char* name() const override { return "LayoutRubyBase"; }
46 char objectSize() const override { return sizeof(this); }
46 47
47 bool isOfType(LayoutObjectType type) const override { 48 bool isOfType(LayoutObjectType type) const override {
48 return type == LayoutObjectRubyBase || LayoutBlockFlow::isOfType(type); 49 return type == LayoutObjectRubyBase || LayoutBlockFlow::isOfType(type);
49 } 50 }
50 51
51 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; 52 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
52 53
53 private: 54 private:
54 LayoutRubyBase(); 55 LayoutRubyBase();
55 56
(...skipping 11 matching lines...) Expand all
67 68
68 // Allow LayoutRubyRun to manipulate the children within ruby bases. 69 // Allow LayoutRubyRun to manipulate the children within ruby bases.
69 friend class LayoutRubyRun; 70 friend class LayoutRubyRun;
70 }; 71 };
71 72
72 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutRubyBase, isRubyBase()); 73 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutRubyBase, isRubyBase());
73 74
74 } // namespace blink 75 } // namespace blink
75 76
76 #endif // LayoutRubyBase_h 77 #endif // LayoutRubyBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutRuby.h ('k') | third_party/WebKit/Source/core/layout/LayoutRubyText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698