[webkit-changes] cvs commit: WebCore/khtml/css css_ruleimpl.h

Anders andersca at opensource.apple.com
Sat Dec 17 12:12:36 PST 2005


andersca    05/12/17 12:12:36

  Modified:    .        ChangeLog
               khtml/css css_ruleimpl.h
  Log:
  2005-12-17  Anders Carlsson  <andersca at mac.com>
  
          Reviewed by Darin.
  
          - Fix <http://bugzilla.opendarwin.org/show_bug.cgi?id=6120>
          Random crashes when running the test suite
  
          * khtml/css/css_ruleimpl.h:
          (DOM::CSSMediaRuleImpl::media):
          Make m_lstMedia a smart pointer.
  
  Revision  Changes    Path
  1.557     +4 -1      WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.556
  retrieving revision 1.557
  diff -u -r1.556 -r1.557
  --- ChangeLog	17 Dec 2005 20:09:46 -0000	1.556
  +++ ChangeLog	17 Dec 2005 20:12:31 -0000	1.557
  @@ -1,7 +1,10 @@
   2005-12-17  Anders Carlsson  <andersca at mac.com>
   
  -        Reviewed by Eric.
  +        Reviewed by Darin.
   
  +        - Fix <http://bugzilla.opendarwin.org/show_bug.cgi?id=6120>
  +        Random crashes when running the test suite
  +        
           * khtml/css/css_ruleimpl.h:
           (DOM::CSSMediaRuleImpl::media):
           Make m_lstMedia a smart pointer.
  
  
  
  1.20      +3 -3      WebCore/khtml/css/css_ruleimpl.h
  
  Index: css_ruleimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/css_ruleimpl.h,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- css_ruleimpl.h	15 Dec 2005 21:39:56 -0000	1.19
  +++ css_ruleimpl.h	17 Dec 2005 20:12:35 -0000	1.20
  @@ -20,7 +20,7 @@
    * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    * Boston, MA 02111-1307, USA.
    *
  - * $Id: css_ruleimpl.h,v 1.19 2005/12/15 21:39:56 eseidel Exp $
  + * $Id: css_ruleimpl.h,v 1.20 2005/12/17 20:12:35 andersca Exp $
    */
   #ifndef _CSS_css_ruleimpl_h_
   #define _CSS_css_ruleimpl_h_
  @@ -157,7 +157,7 @@
       CSSMediaRuleImpl( StyleBaseImpl *parent, MediaListImpl *mediaList, CSSRuleListImpl *ruleList );
       virtual ~CSSMediaRuleImpl();
   
  -    MediaListImpl *media() const { return m_lstMedia; }
  +    MediaListImpl *media() const { return m_lstMedia.get(); }
       CSSRuleListImpl *cssRules() { return m_lstCSSRules.get(); }
   
       unsigned insertRule ( const DOM::DOMString &rule, unsigned index );
  @@ -169,7 +169,7 @@
       /* Not part of the DOM */
       unsigned append( CSSRuleImpl *rule );
   protected:
  -    MediaListImpl *m_lstMedia;
  +    RefPtr<MediaListImpl> m_lstMedia;
       RefPtr<CSSRuleListImpl> m_lstCSSRules;
   };
   
  
  
  



More information about the webkit-changes mailing list