Skip to content
Commit 7353b245 authored by Lauren Winston's avatar Lauren Winston Committed by Chromium LUCI CQ
Browse files

[Read Aloud] Ensure Read Aloud works with PDFs

Previously, Read Aloud checked for a starting node by checking that
the first text node id was not equal to -1. But this was an incorrect
assumption, as PDF node ids may be negative.

This CL cleans up the Read Aloud code so that we're now using null to
track whether or not a node id has been set, instead of using -1.

Bug: 329109390
Change-Id: Ie2087f5b367618498760bdf3f869624479cc4a2c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5405797


Commit-Queue: Lauren Winston <lwinston@google.com>
Reviewed-by: default avatarJocelyn Tran <jocelyntran@google.com>
Cr-Commit-Position: refs/heads/main@{#1280237}
parent 05dc3d8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment