Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index 494e291387f128ceb9e357b1ab3bdb23869f844d..a2e009773b7f8ef38631f1b08188933fc01b15ad 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -322,7 +322,7 @@ void StyleResolver::addToStyleSharingList(Element& element) |
INCREMENT_STYLE_STATS_COUNTER(*this, sharedStyleCandidates); |
StyleSharingList& list = styleSharingList(); |
if (list.size() >= styleSharingListSize) |
- list.remove(--list.end()); |
+ list.removeLast(); |
list.prepend(&element); |
} |