gecko-dev/layout/xul
Ting-Yu Lin 653f4b3694 Bug 1745113 Part 5 - Make grapheme cluster break iterators implement SegmentIteratorUtf16, and adapt the callers. r=necko-reviewers,jfkthame,kershaw
This is the main patch for the bug. It aims to change the grapheme cluster
break's `Next()` API by implementing SegmentIteratorUtf16 interface, and adapt
the callers. It shouldn't change the behavior.

While rewriting the caller, one caveat worth mentioning is the loop termination
condition. If the old code relies on `!AtEnd()` as the loop termination
condition, and it advances the iterator at the end of the loop, it meant
to *skip* its logic when the break position is at the end of the string. For
example, see the `mozTXTToHTMLConv::NumberOfMatches`.

This patch also hooks grapheme cluster break iterator into
Segmenter::TryCreate() interface.

Existing test coverage for the file changed:
- netwerk/test/unit/test_mozTXTToHTMLConv.js
- layout/reftests/forms/input/file/dynamic-max-width.html

Differential Revision: https://phabricator.services.mozilla.com/D135643
2022-01-13 18:36:04 +00:00
..
crashtests
reftest
test Bug 1746310 - Remove nsMenuPopupFrame::GenerateFrames and related code. r=tnikkel 2021-12-23 12:55:34 +00:00
tree Bug 1539884 - Part 31: Mark nsTreeBodyFrame::FireScrollEvent as CAN_RUN_SCRIPT r=masayuki 2021-12-23 16:27:24 +00:00
moz.build Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi 2021-12-23 20:29:07 +00:00
nsBox.cpp
nsBoxFrame.cpp
nsBoxFrame.h
nsBoxLayout.cpp
nsBoxLayout.h
nsBoxLayoutState.cpp
nsBoxLayoutState.h
nsButtonBoxFrame.cpp
nsButtonBoxFrame.h
nsDeckFrame.cpp
nsDeckFrame.h
nsDocElementBoxFrame.cpp
nsImageBoxFrame.cpp Bug 1748216 - Ensure that we invalidate previously decoded images without a surface ready. r=jrmuizel 2022-01-04 22:01:26 +00:00
nsImageBoxFrame.h
nsIPopupContainer.h
nsIScrollbarMediator.h
nsLeafBoxFrame.cpp
nsLeafBoxFrame.h
nsMenuBarFrame.cpp Backed out changeset 5c921d8e51bd (bug 1741089) for causing mochitest failures on test_bug557987.xhtml . CLOSED TREE 2021-11-16 18:27:45 +02:00
nsMenuBarFrame.h
nsMenuBarListener.cpp
nsMenuBarListener.h
nsMenuFrame.cpp Bug 1746310 - Remove nsMenuPopupFrame::GenerateFrames and related code. r=tnikkel 2021-12-23 12:55:34 +00:00
nsMenuFrame.h
nsMenuParent.h
nsMenuPopupFrame.cpp Backed out changeset e7b991987ae5 (bug 1742797) for causing bug 1748808 CLOSED TREE 2022-01-07 02:32:44 -05:00
nsMenuPopupFrame.h Bug 1539884 - Part 28: Mark nsXULPopupShownEvent::Run as CAN_RUN_SCRIPT_BOUNDARY r=masayuki 2021-12-23 16:27:23 +00:00
nsPopupSetFrame.cpp
nsPopupSetFrame.h
nsRepeatService.cpp
nsRepeatService.h
nsResizerFrame.cpp
nsResizerFrame.h
nsRootBoxFrame.cpp
nsScrollbarButtonFrame.cpp
nsScrollbarButtonFrame.h
nsScrollbarFrame.cpp
nsScrollbarFrame.h
nsSliderFrame.cpp Bug 367028 - Prevent drag-and-drop operation while dragging a scrollbar; r=masayuki 2021-12-17 12:10:58 +00:00
nsSliderFrame.h
nsSplitterFrame.cpp Backed out 2 changesets (bug 1737694) for causing web platform tests failures on autocapitalize.html CLOSED TREE 2021-10-27 10:50:15 -04:00
nsSplitterFrame.h
nsSprocketLayout.cpp
nsSprocketLayout.h
nsStackLayout.cpp
nsStackLayout.h
nsTextBoxFrame.cpp Bug 1745113 Part 5 - Make grapheme cluster break iterators implement SegmentIteratorUtf16, and adapt the callers. r=necko-reviewers,jfkthame,kershaw 2022-01-13 18:36:04 +00:00
nsTextBoxFrame.h
nsTitleBarFrame.cpp
nsTitleBarFrame.h
nsXULPopupManager.cpp Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre 2022-01-11 15:49:03 +00:00
nsXULPopupManager.h Bug 1539884 - Part 30: Mark nsXULPopupManager::FirePopupShowingEvent as CAN_RUN_SCRIPT r=masayuki 2021-12-23 16:27:23 +00:00
nsXULTooltipListener.cpp Bug 1744877 - Remove --disable-xul. r=Gijs 2021-12-08 21:37:11 +00:00
nsXULTooltipListener.h Bug 1744877 - Remove --disable-xul. r=Gijs 2021-12-08 21:37:11 +00:00