Skip to content
  • sullivan's avatar
    Reviewed by Tim Omernick · d8424e33
    sullivan authored
            
            - fixed <rdar://problem/4597685> stale rects for document markers can be left behind in certain cases
    
            * dom/Document.h:
            * dom/Document.cpp:
            (WebCore::Document::setRenderedRectForMarker):
            changed parameter from IntRect to const IntRect& at Darin's request
            (WebCore::Document::invalidateRenderedRectsForMarkersInRect):
            new method, tests whether the rendered rect for each marker intersects the
            passed rect. If so, sets the rendered rect back to the placeholder rect that
            means that the rect for this marker isn't known.
            
            * page/Frame.cpp:
            (WebCore::Frame::paint):
            call invalidateRenderedRectsForMarkersInRect on the rect we're about to paint.
            This ensures that old stale rects won't be preserved if the associated marker
            has moved such that it is out of the painted area.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14998 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d8424e33