Closed
Bug 1415509
Opened 5 years ago
Closed 5 years ago
Make insert text related methods of editor use EditorRawDOMPoint
Categories
(Core :: DOM: Editor, enhancement)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(3 files)
This is a follow up bug of bug 1408227.
Assignee | ||
Comment 1•5 years ago
|
||
s/bug 1408227/bug 1406482
Assignee | ||
Comment 2•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e24ceb8cbada1f093cfe7db6c659d8adbf6247d9
Assignee | ||
Comment 3•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8a0141e79b3fb3a73655e3baef8b407d82fa4442
Assignee | ||
Comment 4•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=75aaf85fca060b159a3d5099cd94675debdc83de
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=bc8beb4bf158e3d8a948ba580423a0b637e287dd
Comment 9•5 years ago
|
||
mozreview-review |
Comment on attachment 8926825 [details] Bug 1415509 - part 1: EditorBase::FindBetterInsertionPoint() should take an EditorRawDOMPoint argument for input and return EditorRawDOMPoint for the result https://reviewboard.mozilla.org/r/198072/#review203604
Attachment #8926825 -
Flags: review?(m_kato) → review+
Comment 10•5 years ago
|
||
mozreview-review |
Comment on attachment 8926826 [details] Bug 1415509 - part 2: EditorBase::InsertTextImpl() should take |const EditorRawDOMPoint&| argument as input and |EditorRawDOMPoint*| as out argument instead of a set of container, child and offset of the child in the container as in/out argument https://reviewboard.mozilla.org/r/198074/#review203626 ::: editor/libeditor/HTMLEditRules.cpp:1538 (Diff revision 1) > - if (curNode) { > - aSelection->Collapse(curNode, curOffset); > + > + if (currentPoint.IsSet()) { > + ErrorResult error; > + aSelection->Collapse(currentPoint.AsRaw(), error); > + if (error.Failed()) { > + NS_WARNING("Failed to collapse at current point"); Is error.SuppressException() unnecessary for assertion?
Attachment #8926826 -
Flags: review?(m_kato) → review+
Assignee | ||
Comment 11•5 years ago
|
||
mozreview-review-reply |
Comment on attachment 8926826 [details] Bug 1415509 - part 2: EditorBase::InsertTextImpl() should take |const EditorRawDOMPoint&| argument as input and |EditorRawDOMPoint*| as out argument instead of a set of container, child and offset of the child in the container as in/out argument https://reviewboard.mozilla.org/r/198074/#review203626 > Is error.SuppressException() unnecessary for assertion? Oh, good catch!
Comment 12•5 years ago
|
||
mozreview-review |
Comment on attachment 8926827 [details] Bug 1415509 - part 3: WSRunObject::InsertText() should take |const EditorRawDOMPoint&| as input argument and |EditorRawDOMPoint*| as out argument instead of a set of container, child and offset of the child in the container as in/out argument https://reviewboard.mozilla.org/r/198076/#review203634
Attachment #8926827 -
Flags: review?(m_kato) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 16•5 years ago
|
||
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/e3d5220206fc part 1: EditorBase::FindBetterInsertionPoint() should take an EditorRawDOMPoint argument for input and return EditorRawDOMPoint for the result r=m_kato https://hg.mozilla.org/integration/autoland/rev/c6844ea5e019 part 2: EditorBase::InsertTextImpl() should take |const EditorRawDOMPoint&| argument as input and |EditorRawDOMPoint*| as out argument instead of a set of container, child and offset of the child in the container as in/out argument r=m_kato https://hg.mozilla.org/integration/autoland/rev/799b7dee5ebf part 3: WSRunObject::InsertText() should take |const EditorRawDOMPoint&| as input argument and |EditorRawDOMPoint*| as out argument instead of a set of container, child and offset of the child in the container as in/out argument r=m_kato
Comment 17•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e3d5220206fc https://hg.mozilla.org/mozilla-central/rev/c6844ea5e019 https://hg.mozilla.org/mozilla-central/rev/799b7dee5ebf
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•