Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BitStack::top() should calculate an index instead of always using m_w…
…ords.last() BitStack::top() should calculate an index instead of always using m_words.last() https://bugs.webkit.org/show_bug.cgi?id=142224 Reviewed by Antti Koivisto. Merge - https://chromium.googlesource.com/chromium/blink/+/6513eab4e0dae0ff8556dd6ddbbb9c475bec2d32 This patch is to fix a logical error, where if the stack gets deeper than sizeof(unsigned), the result reported by top() can be incorrect if anything has been popped. * Source/WebCore/editing/TextIterator.cpp: (BitStack::top): Add unsigned variable "index" and use it as an array for return value Canonical link: https://commits.webkit.org/258190@main
- Loading branch information