Chromium Code Reviews| 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 047e339cba3e817a5c7eb056291cb3d2776f7584..cb7b7384384d17ea2784671686bed79a0fd058a4 100644 |
| --- a/third_party/WebKit/Source/core/dom/Element.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp |
| @@ -1377,10 +1377,7 @@ void Element::classAttributeChanged(const AtomicString& newClassString) { |
| } else { |
| const SpaceSplitString& oldClasses = elementData()->classNames(); |
| document().styleEngine().classChangedForElement(oldClasses, *this); |
| - if (classStringContentType == ClassStringContent::WhiteSpaceOnly) |
| - elementData()->setClass(newClassString, shouldFoldCase); |
| - else |
| - elementData()->clearClass(); |
| + elementData()->setClass(newClassString, shouldFoldCase); |
|
skobes
2016/10/14 20:41:30
I don't quite understand how this works. Setting
|
| } |
| if (hasRareData()) |