diff options
Diffstat (limited to 'Source/WebCore/rendering/style/StyleRareInheritedData.cpp')
-rw-r--r-- | Source/WebCore/rendering/style/StyleRareInheritedData.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/Source/WebCore/rendering/style/StyleRareInheritedData.cpp b/Source/WebCore/rendering/style/StyleRareInheritedData.cpp index 97de42d3c..14cb67d88 100644 --- a/Source/WebCore/rendering/style/StyleRareInheritedData.cpp +++ b/Source/WebCore/rendering/style/StyleRareInheritedData.cpp @@ -23,6 +23,7 @@ #include "StyleRareInheritedData.h" #include "CursorList.h" +#include "MemoryInstrumentation.h" #include "QuotesData.h" #include "RenderStyle.h" #include "RenderStyleConstants.h" @@ -233,7 +234,7 @@ bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const && hyphenationString == o.hyphenationString && locale == o.locale && textEmphasisCustomMark == o.textEmphasisCustomMark - && QuotesData::equal(quotes.get(), o.quotes.get()) + && QuotesData::equals(quotes.get(), o.quotes.get()) && m_tabSize == o.m_tabSize && m_lineGrid == o.m_lineGrid #if ENABLE(CSS_IMAGE_ORIENTATION) @@ -261,4 +262,20 @@ bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData& return true; } +void StyleRareInheritedData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const +{ + MemoryClassInfo info(memoryObjectInfo, this, MemoryInstrumentation::CSS); + info.addMember(textShadow); + info.addMember(highlight); + info.addMember(cursorData); + info.addMember(hyphenationString); + info.addMember(locale); + info.addMember(textEmphasisCustomMark); + info.addMember(quotes); + info.addMember(m_lineGrid); +#if ENABLE(CSS_VARIABLES) + info.addMember(m_variables); +#endif +} + } // namespace WebCore |