2006-05-16 Sam Weinig <sam.weinig@gmail.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 May 2006 07:54:01 +0000 (07:54 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 May 2006 07:54:01 +0000 (07:54 +0000)
        Reviewed by darin.  Landed by eseidel.

        Patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8924>
        Bug 8924: re-apply the 'disabled type=file' change
        from bug 5882 to RenderFileButton

        * rendering/RenderFileButton.cpp:
        (WebCore::RenderFileButton::updateFromElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14409 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/rendering/RenderFileButton.cpp

index 7c47058f2db2788add1dde5d603369fefb58909b..e65d2dfb2f5dd966e37a5cf83c593576835c8e71 100644 (file)
@@ -1,3 +1,14 @@
+2006-05-16  Sam Weinig  <sam.weinig@gmail.com>
+
+        Reviewed by darin.  Landed by eseidel.
+
+        Patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8924>
+        Bug 8924: re-apply the 'disabled type=file' change
+        from bug 5882 to RenderFileButton
+        
+        * rendering/RenderFileButton.cpp:
+        (WebCore::RenderFileButton::updateFromElement):
+
 2006-05-16  Eric Seidel  <eseidel@apple.com>
 
         Reviewed by hyatt.
index f992a900367a9029736e0026b4a158e86e97b2b1..f437de5a4c6ce275b1d3b23cc5c670f75be35b11 100644 (file)
@@ -58,6 +58,9 @@ void RenderFileButton::updateFromElement()
     static_cast<KWQFileButton*>(widget())->setFilename(
         static_cast<HTMLInputElement*>(node())->value().deprecatedString());
 
+    static_cast<KWQFileButton*>(widget())->setDisabled(
+        static_cast<HTMLInputElement*>(node())->disabled());
+
     RenderFormElement::updateFromElement();
 }