Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2902903002: Fix missing distribution recalc in quirks mode and Shadow DOM v0. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698