[webkit-changes] cvs commit: WebCore/kwq KWQKHTMLPart.mm

Adele adele at opensource.apple.com
Thu Jul 14 10:44:36 PDT 2005


adele       05/07/14 10:44:35

  Modified:    .        Tag: gcc-4-0-branch ChangeLog
               kwq      Tag: gcc-4-0-branch KWQKHTMLPart.mm
  Log:
          Merged changes from TOT.
  
      2005-03-11  David Harrison  <harrison at apple.com>
  
          Reviewed by Darin.
  
          <rdar://problem/4046602> WebCore invokes undefined behavior when the spell checker isn't running
  
          * kwq/KWQKHTMLPart.mm:
          (KWQKHTMLPart::advanceToNextMisspelling):
          (KWQKHTMLPart::markMisspellings):
          Nil check checker.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4106.2.13 +16 -1     WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.4106.2.12
  retrieving revision 1.4106.2.13
  diff -u -r1.4106.2.12 -r1.4106.2.13
  --- ChangeLog	14 Jul 2005 17:33:29 -0000	1.4106.2.12
  +++ ChangeLog	14 Jul 2005 17:44:27 -0000	1.4106.2.13
  @@ -1,6 +1,21 @@
   2005-07-14  Adele Peterson  <adele at apple.com>
   
  -        Merged change from TOT.
  +        Merged changes from TOT.
  +
  +    2005-03-11  David Harrison  <harrison at apple.com>
  +
  +        Reviewed by Darin.
  +
  +        <rdar://problem/4046602> WebCore invokes undefined behavior when the spell checker isn't running
  +
  +        * kwq/KWQKHTMLPart.mm:
  +        (KWQKHTMLPart::advanceToNextMisspelling):
  +        (KWQKHTMLPart::markMisspellings):
  +        Nil check checker.
  +
  +2005-07-14  Adele Peterson  <adele at apple.com>
  +
  +        Merged changes from TOT.
   
       2005-04-12  Maciej Stachowiak  <mjs at apple.com>
   
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.628.8.3 +8 -0      WebCore/kwq/KWQKHTMLPart.mm
  
  Index: KWQKHTMLPart.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKHTMLPart.mm,v
  retrieving revision 1.628.8.2
  retrieving revision 1.628.8.3
  diff -u -r1.628.8.2 -r1.628.8.3
  --- KWQKHTMLPart.mm	9 Jul 2005 00:35:32 -0000	1.628.8.2
  +++ KWQKHTMLPart.mm	14 Jul 2005 17:44:34 -0000	1.628.8.3
  @@ -988,7 +988,11 @@
           return QString();       // nothing to search in
       }
       
  +    // Get the spell checker if it is available
       NSSpellChecker *checker = [NSSpellChecker sharedSpellChecker];
  +    if (checker == nil)
  +        return QString();
  +	    
       WordAwareIterator it(searchRange);
       bool wrapped = false;
       
  @@ -4015,7 +4019,11 @@
       if (!editableNodeImpl->isContentEditable())
           return;
       
  +    // Get the spell checker if it is available
       NSSpellChecker *checker = [NSSpellChecker sharedSpellChecker];
  +    if (checker == nil)
  +        return;
  +
       WordAwareIterator it(searchRange);
       
       while (!it.atEnd()) {      // we may be starting at the end of the doc, and already by atEnd
  
  
  



More information about the webkit-changes mailing list