Skip to content
Snippets Groups Projects
  1. Sep 02, 2022
    • Ting-Yu Lin's avatar
      Bug 1779846 - Remove an unneeded if-statement in... · 8b922f50
      Ting-Yu Lin authored
      Bug 1779846 - Remove an unneeded if-statement in TextServicesDocument::OffsetEntryArray::FindWordRange(). r=masayuki, a=dmeehan
      
      This patch fixed a regression caused by Bug 1730084 Part 4
      https://phabricator.services.mozilla.com/D125434, which is intended to preserve
      the behavior of `WordBreaker::FindWord()`.
      
      Before Bug 1730084 Part 4, `WordBreaker::FindWord()` returns
      `[aTextLen + 1, aTextLen + 1]` only when `aOffset > aTextLen`.
      But `WordBreaker::FindWord()` had an assertion `aOffset <= aTextLen`
      to guarantee the caller never passes `aOffset > aTextLen`. Thus, we can never
      go into the `if (res.mBegin > strLen)` in
      `TextServicesDocument::OffsetEntryArray::FindWordRange()`.
      
      However, Bug 1730084 Part 4 wrongly changes the if-statement to
      `if (range.mEnd == range.mBegin)`, and makes it reachable when
      `TextServicesDocument::OffsetEntryArray::FindWordRange()` passes
      `aPos == aLen` into `WordBreaker::FindWord()`. This makes `InitSpellChecker()`
      failed when `enableSelectionChecking=true`.
      
      This patch deletes the originally unreachable error handling if-statement, and
      adds an assertion to guarantee `strOffset` and `strLen` is valid.
      
      Differential Revision: https://phabricator.services.mozilla.com/D156210
      8b922f50
    • Masayuki Nakano's avatar
      Bug 1785801 - Make `RangeUpdater::SelAdjJoinNodes` take the ex-offset of right... · d902453e
      Masayuki Nakano authored
      Bug 1785801 - Make `RangeUpdater::SelAdjJoinNodes` take the ex-offset of right node. r=m_kato, a=RyanVM
      
      In bug 1739524, I misunderstood the meaning of `aOffset` of `SelAdjJoinNodes`.
      
      After joining 2 nodes, and a point points right node which will have ex-left
      node content, the point needs to point ex-start of the right node to keep
      next insertion point as-is.  Therefore, it's not useful with new join nodes
      direction, it needs to know the ex-offset of the right node.
      
      This is a backport patch of https://phabricator.services.mozilla.com/D155438 for
      ESR 102.
      
      Differential Revision: https://phabricator.services.mozilla.com/D156271
      d902453e
  2. Jul 20, 2022
  3. Jul 14, 2022
  4. Jun 25, 2022
  5. Jun 23, 2022
  6. May 30, 2022
    • Pascal Chevrel's avatar
      Backed out 5 changesets (bug 1770133) on beta, large refactoring during soft... · b08ef8d6
      Pascal Chevrel authored
      Backed out 5 changesets (bug 1770133) on beta, large refactoring during soft code freeze, needs nightly bake time a=backout
      
      Backed out changeset 8596922e3e2e (bug 1770133)
      Backed out changeset 6151c1cf0404 (bug 1770133)
      Backed out changeset 7322de6f865f (bug 1770133)
      Backed out changeset df84cc3d5d23 (bug 1770133)
      Backed out changeset b92de4a984f1 (bug 1770133)
      b08ef8d6
    • Pascal Chevrel's avatar
      Backed out 8 changesets (bug 1770874) on beta, large refactoring during soft... · e1053941
      Pascal Chevrel authored
      Backed out 8 changesets (bug 1770874) on beta, large refactoring during soft code freeze, needs nightly bake time a=backout
      
      Backed out changeset 5d866154c49f (bug 1770874)
      Backed out changeset 75a25dbc4c88 (bug 1770874)
      Backed out changeset 049366a15c3c (bug 1770874)
      Backed out changeset 9bb0023ac750 (bug 1770874)
      Backed out changeset 526ea470c4dd (bug 1770874)
      Backed out changeset b635369043bd (bug 1770874)
      Backed out changeset 77b1aeae51f1 (bug 1770874)
      Backed out changeset 6946652d4ed9 (bug 1770874)
      e1053941
  7. May 28, 2022
  8. May 27, 2022
  9. May 26, 2022
  10. May 24, 2022
  11. May 20, 2022
Loading