Boris Zbarsky
747fb5d03d
Bug 1447889 part 6. Remove nsIDOMRange::SetStart/End. r=mystor
...
MozReview-Commit-ID: 8yOZMWBexsN
2018-03-27 00:35:21 -04:00
Boris Zbarsky
d76521b9d5
Bug 1447889 part 5. Remove nsIDOMRange::GetCommonAncestorContainer. r=mystor
...
MozReview-Commit-ID: 18bnPYjRld5
2018-03-27 00:35:21 -04:00
Boris Zbarsky
7e3b669edb
Bug 1447889 part 4. Remove nsIDOMRange::GetStart/EndContainer/Offset. r=mystor
...
I got a bit carried away with fixing up consumers to use nsINode... But as a
result removing these methods all together made sense.
MozReview-Commit-ID: 2z9Q6D7GY92
2018-03-27 00:35:21 -04:00
Boris Zbarsky
bd180f1c4a
Bug 1447889 part 3. Use Selection and nsRange more in nsDocumentEncoder. r=mystor
...
MozReview-Commit-ID: 2PYuoa1PFKL
2018-03-27 00:35:20 -04:00
Boris Zbarsky
82e160f204
Bug 1447889 part 2. Remove the XPCOM goop for creating Selection. r=mystor
...
It's unused; we never create these things by contract or classid.
MozReview-Commit-ID: 3Jsyb6QHlJt
2018-03-27 00:35:20 -04:00
Miko Mynttinen
86800aa3f1
Bug 1445302 - Replace TArray.RemoveElementAt(TArray.Length() - 1) pattern with TArray.RemoveLastElement() or TArray.PopLastElement() r=froydnj
...
MozReview-Commit-ID: rGjabnP2iz
2018-03-13 14:51:33 +01:00
Boris Zbarsky
d7af509907
Bug 1446533 part 4. Remove nsIDOMCharacterData::SubstringData. r=mystor
...
FromContent will be renamed to FromNode in bug 1447098.
MozReview-Commit-ID: DhiN6mCOb34
2018-03-19 15:18:07 -04:00
Boris Zbarsky
1f38775cb4
Bug 1446599 part 1. Stop using nsIDOMProcessingInstruction in serializers. r=mystor
...
MozReview-Commit-ID: loUmk0rNYV
2018-03-19 15:15:39 -04:00
Boris Zbarsky
6c76a18c4c
Bug 1446598 part 2. Get rid of nsIDOMComment. r=mystor
...
MozReview-Commit-ID: GGXPQnlwuUM
2018-03-19 15:15:39 -04:00
Boris Zbarsky
5d588e46d8
Bug 1446598 part 1. Stop using nsIDOMComment in serializers. r=mystor
...
MozReview-Commit-ID: IBVkQJOi6O7
2018-03-19 15:15:39 -04:00
Boris Zbarsky
ce8d780eb8
Bug 1433566 part 13. Remove nsIDOMText. r=mystor
...
MozReview-Commit-ID: DvaZ96j5exf
2018-03-19 15:15:39 -04:00
Boris Zbarsky
ac7ded6912
Bug 1445140 part 3. Pass a DocumentType to nsIContentSerializer::AppendDoctype. r=mystor
...
MozReview-Commit-ID: 5UjRSP6MoDI
2018-03-13 16:24:01 -04:00
Henri Sivonen
c237ed2674
Bug 1425520. r=smaug.
...
MozReview-Commit-ID: IoZeR5BGjmQ
2018-03-01 10:15:28 +02:00
Boris Zbarsky
a04420f06a
Bug 1432186 part 19. Remove the nsIDOMNode::*_NODE constants. r=mccr8
...
MozReview-Commit-ID: KvKjeKIOB9K
2018-01-29 23:10:53 -05:00
Boris Zbarsky
8315488628
Bug 1432186 part 17. Remove nsIDOMNode's parentNode attribute. r=mccr8
...
MozReview-Commit-ID: 4xzDwwEqnvE
2018-01-29 23:10:52 -05:00
Boris Zbarsky
90cd5ccb7d
Bug 1432186 part 14. Remove nsIDOMNode's childNodes attribute. r=mccr8
...
MozReview-Commit-ID: JyQjEYngKAT
2018-01-29 23:10:51 -05:00
Ehsan Akhgari
801f833ebc
Bug 1433563 - Remove nsIDOMCDATASection; r=qdot
2018-01-26 17:52:44 -05:00
Andrea Marchesini
8d41475807
Bug 1430997 - Rename nsINode::IndexOf to nsINode::ComputeIndexOf, r=catalinb
2018-01-23 14:30:18 +01:00
Andrea Marchesini
1b99fb5dd6
Bug 1425440 - Get rid of GetChildAt_Deprecated in nsDocumentEncoder, r=catalinb
2018-01-15 17:18:03 +01:00
Chris Peterson
677bf4030c
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
2017-11-05 19:37:28 -08:00
Andrea Marchesini
98865c5324
Bug 1425321 - Renaming nsINode::GetChildAt to GetChildAt_Deprecated, r=catalinb
...
We want to deprecate nsINode::GetChildAt as the first step of removing DOM node
child array storage. See bug 651120.
2018-01-03 13:59:54 +01:00
Emilio Cobos Álvarez
ebc2e23e06
Bug 1427511: Make GetFlattenedTreeParent more straight-forward. r=smaug
...
Now that accessing nsIContent slots is not a blob of virtual function calls, we
should be able to unify logic here, and speed up the not-so-rare case for
chrome, while keeping the usual case fast.
MozReview-Commit-ID: 87iY5Cbhx4T
2018-01-02 18:00:25 +01:00
Jorg K
b3d5491a2d
Bug 1423990 - Follow-up for conditionally compiled code for Thunderbird. r=smaug
2017-12-26 02:58:00 +02:00
Henri Sivonen
62e7888f0a
Bug 1409951 - Use a stack to end serializer contexts instead of recomputing them. r=smaug
...
MozReview-Commit-ID: FOd8AUmtYyA
2017-12-01 10:45:25 -05:00
Emilio Cobos Álvarez
cf5ec03009
Bug 1411612: Kill nsINode::eCONTENT. r=bz
...
MozReview-Commit-ID: ESlOqlwhcHI
2017-10-25 17:19:11 +02:00
Nicholas Nethercote
038eda3f17
Bug 1395828 (part 4) - Remove nsIParserService/nsParserService. r=mrbkap.
...
It a stateless wrapper around static methods in nsHTMLTags and nsHTMLElement,
and hence an unnecessary layer of indirection that just adds complexity and
slowness. This patch removes it, cutting almost 300 lines of code.
This requires making nsElementTable.h an exported header, to expose the
nsHTMLElement methods.
2017-09-05 20:19:06 +10:00
Henri Sivonen
cedffee5d2
Bug 1385272 - Make plaintext serializer not crash when a <tr> is a child of a <tr>. r=Ehsan
...
MozReview-Commit-ID: CMNIWYX8R07
2017-08-14 14:24:51 +03:00
Masayuki Nakano
e600000538
Bug 1377978 - Make nsRange use uint32_t to offset r=smaug
...
DOM Standard defines that offset of Range is unsigned long. However, nsRange uses int32_t to them.
This patch makes nsRange use uint32_t instead. However, this patch does NOT allow to set over INT32_MAX as offset values since a lot of users of nsRange cannot treat the values as over INT32_MAX because a lot of internal APIs take int32_t as offsets.
For easier to search such points, this patch adds static_cast<int32_t> to uint32_t variables when they are used for int32_t arguments.
And note that nsContentUtils::ComparePoints() behaves odd. It accepts negative offset and compares such value with valid offset simply. This patch still uses int32_t offset variables in nsRange::CompareNodeToRange() even though it may be negative value if nsINode::IndexOf() returns -1 because the caller of it depends on this behavior.
MozReview-Commit-ID: 8RbOgA86JuT
2017-07-19 22:49:52 +09:00
Masayuki Nakano
88be892b68
Bug 1377989 - part12: Rename local variables, |endParent| which is set to start container of nsRange to |endContainer| r=smaug
...
This does NOT change variable names like |endNode| because it's not odd and somebody use it for nsINode and endContent for nsIContent. So, changing them needs more work.
MozReview-Commit-ID: 22imUltlu5R
2017-07-12 00:08:37 +09:00
Masayuki Nakano
10093839d1
Bug 1377989 - part11: Rename local variables, |startParent| which is set to start container of nsRange to |startContainer| r=smaug
...
This does NOT change variable names like |startNode| because it's not odd and somebody use it for nsINode and startContent for nsIContent. So, changing them needs more work.
MozReview-Commit-ID: H19pTDprRuT
2017-07-12 00:02:14 +09:00
Masayuki Nakano
f4a5a8a21e
Bug 1377989 - part2: Rename nsRange::GetEndParent() to nsRange::GetEndContainer() r=smaug
...
MozReview-Commit-ID: K4qPjtZ62yO
2017-07-11 21:11:37 +09:00
Masayuki Nakano
7015ac1e62
Bug 1377989 - part1: Rename nsRange::GetStartParent() to nsRange::GetStartContainer() r=smaug
...
Web standards use "Container" instead of "Parent". So, nsRange shouldn't use "Parent" for its members and methods.
MozReview-Commit-ID: Ho6N0diuWtE
2017-07-11 20:53:04 +09:00
Masatoshi Kimura
1fd69c2f1a
Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
...
MozReview-Commit-ID: 5O5WtxbmATQ
2017-06-17 11:54:40 +09:00
Henri Sivonen
7af0452b6b
Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
...
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
Ehsan Akhgari
373ada68c3
Bug 1370737 - Track seen preformatted elements in the document encoder to maintain stack balance correctly irrespective of element visibility; r=bzbarsky
2017-06-13 00:30:36 -04:00
Makoto Kato
6f543bc32b
Bug 1358979 - nsPlainTextSerializer should be cycle collection. r=smaug
...
nsPlainTextSerializer holds Element, so it should use cycle collection class.
MozReview-Commit-ID: ELykrDQaCei
2017-04-24 19:17:17 +09:00
Makoto Kato
15c2c64faf
Bug 1358979 - nsDocumentEncoder with RequiresReinitAfterOutput should reset some strong pointers. r=smaug
...
We should release strong pointers into nsDocumentEncoder with RequiresReinitAfterOutput option to avoid holding dom node.
Also, mStream and mUnicodeEncoder will release into EncodeToStream, so it is unnecessary to clear it.
MozReview-Commit-ID: Ll8jFmMj4Ps
2017-04-24 18:14:53 +09:00
Makoto Kato
0a23a58b46
Bug 1352882 - Part 1. Add releasing nsIDocument option to recycle nsIDocumentEncoder. r=smaug
...
Editor uses weak reference for nsIDocument. But nsDocumentEncoder has strong reference of nsIDocument. So to recycle nsIDocumentEncoder, editor wants the option that nsIDocumentEncoder releases nsIDocument into nsDocumentEncoder after EncodeTo* is called.
MozReview-Commit-ID: K3E9XhgD8FY
2017-04-17 19:49:52 +09:00
Mats Palmgren
1efd2a1407
Bug 1341137 part 2 - Provide a way to add ranges to Selection objects that aren't associated with a shell/nsFrameSelection. r=smaug
2017-02-25 11:33:34 +01:00
Wes Kocher
bdadad6845
Backed out 3 changesets (bug 1341137) for wpt failures in addRange-00.html a=backout
...
Backed out changeset 343d11a33afe (bug 1341137)
Backed out changeset ac44e1e713e1 (bug 1341137)
Backed out changeset 6f32de880c77 (bug 1341137)
MozReview-Commit-ID: 26CQIfTXLRI
2017-02-24 16:28:17 -08:00
Mats Palmgren
9b1659cfc1
Bug 1341137 part 2 - Provide a way to add ranges to Selection objects that aren't associated with a shell/nsFrameSelection. r=smaug
2017-02-25 00:26:18 +01:00
L. David Baron
6eb5c8ff40
Bug 1320815 - DeCOMtaminate nsIFrame::IsSelectable by returning boolean instead of nsresult. r=xidorn
...
MozReview-Commit-ID: EBxBcEgIvp7
2016-11-28 15:31:29 -08:00
Jorg K
82d11230ae
Bug 1263357 - When the caret is placed after visible line break, associate caret with frame on the next line instead. r=mats
2016-10-14 14:21:00 -04:00
Michael Layzell
5b51c96616
Bug 1297802 - Remove unused RefPtr<> and COMPtr<> types in dom/, r=baku
...
MozReview-Commit-ID: CLUJZdbN7sW
2016-08-29 11:40:02 -04:00
Masayuki Nakano
df276e50d4
Bug 1185307 part.2 Replace upcast from nsISelection to mozilla::dom::Selection with nsISelection::AsSelection() r=smaug
...
MozReview-Commit-ID: Gs3oiAgJFG9
2016-06-17 22:32:49 +09:00
Jorg K
d6dae8e151
Bug 1230163 - White-space copy issue: Add conditional compile also for SeaMonkey. r=ehsan
2016-02-09 06:47:00 +01:00
Birunthan Mohanathas
bfee0fb40c
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Ting-Yu Lin
60711ad8f1
Bug 1227927 Part 3 - Use ranged-based for-loop to rewrite some simple loops in part 2. r=mats
2016-01-29 22:42:15 +08:00