| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index af710a5670f2b3475c8303f1f71f48bc76d84b35..b80d542c3e9f02920bd0ffdc541141abef6a14ee 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -1487,10 +1487,10 @@ bool Element::ShouldInvalidateDistributionWhenAttributeChanged(
|
| if (ClassStringHasClassName(new_class_string) ==
|
| ClassStringContent::kHasClasses) {
|
| const SpaceSplitString& old_classes = GetElementData()->ClassNames();
|
| - const SpaceSplitString new_classes(
|
| - new_class_string, GetDocument().InQuirksMode()
|
| - ? SpaceSplitString::kShouldFoldCase
|
| - : SpaceSplitString::kShouldNotFoldCase);
|
| + const SpaceSplitString new_classes(GetDocument().InQuirksMode()
|
| + ? new_class_string.LowerASCII()
|
| + : new_class_string,
|
| + SpaceSplitString::kShouldNotFoldCase);
|
| if (feature_set.CheckSelectorsForClassChange(old_classes, new_classes))
|
| return true;
|
| } else {
|
|
|