gecko-dev/dom/serializers
Jonathan Kew a21b07a094 Bug 1734590 - Eliminate use of LineBreaker::DeprecatedNext in nsXMLContentSerializer.cpp. r=TYLin
The behavior change of Next() vs DeprecatedNext() here is OK, because if DeprecatedNext()
failed to find a break position then we'd end up reaching the "simple fallback logic"
below, which will just advance to the next space or end-of-text anyhow.

The only case, then, where this results in a change of behavior would be if there's a
space that the line-breaker does *not* consider a valid break, so that instead it
advances to end-of-text, where previously we'd have reached the fallback code and
used the (invalid) space as a break. So (a) this is a really obscure edge-case, and
(b) the new behavior would be more correct anyhow.

Differential Revision: https://phabricator.services.mozilla.com/D127805
2021-10-08 10:05:51 +00:00
..
moz.build Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium 2021-08-25 10:46:17 +00:00
nsDocumentEncoder.cpp
nsDOMSerializer.cpp
nsDOMSerializer.h
nsHTMLContentSerializer.cpp
nsHTMLContentSerializer.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
nsIContentSerializer.h
nsIDocumentEncoder.idl
nsPlainTextSerializer.cpp Bug 1733876 Part 5 - Simply line wrapping logic involving line breaker in FindWrapIndexForContent(). r=m_kato 2021-10-07 23:01:42 +00:00
nsPlainTextSerializer.h Bug 1733876 Part 5 - Simply line wrapping logic involving line breaker in FindWrapIndexForContent(). r=m_kato 2021-10-07 23:01:42 +00:00
nsXHTMLContentSerializer.cpp Bug 1723921 - Cleanup nsComputedDOMStyle and related APIs. r=layout-reviewers,jfkthame 2021-08-07 09:47:15 +00:00
nsXHTMLContentSerializer.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
nsXMLContentSerializer.cpp Bug 1734590 - Eliminate use of LineBreaker::DeprecatedNext in nsXMLContentSerializer.cpp. r=TYLin 2021-10-08 10:05:51 +00:00
nsXMLContentSerializer.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00