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

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

Issue 2402223002: Fix class name which has only space (Closed)
Patch Set: Fix class name which has only space Created 4 years, 2 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 | « third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-classlist-expected.txt ('k') | 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 047e339cba3e817a5c7eb056291cb3d2776f7584..7a6688b1a524f0d35371390cd52e2ea488d15955 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1343,9 +1343,7 @@ static inline ClassStringContent classStringHasClassName(
++i;
} while (i < length);
- if (i == length && length == 1)
- return ClassStringContent::Empty;
- if (i == length && length > 1)
+ if (i == length && length >= 1)
return ClassStringContent::WhiteSpaceOnly;
return ClassStringContent::HasClasses;
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-classlist-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698