Skip to content

Commit

Permalink
Bug 1949969 - Fix the early return of `WSRunScanner::GetFirstVisibleP…
Browse files Browse the repository at this point in the history
…oint` r=m_kato

It's obviously wrong, but I don't find how to make us hit here with the
traditional white-space normalizer, but this will cause new failure once
applying the patches for bug 1940377.  Therefore, this does not have a new
test, but it'll be tested by extant tests soon.

Differential Revision: https://phabricator.services.mozilla.com/D239270
  • Loading branch information
masayuki-nakano committed Feb 26, 2025
1 parent f4bdaa8 commit d995b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/libeditor/WSRunScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ EditorDOMPointType WSRunScanner::GetFirstVisiblePoint(
const Element* aAncestorLimiter /* = nullptr */) {
EditorDOMPoint atStartOfTextNode(&aTextNode, 0);
if (!atStartOfTextNode.IsContainerEmpty() &&
atStartOfTextNode.IsCharCollapsibleASCIISpace()) {
!atStartOfTextNode.IsCharCollapsibleASCIISpace()) {
return atStartOfTextNode.To<EditorDOMPointType>();
}
const TextFragmentData textFragmentData(
Expand Down

0 comments on commit d995b26

Please sign in to comment.