diff options
Diffstat (limited to 'Source/WebCore/css/FontValue.cpp')
-rw-r--r-- | Source/WebCore/css/FontValue.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/WebCore/css/FontValue.cpp b/Source/WebCore/css/FontValue.cpp index 8841a7993..4f8742c70 100644 --- a/Source/WebCore/css/FontValue.cpp +++ b/Source/WebCore/css/FontValue.cpp @@ -22,6 +22,7 @@ #include "CSSValueList.h" #include "CSSPrimitiveValue.h" +#include "MemoryInstrumentation.h" #include "PlatformString.h" #include <wtf/text/StringBuilder.h> @@ -65,4 +66,15 @@ String FontValue::customCssText() const return result.toString(); } +void FontValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const +{ + MemoryClassInfo info(memoryObjectInfo, this, MemoryInstrumentation::CSS); + info.addInstrumentedMember(style); + info.addInstrumentedMember(variant); + info.addInstrumentedMember(weight); + info.addInstrumentedMember(size); + info.addInstrumentedMember(lineHeight); + info.addInstrumentedMember(family); +} + } |