Closed
Bug 1421553
Opened 7 years ago
Closed 7 years ago
nsTextServicesDocument should handle native node instead of nsIDOMNode
Categories
(Core :: DOM: Editor, enhancement, P3)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
Details
Attachments
(2 files)
OffsetEntry should hold nsINode instead of nsIDOMNode
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → m_kato
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8932772 [details] Bug 1421553 - Part 1. OffsetEntry should use nsINode instead of nsIDOMNode. https://reviewboard.mozilla.org/r/203828/#review209300 ::: editor/txtsvc/nsTextServicesDocument.cpp:1725 (Diff revision 1) > nsCOMPtr<nsIDOMHTMLDocument> htmlDoc = do_QueryInterface(mDOMDocument); > > if (htmlDoc) { > // For HTML documents, the content root node is the body. > > nsCOMPtr<nsIDOMHTMLElement> bodyElement; > > nsresult rv = htmlDoc->GetBody(getter_AddRefs(bodyElement)); If we make it use nsIDocument, we can avoid using nsIDOMHTMLElement here, but out of scope of this bug.
Attachment #8932772 -
Flags: review?(masayuki) → review+
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8932773 [details] Bug 1421553 - Part 2. Remove nsIDOMRange usages from nsTextServicesDocument. https://reviewboard.mozilla.org/r/203830/#review209304
Attachment #8932773 -
Flags: review?(masayuki) → review+
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/4216488baf8f Part 1. OffsetEntry should use nsINode instead of nsIDOMNode. r=masayuki https://hg.mozilla.org/integration/autoland/rev/bb87c7d4a364 Part 2. Remove nsIDOMRange usages from nsTextServicesDocument. r=masayuki
Comment 6•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4216488baf8f https://hg.mozilla.org/mozilla-central/rev/bb87c7d4a364
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•