Index: third_party/WebKit/Source/core/dom/SpaceSplitString.cpp |
diff --git a/third_party/WebKit/Source/core/dom/SpaceSplitString.cpp b/third_party/WebKit/Source/core/dom/SpaceSplitString.cpp |
index 1552345488e9bd02c388a1b34dd5e7db9da1e169..9f4b94c66d95c5e869291bf13f07aec88a277076 100644 |
--- a/third_party/WebKit/Source/core/dom/SpaceSplitString.cpp |
+++ b/third_party/WebKit/Source/core/dom/SpaceSplitString.cpp |
@@ -116,6 +116,8 @@ void SpaceSplitString::Add(const AtomicString& string) { |
EnsureUnique(); |
if (data_) |
data_->Add(string); |
+ else |
+ data_ = Data::Create(string); |
} |
bool SpaceSplitString::Remove(const AtomicString& string) { |