Changeset 182619 in webkit


Ignore:
Timestamp:
Apr 9, 2015 5:39:29 PM (9 years ago)
Author:
Chris Dumez
Message:

Regression(r182603): editing/selection/selection-invalid-offset.html is crashing
https://bugs.webkit.org/show_bug.cgi?id=143591

Reviewed by Ryosuke Niwa.

Add missing null-check for m_frame->editor().client() in
FrameSelection::updateAndRevealSelection().

  • editing/FrameSelection.cpp:

(WebCore::FrameSelection::updateAndRevealSelection):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r182617 r182619  
     12015-04-09  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression(r182603): editing/selection/selection-invalid-offset.html is crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=143591
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Add missing null-check for m_frame->editor().client() in
     9        FrameSelection::updateAndRevealSelection().
     10
     11        * editing/FrameSelection.cpp:
     12        (WebCore::FrameSelection::updateAndRevealSelection):
     13
    1142015-04-09  Sungmann Cho  <sungmann.cho@navercorp.com>
    215
  • trunk/Source/WebCore/editing/FrameSelection.cpp

    r182603 r182619  
    383383    notifyAccessibilityForSelectionChange();
    384384
    385     m_frame->editor().client()->didChangeSelectionAndUpdateLayout();
     385    if (auto* client = m_frame->editor().client())
     386        client->didChangeSelectionAndUpdateLayout();
    386387}
    387388
Note: See TracChangeset for help on using the changeset viewer.