Commit 147ea919 authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

Use new downcast helper for blink::HTMLDirectoryElement

The primary goal of this CL is to use IsA<HTMLDirectoryElement>(element)
in place of IsHTMLDirectoryElement(element)

Bug: 891908
Change-Id: Iab622a1653b9b24d27894bf2ede0ba18a59daf61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1739487Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Abhijeet Kandalkar <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#684423}
parent 23133506
...@@ -191,7 +191,7 @@ static bool PlanCounter(LayoutObject& object, ...@@ -191,7 +191,7 @@ static bool PlanCounter(LayoutObject& object,
return true; return true;
} }
if (IsHTMLUListElement(*e) || IsHTMLMenuElement(*e) || if (IsHTMLUListElement(*e) || IsHTMLMenuElement(*e) ||
IsHTMLDirectoryElement(*e)) { IsA<HTMLDirectoryElement>(*e)) {
value = 0; value = 0;
is_reset = true; is_reset = true;
return true; return true;
......
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