Changeset 17647 in webkit


Ignore:
Timestamp:
Nov 7, 2006 2:24:28 PM (17 years ago)
Author:
bdakin
Message:

Reviewed by Hyatt (yesterday).

Here is part of my patch from yesterday that is safe to roll back
in. It will make the BuildBot happy.

  • rendering/HitTestResult.cpp: (WebCore::HitTestResult::spellingToolTip): Null-check m_innerNonSharedNode.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r17646 r17647  
     12006-11-07  Beth Dakin  <bdakin@apple.com>
     2
     3        Reviewed by Hyatt (yesterday).
     4
     5        Here is part of my patch from yesterday that is safe to roll back
     6        in. It will make the BuildBot happy.
     7
     8        * rendering/HitTestResult.cpp:
     9        (WebCore::HitTestResult::spellingToolTip): Null-check
     10        m_innerNonSharedNode.
     11
    1122006-11-07  Darin Adler  <darin@apple.com>
    213
  • trunk/WebCore/rendering/HitTestResult.cpp

    r17645 r17647  
    130130    // Return the tool tip string associated with this point, if any. Only markers associated with bad grammar
    131131    // currently supply strings, but maybe someday markers associated with misspelled words will also.
    132     DocumentMarker* marker = m_innerNonSharedNode->document()->markerContainingPoint(m_point, DocumentMarker::Grammar);
    133     if (marker)
    134         return marker->description;
    135    
    136     return String();
     132    if (!m_innerNonSharedNode)
     133        return String();
     134   
     135     DocumentMarker* marker = m_innerNonSharedNode->document()->markerContainingPoint(m_point, DocumentMarker::Grammar);
     136    if (!marker)
     137        return String();
     138
     139    return marker->description;
    137140}
    138141
Note: See TracChangeset for help on using the changeset viewer.