Add Null check in LegacyAbstractInlineTextBox::TextOffsetInContainer
A call to DynamicTo<Text> where "from" is a HTMLBRElement will return null. We need to be able to handle this condition, so a null check was added before "text_node" is dereferenced. Bug: 928948 Change-Id: I5d27b63e905035c8d12d41bf3d2a86adc5a82bbf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2031937Reviewed-by:Kurt Catti-Schmidt <kschmi@microsoft.com> Reviewed-by:
Koji Ishii <kojii@chromium.org> Commit-Queue: Jacques Newman <janewman@microsoft.com> Cr-Commit-Position: refs/heads/master@{#738635}
Showing
Please register or sign in to comment