| Index: Source/core/css/RuleFeature.cpp
|
| diff --git a/Source/core/css/RuleFeature.cpp b/Source/core/css/RuleFeature.cpp
|
| index 5e687d8fc44904f0e903dd10125386f6444d80cd..e92b68727c4c68d3b0ea83e5ad49c3bf61b2398d 100644
|
| --- a/Source/core/css/RuleFeature.cpp
|
| +++ b/Source/core/css/RuleFeature.cpp
|
| @@ -446,8 +446,10 @@ void RuleFeatureSet::scheduleStyleInvalidationForClassChange(const SpaceSplitStr
|
|
|
| void RuleFeatureSet::scheduleStyleInvalidationForClassChange(const SpaceSplitString& oldClasses, const SpaceSplitString& newClasses, Element& element)
|
| {
|
| - if (!oldClasses.size())
|
| + if (!oldClasses.size()) {
|
| scheduleStyleInvalidationForClassChange(newClasses, element);
|
| + return;
|
| + }
|
|
|
| // Class vectors tend to be very short. This is faster than using a hash table.
|
| BitVector remainingClassBits;
|
|
|