gecko-dev/editor/libeditor
Masayuki Nakano f8501ee2d8 Bug 1890915 - Make EditorBase::CloneAttributesWithTransaction() collect all attributes before updating the DOM tree r=m_kato
`while (RefPtr<Attr> attr = attributes->Item(0))` causes a warning in
`nsDOMAttributeMap::IndexedGetter()` because of out of bounds.  Additionally,
we should not make a loop with live DOM tree information if the loop updates
the DOM tree.  Therefore, this patch makes it collect all attributes first
before touching the DOM tree.

Depends on D207240

Differential Revision: https://phabricator.services.mozilla.com/D207241
2024-04-15 05:49:02 +00:00
..
crashtests
tests Bug 1705440 - remove old modal prompt implementation, r=mconley,webdriver-reviewers,extension-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,whimboo,rpl 2024-03-20 17:47:47 +00:00
AutoRangeArray.cpp Bug 1883562 - part 1: Make AutoBlockElementsJoiner work with one range r=m_kato 2024-03-11 08:01:50 +00:00
AutoRangeArray.h Bug 1883562 - part 1: Make AutoBlockElementsJoiner work with one range r=m_kato 2024-03-11 08:01:50 +00:00
ChangeAttributeTransaction.cpp
ChangeAttributeTransaction.h
ChangeStyleTransaction.cpp Bug 1856795 - Remove redundant member init r=emilio 2023-10-15 15:29:02 +00:00
ChangeStyleTransaction.h
CompositionTransaction.cpp
CompositionTransaction.h
CSSEditUtils.cpp
CSSEditUtils.h
DeleteContentTransactionBase.cpp
DeleteContentTransactionBase.h
DeleteMultipleRangesTransaction.cpp
DeleteMultipleRangesTransaction.h
DeleteNodeTransaction.cpp
DeleteNodeTransaction.h
DeleteRangeTransaction.cpp
DeleteRangeTransaction.h
DeleteTextTransaction.cpp
DeleteTextTransaction.h
EditAction.h Bug 903746 - part 2: Add textInput event and make EditorBase dispatch it as a default action of beforeinput r=smaug 2024-04-08 12:30:00 +00:00
EditAggregateTransaction.cpp
EditAggregateTransaction.h
EditorBase.cpp Bug 1890915 - Make EditorBase::CloneAttributesWithTransaction() collect all attributes before updating the DOM tree r=m_kato 2024-04-15 05:49:02 +00:00
EditorBase.h Bug 903746 - part 2: Add textInput event and make EditorBase dispatch it as a default action of beforeinput r=smaug 2024-04-08 12:30:00 +00:00
EditorCommands.cpp Bug 1883367 - Disable editor commands for read-only editors. r=masayuki 2024-03-08 17:55:57 +00:00
EditorCommands.h Bug 1244437 - part 1: Make HTMLEditUtils::IsFormatNode check same tags as Chromium does r=m_kato 2023-10-26 03:45:17 +00:00
EditorController.cpp
EditorController.h
EditorDOMPoint.h Bug 1865729 - part 0: Add logging code of AutoMoveOneLineHandler r=m_kato 2023-11-27 01:46:42 +00:00
EditorEventListener.cpp Bug 1870960 - Make IMEStateManager stop using nsPresContext::GetTextInputHandlingWidget() as far as possible r=smaug 2024-01-16 00:09:35 +00:00
EditorEventListener.h
EditorForwards.h Bug 1859245 - part 4: Make HTMLEditor handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
EditorUtils.cpp Bug 1852478 - Convert CSS white-space into a shorthand that expands to white-space-collapse and text-wrap-mode longhands. r=firefox-style-system-reviewers,emilio 2024-01-26 09:40:02 +00:00
EditorUtils.h Bug 1852478 - Convert CSS white-space into a shorthand that expands to white-space-collapse and text-wrap-mode longhands. r=firefox-style-system-reviewers,emilio 2024-01-26 09:40:02 +00:00
EditTransactionBase.cpp
EditTransactionBase.h
HTMLAbsPositionEditor.cpp
HTMLAnonymousNodeEditor.cpp Bug 1861231 - Make editor handle user input with original target instead of target r=sefeng,dom-core 2023-11-21 03:58:01 +00:00
HTMLEditHelpers.cpp Bug 1856795 - Remove redundant member init r=emilio 2023-10-15 15:29:02 +00:00
HTMLEditHelpers.h Bug 1859245 - part 1: Make JoinNodesResult and SplitNodeResult handle only the new direction mode r=m_kato 2023-10-27 01:57:28 +00:00
HTMLEditor.cpp Bug 1887719 - More consistently use UTF8String/nsCString for URLs. r=necko-reviewers,webidl,anti-tracking-reviewers,places-reviewers,jari,kershaw,janv,smaug,hsivonen 2024-04-04 11:49:57 +00:00
HTMLEditor.h Bug 1870958 - Make TextControlState notify IMEContentObserver of default value change if TextEditor is being initialized r=smaug,m_kato 2024-01-24 22:50:27 +00:00
HTMLEditorCommands.cpp Bug 1883367 - Disable editor commands for read-only editors. r=masayuki 2024-03-08 17:55:57 +00:00
HTMLEditorController.cpp Bug 1244437 - part 1: Make HTMLEditUtils::IsFormatNode check same tags as Chromium does r=m_kato 2023-10-26 03:45:17 +00:00
HTMLEditorController.h
HTMLEditorDataTransfer.cpp Backed out changeset 18dde41563b1 (bug 1882818) for causing Bug 1884613. CLOSED TREE 2024-03-11 09:45:35 +02:00
HTMLEditorDeleteHandler.cpp Bug 1883562 - part 2: Make EditorBase::DeleteRangesWithTransaction and the fallback path of AutoDeleteRangesHandler work with single range r=m_kato 2024-03-11 08:01:51 +00:00
HTMLEditorDocumentCommands.cpp Bug 1859245 - part 4: Make HTMLEditor handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
HTMLEditorEventListener.cpp Bug 1861231 - Make editor handle user input with original target instead of target r=sefeng,dom-core 2023-11-21 03:58:01 +00:00
HTMLEditorEventListener.h Bug 1856795 - Remove redundant member init r=emilio 2023-10-15 15:29:02 +00:00
HTMLEditorInlines.h Bug 1865729 - part 0: Add logging code of AutoMoveOneLineHandler r=m_kato 2023-11-27 01:46:42 +00:00
HTMLEditorNestedClasses.h
HTMLEditorObjectResizer.cpp
HTMLEditorState.cpp Bug 1865729 - part 1: Make AutoMoveOneLineHandler make AutoRangeArray work with BlockInlineCheck::UseComputedDisplayOutsideStyle r=m_kato 2023-11-27 01:46:42 +00:00
HTMLEditSubActionHandler.cpp Bug 1876913 - part 2: Make HTMLEditor::FormatBlockContainerWithTransaction refer the computed style when considering the wrapping part r=m_kato 2024-01-30 13:02:37 +00:00
HTMLEditUtils.cpp Bug 1887719 - More consistently use UTF8String/nsCString for URLs. r=necko-reviewers,webidl,anti-tracking-reviewers,places-reviewers,jari,kershaw,janv,smaug,hsivonen 2024-04-04 11:49:57 +00:00
HTMLEditUtils.h Bug 1872422 - Make HTMLEditUtils::IsNeverElementContentsEditableByUser return false for <picture> r=m_kato 2024-01-10 01:37:54 +00:00
HTMLInlineTableEditor.cpp
HTMLStyleEditor.cpp Bug 1890912 - Fix warning spam in HTMLEditor::SplitAncestorStyledInlineElementsAtRangeEdges() r=m_kato 2024-04-15 02:45:42 +00:00
HTMLTableEditor.cpp Bug 1870222 - part 1: Rename HTMLEditUtils::EmptyCheckOption::IgnoreEditableState with inverting the meaning r=m_kato 2023-12-25 12:54:06 +00:00
InsertNodeTransaction.cpp
InsertNodeTransaction.h
InsertTextTransaction.cpp
InsertTextTransaction.h
InternetCiter.cpp
InternetCiter.h
JoinNodesTransaction.cpp Bug 1859245 - part 3: Make JoinNodesTransaction and SplitNodeTransaction handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
JoinNodesTransaction.h Bug 1859245 - part 3: Make JoinNodesTransaction and SplitNodeTransaction handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
ManualNAC.h
MoveNodeTransaction.cpp
MoveNodeTransaction.h
moz.build Bug 1855300 - convert .ini manifests to .toml: batch 11 remaining **/mochitest.ini r=jmaher,geckoview-reviewers,extension-reviewers,valentin,credential-management-reviewers,cookie-reviewers,sgalich,m_kato,robwu 2023-10-13 02:32:24 +00:00
PendingStyles.cpp
PendingStyles.h
PlaceholderTransaction.cpp
PlaceholderTransaction.h
ReplaceTextTransaction.cpp
ReplaceTextTransaction.h
SelectionState.cpp Bug 1859245 - part 4: Make HTMLEditor handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
SelectionState.h Bug 1859245 - part 2: Make HTMLEditor::DoJoinNodes and HTMLEditor::DoSplitNode handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
SplitNodeTransaction.cpp Bug 1859245 - part 3: Make JoinNodesTransaction and SplitNodeTransaction handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
SplitNodeTransaction.h Bug 1859245 - part 3: Make JoinNodesTransaction and SplitNodeTransaction handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
TextEditor.cpp Bug 1881845 - Remove nsContentCID.h r=smaug,media-playback-reviewers,karlt 2024-03-04 23:41:05 +00:00
TextEditor.h
TextEditorDataTransfer.cpp Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers 2024-02-13 11:26:48 +00:00
TextEditSubActionHandler.cpp Bug 1858590 - Make TextEditor::HandleInsertText stop handling the command for empty string after deleting selection r=m_kato 2023-10-19 03:16:08 +00:00
WSRunObject.cpp Bug 1852478 - Convert CSS white-space into a shorthand that expands to white-space-collapse and text-wrap-mode longhands. r=firefox-style-system-reviewers,emilio 2024-01-26 09:40:02 +00:00
WSRunObject.h Bug 1868641 - Make AutoDeleteRangesHandler::ExtendOrShrinkRangeToDelete not cross flex-item and grid-item boundary r=m_kato 2023-12-13 00:51:01 +00:00