Changeset 64946 in webkit


Ignore:
Timestamp:
Aug 8, 2010 12:55:52 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-08-08 Adam Barth <abarth@webkit.org>

Reviewed by Dimitri Glazkov.

frame()->selection() can't be null
https://bugs.webkit.org/show_bug.cgi?id=43681

SelectionController is a component of Frame. If frame is non-null, it
can't possibly be null.

  • html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::setActive):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r64945 r64946  
     12010-08-08  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        frame()->selection() can't be null
     6        https://bugs.webkit.org/show_bug.cgi?id=43681
     7
     8        SelectionController is a component of Frame.  If frame is non-null, it
     9        can't possibly be null.
     10
     11        * html/HTMLAnchorElement.cpp:
     12        (WebCore::HTMLAnchorElement::setActive):
     13
    1142010-08-08  Adam Barth  <abarth@webkit.org>
    215
  • trunk/WebCore/html/HTMLAnchorElement.cpp

    r61293 r64946  
    238238            // this link
    239239            case EditableLinkLiveWhenNotFocused:
    240                 if (down && document()->frame() && document()->frame()->selection() &&
    241                     document()->frame()->selection()->rootEditableElement() == rootEditableElement())
     240                if (down && document()->frame() && document()->frame()->selection()->rootEditableElement() == rootEditableElement())
    242241                    return;
    243242                break;
Note: See TracChangeset for help on using the changeset viewer.