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

Timothy thatcher at opensource.apple.com
Thu Dec 1 10:26:53 PST 2005


thatcher    05/12/01 10:26:53

  Modified:    .        Tag: Safari-2-0-branch ChangeLog
               khtml/html Tag: Safari-2-0-branch html_formimpl.cpp
                        html_formimpl.h
  Log:
          Merged fix from TOT to Safari-2-0-branch
          Fixes: <rdar://problem/4344760> Glendale REGRESSION (Safari 416.12-417.2)
          gmail 'reply' does not fill in to: field or quoted message (3751)
  
      2005-07-09  Anders Carlsson  <andersca at mac.com>
  
  	- Fix <http://bugzilla.opendarwin.org/show_bug.cgi?id=3751>
  
          Reviewed by Maciej.
  
          * khtml/html/html_formimpl.cpp:
          (DOM::HTMLTextAreaElementImpl::attach):
          * khtml/html/html_formimpl.h:
  	Update the value after attaching so we'll be sure that
  	the text renderer has a valid value.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.82  +18 -0     WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.1.2.81
  retrieving revision 1.1.2.82
  diff -u -r1.1.2.81 -r1.1.2.82
  --- ChangeLog	30 Nov 2005 22:44:35 -0000	1.1.2.81
  +++ ChangeLog	1 Dec 2005 18:26:44 -0000	1.1.2.82
  @@ -1,3 +1,21 @@
  +2005-12-01  Timothy Hatcher  <timothy at apple.com>
  +
  +        Merged fix from TOT to Safari-2-0-branch
  +        Fixes: <rdar://problem/4344760> Glendale REGRESSION (Safari 416.12-417.2)
  +        gmail 'reply' does not fill in to: field or quoted message (3751)
  +
  +    2005-07-09  Anders Carlsson  <andersca at mac.com>
  +
  +	- Fix <http://bugzilla.opendarwin.org/show_bug.cgi?id=3751>
  +	
  +        Reviewed by Maciej.
  +
  +        * khtml/html/html_formimpl.cpp:
  +        (DOM::HTMLTextAreaElementImpl::attach):
  +        * khtml/html/html_formimpl.h:
  +	Update the value after attaching so we'll be sure that
  +	the text renderer has a valid value.
  +
   2005-11-29  Timothy Hatcher  <timothy at apple.com>
   
           Fix by Beth and Darin
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.156.6.8 +13 -6     WebCore/khtml/html/html_formimpl.cpp
  
  Index: html_formimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_formimpl.cpp,v
  retrieving revision 1.156.6.7
  retrieving revision 1.156.6.8
  diff -u -r1.156.6.7 -r1.156.6.8
  --- html_formimpl.cpp	18 Nov 2005 18:02:44 -0000	1.156.6.7
  +++ html_formimpl.cpp	1 Dec 2005 18:26:51 -0000	1.156.6.8
  @@ -3295,13 +3295,13 @@
       for (n = firstChild(); n; n = n->nextSibling())
           if (n->isTextNode())
               val += static_cast<TextImpl*>(n)->data();
  +    
       if (val[0] == '\r' && val[1] == '\n') {
  -	val = val.copy();
  -	val.remove(0,2);
  -    }
  -    else if (val[0] == '\r' || val[0] == '\n') {
  -	val = val.copy();
  -	val.remove(0,1);
  +        val = val.copy();
  +        val.remove(0,2);
  +    } else if (val[0] == '\r' || val[0] == '\n') {
  +        val = val.copy();
  +        val.remove(0,1);
       }
   
       return val;
  @@ -3345,6 +3345,13 @@
       focus();
   }
   
  +void HTMLTextAreaElementImpl::attach()
  +{
  +    m_valueIsValid = true;
  +    HTMLGenericFormElementImpl::attach();
  +    updateValue();
  +}
  +
   void HTMLTextAreaElementImpl::detach()
   {
       HTMLGenericFormElementImpl::detach();
  
  
  
  1.67.6.5  +1 -0      WebCore/khtml/html/html_formimpl.h
  
  Index: html_formimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_formimpl.h,v
  retrieving revision 1.67.6.4
  retrieving revision 1.67.6.5
  diff -u -r1.67.6.4 -r1.67.6.5
  --- html_formimpl.h	11 Nov 2005 06:39:31 -0000	1.67.6.4
  +++ html_formimpl.h	1 Dec 2005 18:26:52 -0000	1.67.6.5
  @@ -652,6 +652,7 @@
       virtual void childrenChanged();
       virtual void parseHTMLAttribute(HTMLAttributeImpl *attr);
       virtual khtml::RenderObject *createRenderer(RenderArena *, khtml::RenderStyle *);
  +    virtual void attach();
       virtual void detach();
       virtual bool appendFormData(FormDataList&, bool);
       virtual void reset();
  
  
  



More information about the webkit-changes mailing list