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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextControl.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/LayoutTextControl.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextControl.h b/third_party/WebKit/Source/core/layout/LayoutTextControl.h
index d22784b6414537fec6e95e3a6dd81b32df3bd35b..7009c9a7e366d95f951362315f89d5d13b355f06 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextControl.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTextControl.h
@@ -40,6 +40,7 @@ class CORE_EXPORT LayoutTextControl : public LayoutBlockFlow {
const ComputedStyle& startStyle) const = 0;
const char* name() const override { return "LayoutTextControl"; }
+ char objectSize() const override { return sizeof(this); }
protected:
LayoutTextControl(TextControlElement*);
@@ -132,6 +133,8 @@ class LayoutTextControlInnerContainer final : public LayoutFlexibleBox {
bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override {
return true;
}
+
+ char objectSize() const override { return sizeof(this); }
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698