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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutRuby.h

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutRuby.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutRuby.h b/third_party/WebKit/Source/core/layout/LayoutRuby.h
index 1197302f475e6046ffa938753473b4cfa0bd7214..ed5e25f3824037e9253e73058a793813c34fa675 100644
--- a/third_party/WebKit/Source/core/layout/LayoutRuby.h
+++ b/third_party/WebKit/Source/core/layout/LayoutRuby.h
@@ -73,6 +73,7 @@ class LayoutRubyAsInline final : public LayoutInline {
bool isOfType(LayoutObjectType type) const override {
return type == LayoutObjectRuby || LayoutInline::isOfType(type);
}
+ char objectSize() const override { return sizeof(this); }
bool createsAnonymousWrapper() const override { return true; }
};
@@ -87,6 +88,7 @@ class LayoutRubyAsBlock final : public LayoutBlockFlow {
void removeChild(LayoutObject* child) override;
const char* name() const override { return "LayoutRuby (block)"; }
+ char objectSize() const override { return sizeof(this); }
protected:
void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutReplaced.h ('k') | third_party/WebKit/Source/core/layout/LayoutRubyBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698