Commit 078651f4 authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

Use new downcast helper for blink::HTMLBRElement

This CL has goal to use To<HTMLBRElement> as new downcast helper

Bug: 891908
Change-Id: Id23a072816c168c77285f635b7928fcc76c0609c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1930762Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Commit-Queue: Abhijeet | Igalia <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#719020}
parent 93eb52c3
......@@ -2077,7 +2077,7 @@ bool ReplaceSelectionCommand::PerformTrivialReplace(
if (node_after_insertion_pos && node_after_insertion_pos->parentNode() &&
IsA<HTMLBRElement>(*node_after_insertion_pos) &&
ShouldRemoveEndBR(
ToHTMLBRElement(node_after_insertion_pos),
To<HTMLBRElement>(node_after_insertion_pos),
VisiblePosition::BeforeNode(*node_after_insertion_pos))) {
RemoveNodeAndPruneAncestors(node_after_insertion_pos, editing_state);
if (editing_state->IsAborted())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment