| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index c5e87af65b09d46f53801ce646e9b8fb0b3dec66..2566c11947f3e244cfc40af19f20bef305fab455 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -242,6 +242,18 @@ void StyleResolver::collectFeatures()
|
| m_uncommonAttributeRuleSet = makeRuleSet(m_features.uncommonAttributeRules);
|
| }
|
|
|
| +void StyleResolver::addToStyleSharingList(Element* element)
|
| +{
|
| + if (m_styleSharingList.size() >= styleSharingListSize)
|
| + m_styleSharingList.remove(--m_styleSharingList.end());
|
| + m_styleSharingList.prepend(element);
|
| +}
|
| +
|
| +void StyleResolver::clearStyleSharingList()
|
| +{
|
| + m_styleSharingList.clear();
|
| +}
|
| +
|
| void StyleResolver::pushParentElement(Element* parent)
|
| {
|
| const ContainerNode* parentsParent = parent->parentOrShadowHostElement();
|
|
|