Reviewed by Dave Harrison.
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Apr 2005 23:35:14 +0000 (23:35 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Apr 2005 23:35:14 +0000 (23:35 +0000)
        - fixed <rdar://problem/4098731> [DOMHTMLTextAreaElement cols] returns wrong value (usually zero)

        * kwq/DOMHTML.mm:
        (-[DOMHTMLTextAreaElement cols]):
        use ATTR_COLS instead of ATTR_ACCESSKEY (D'oh!)
        (-[DOMHTMLTextAreaElement setCols:]):
        fixed whitespace

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

WebCore/ChangeLog-2005-08-23
WebCore/kwq/DOMHTML.mm

index 93e8631971be004adaa0ee8af38bffacf5275ec2..1fcb019d4183ac2c03888581e5f0a67fc99bc26a 100644 (file)
@@ -1,3 +1,15 @@
+2005-04-25  John Sullivan  <sullivan@apple.com>
+
+        Reviewed by Dave Harrison.
+        
+        - fixed <rdar://problem/4098731> [DOMHTMLTextAreaElement cols] returns wrong value (usually zero)
+
+        * kwq/DOMHTML.mm:
+        (-[DOMHTMLTextAreaElement cols]):
+        use ATTR_COLS instead of ATTR_ACCESSKEY (D'oh!)
+        (-[DOMHTMLTextAreaElement setCols:]):
+        fixed whitespace
+
 2005-04-25  Darin Adler  <darin@apple.com>
 
         Reviewed by John.
index 59cad0bea15cf851f29e625ed5619eebc75b9185..034f3cef03b7fad5cf8212d136450a2097355508 100644 (file)
@@ -1505,12 +1505,12 @@ using DOM::NodeImpl;
 
 - (long)cols
 {
-    return [self _textAreaElementImpl]->getAttribute(ATTR_ACCESSKEY).toInt();
+    return [self _textAreaElementImpl]->getAttribute(ATTR_COLS).toInt();
 }
 
 - (void)setCols:(long)cols
 {
-       DOMString value(QString::number(cols));
+    DOMString value(QString::number(cols));
     [self _textAreaElementImpl]->setAttribute(ATTR_COLS, value);
 }