| Index: third_party/WebKit/Source/core/layout/LayoutTextFragment.h
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
|
| index ea1b4d4bfa4593ed287432cf11cfebd50d474fc9..deff713337fd9ee70d16e0e8ba012fa517f1b025 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
|
| @@ -50,6 +50,12 @@ class LayoutTextFragment final : public LayoutText {
|
| unsigned length);
|
|
|
| bool isTextFragment() const override { return true; }
|
| + char objectSize() const override { return sizeof(this); }
|
| + char approximateHeapMemoryUsage() const override {
|
| + int memory = LayoutText::approximateHeapMemoryUsage();
|
| + // TODO(pdr): Include memory from m_contentString?
|
| + return memory;
|
| + }
|
|
|
| bool canBeSelectionLeaf() const override {
|
| return node() && hasEditableStyle(*node());
|
|
|