From: Andreas Kling Date: Fri, 6 Mar 2015 07:33:11 +0000 (+0000) Subject: Fix inserted text when typing in the Twitter message box. X-Git-Tag: archive/raspbian/2.14.3-1+rpi1~1^2^2^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=08d73e47691bb6d4cfbbcfd48ea8e7dbd3c45778;p=webkit2gtk.git Fix inserted text when typing in the Twitter message box. =================================================================== Gbp-Pq: Name twitter-inserted-text.patch --- diff --git a/Source/JavaScriptCore/runtime/JSString.h b/Source/JavaScriptCore/runtime/JSString.h index caa723655c..6eccf142de 100644 --- a/Source/JavaScriptCore/runtime/JSString.h +++ b/Source/JavaScriptCore/runtime/JSString.h @@ -482,12 +482,7 @@ ALWAYS_INLINE AtomicStringImpl* JSString::toExistingAtomicString(ExecState* exec return static_cast(this)->resolveRopeToExistingAtomicString(exec); if (m_value.impl()->isAtomic()) return static_cast(m_value.impl()); - if (AtomicStringImpl* existingAtomicString = AtomicString::find(m_value.impl())) { - m_value = *existingAtomicString; - setIs8Bit(m_value.impl()->is8Bit()); - return existingAtomicString; - } - return nullptr; + return AtomicString::find(m_value.impl()); } inline const String& JSString::value(ExecState* exec) const