[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

hyatt hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:43:46 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit c0808688117268e5cbe75f65bcf2414d1d0f1150
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Jun 2 10:07:24 2003 +0000

    	Fix for 3275136.  Make sure that when the checked attribute
    	is set dynamically (something we were ignoring before my previous
    	patch) that we also properly update the radio button array in
    	the document.
    
            Reviewed by gramps
    
            * khtml/html/html_formimpl.cpp:
            (HTMLInputElementImpl::parseAttribute):
            (HTMLInputElementImpl::attach):
            (HTMLInputElementImpl::reset):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4461 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 79811d8..d9c1752 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,17 @@
+2003-06-02  David Hyatt  <hyatt at apple.com>
+
+	Fix for 3275136.  Make sure that when the checked attribute
+	is set dynamically (something we were ignoring before my previous
+	patch) that we also properly update the radio button array in
+	the document.
+	
+        Reviewed by gramps
+
+        * khtml/html/html_formimpl.cpp:
+        (HTMLInputElementImpl::parseAttribute):
+        (HTMLInputElementImpl::attach):
+        (HTMLInputElementImpl::reset):
+
 2003-05-30  Maciej Stachowiak  <mjs at apple.com>
 
         Reviewed by Chris.
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 79811d8..d9c1752 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,17 @@
+2003-06-02  David Hyatt  <hyatt at apple.com>
+
+	Fix for 3275136.  Make sure that when the checked attribute
+	is set dynamically (something we were ignoring before my previous
+	patch) that we also properly update the radio button array in
+	the document.
+	
+        Reviewed by gramps
+
+        * khtml/html/html_formimpl.cpp:
+        (HTMLInputElementImpl::parseAttribute):
+        (HTMLInputElementImpl::attach):
+        (HTMLInputElementImpl::reset):
+
 2003-05-30  Maciej Stachowiak  <mjs at apple.com>
 
         Reviewed by Chris.
diff --git a/WebCore/khtml/html/html_formimpl.cpp b/WebCore/khtml/html/html_formimpl.cpp
index aaced6f..b8f5abd 100644
--- a/WebCore/khtml/html/html_formimpl.cpp
+++ b/WebCore/khtml/html/html_formimpl.cpp
@@ -1220,9 +1220,11 @@ void HTMLInputElementImpl::parseAttribute(AttributeImpl *attr)
             setChanged();     // at the default value right now.
         break;
     case ATTR_CHECKED:
+        removeCheckedRadioButtonFromDocument();
         m_defaultChecked = attr->val();
-        if (m_useDefaultChecked) // We only need to setChanged if the form is looking
-            setChanged();        // at the default checked state right now.
+        addCheckedRadioButtonToDocument();
+        if (m_useDefaultChecked)   // We only need to setChanged if the form is looking
+            setChanged();          // at the default checked state right now.
         break;
     case ATTR_MAXLENGTH:
         m_maxLen = attr->val() ? attr->val()->toInt() : -1;
@@ -1348,7 +1350,7 @@ void HTMLInputElementImpl::attach()
         removeCheckedRadioButtonFromDocument();
         m_defaultChecked = (getAttribute(ATTR_CHECKED) != 0);
         addCheckedRadioButtonToDocument();
-
+        
         m_inited = true;
     }
 
@@ -1574,8 +1576,10 @@ bool HTMLInputElementImpl::encoding(const QTextCodec* codec, khtml::encodingList
 void HTMLInputElementImpl::reset()
 {
     setValue(DOMString());
+    removeCheckedRadioButtonFromDocument();
     m_useDefaultChecked = true;
     m_checked = m_defaultChecked;
+    addCheckedRadioButtonToDocument();
 }
 
 void HTMLInputElementImpl::setChecked(bool _checked)

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list