[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bkdelibs/KDE/4=2E6=5D_khtml/html=3A_Fix_cloning_of_c?=
From:       Maks Orlovich <maksim () kde ! org>
Date:       2011-05-17 12:35:40
Message-ID: 20110517123540.4F88EA60AE () git ! kde ! org
[Download RAW message or body]

Git commit 6f6a4933975e85ebbee2c3354096c1c3a4889a3f by Maks Orlovich.
Committed on 17/05/2011 at 14:34.
Pushed by orlovich into branch 'KDE/4.6'.

Fix cloning of checkboxes.

... And with it element-cloning method in jQuery 1.5, which was
making us hit IE-specific path due to the bug. Showed up in particular
on Doodle wizard, and kde-look thumbs.

CCBUG:269175
BUG:272208

M  +3    -0    khtml/html/html_formimpl.cpp     

http://commits.kde.org/kdelibs/6f6a4933975e85ebbee2c3354096c1c3a4889a3f

diff --git a/khtml/html/html_formimpl.cpp b/khtml/html/html_formimpl.cpp
index 734ac4e..d885d7d 100644
--- a/khtml/html/html_formimpl.cpp
+++ b/khtml/html/html_formimpl.cpp
@@ -1541,6 +1541,9 @@ void HTMLInputElementImpl::copyNonAttributeProperties(const ElementImpl* source)
 
     m_value = e->m_value;
     m_checked = e->m_checked;
+    m_defaultChecked = e->m_checked;
+    m_useDefaultChecked = e->m_defaultChecked;
+    m_indeterminate = e->m_indeterminate;
     // ### copy more?
 
     HTMLGenericFormElementImpl::copyNonAttributeProperties(source);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic