[webkit-changes] cvs commit: WebCore/khtml/html html_formimpl.cpp

Darin darin at opensource.apple.com
Sat Jun 18 22:32:00 PDT 2005


darin       05/06/18 22:32:00

  Modified:    .        ChangeLog
               khtml/html html_formimpl.cpp
  Log:
          * khtml/html/html_formimpl.cpp: (DOM::HTMLLabelElementImpl::formElement):
          Oops, checked in a version that didn't even compile! Fixed now.
  
  Revision  Changes    Path
  1.4280    +5 -0      WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.4279
  retrieving revision 1.4280
  diff -u -r1.4279 -r1.4280
  --- ChangeLog	19 Jun 2005 05:00:19 -0000	1.4279
  +++ ChangeLog	19 Jun 2005 05:31:56 -0000	1.4280
  @@ -1,5 +1,10 @@
   2005-06-18  Darin Adler  <darin at apple.com>
   
  +        * khtml/html/html_formimpl.cpp: (DOM::HTMLLabelElementImpl::formElement):
  +        Oops, checked in a version that didn't even compile! Fixed now.
  +
  +2005-06-18  Darin Adler  <darin at apple.com>
  +
           Changes by Anders Carlsson.
           Reviewed by me.
   
  
  
  
  1.164     +5 -2      WebCore/khtml/html/html_formimpl.cpp
  
  Index: html_formimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_formimpl.cpp,v
  retrieving revision 1.163
  retrieving revision 1.164
  diff -u -r1.163 -r1.164
  --- html_formimpl.cpp	19 Jun 2005 05:00:24 -0000	1.163
  +++ html_formimpl.cpp	19 Jun 2005 05:31:59 -0000	1.164
  @@ -2378,8 +2378,11 @@
       if (formElementId.isNull()) {
           // Search children of the label element for a form element.
           for (NodeImpl *node = this; node; node = node->traverseNextNode(this)) {
  -            if (node->isHTMLElement() && static_cast<HTMLElementImpl *>(node)->isGenericFormElement())
  -                return element;
  +            if (node->isHTMLElement()) {
  +                HTMLElementImpl *element = static_cast<HTMLElementImpl *>(node);
  +                if (element->isGenericFormElement())
  +                    return element;
  +            }
           }
           return 0;
       }
  
  
  



More information about the webkit-changes mailing list