Remove redundant selection judge from EmbeddedContentPainter
EmbeddedContentPainter::IsSelected() is used to decide if paint selection or not. This function is strange because it refers selection_start/end. That's because seletion_start/end means offset in the layout object and since replaced element neither be text nor have child LayoutObject. Thus we should just consider SelectionState is kNone or not. Bug: 739062 Change-Id: I249d8c2acef959ad437f3a636a490f42b61270e0 Reviewed-on: https://chromium-review.googlesource.com/575126Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Yoichi Osato <yoichio@chromium.org> Cr-Commit-Position: refs/heads/master@{#488109}
Showing
Please register or sign in to comment