Dorel Luca
bf089188f1
Merge mozilla-inbound to mozilla-central. a=merge
2018-05-16 00:54:22 +03:00
Emilio Cobos Álvarez
967e0989f6
Bug 1461701: Remove nsUpdateType and UPDATE_CONTENT_MODEL. r=smaug
...
MozReview-Commit-ID: 33iBMZqnkAc
2018-05-15 18:47:16 +02:00
Emilio Cobos Álvarez
2eb6c582d6
Bug 1459529: Remove UPDATE_STYLE. r=heycam
...
Now that BeginUpdate is useless for the UPDATE_STYLE case, we don't need the
update mechanism at all. Just ensure that ApplicableStylesChanged is called on
the pres shell via the relevant RuleChanged, etc. notifications.
There's a big hidden gotcha here. nsIDocument::BeginUpdate does put a script
blocker on the stack for these updates. However it's not needed, since no script
can run during these notifications (only the stylesheet events we post for
devtools, but those use AsyncEventDispatcher and PostDOMEvents, so they don't
try to run immediately).
nsIDocument::BeginUpdate also does XBL binding attached queue stuff, but we
can't change bindings during these notifications anyway, so it also doesn't
matter.
MozReview-Commit-ID: HJvK6zQfloh
2018-05-15 18:44:29 +02:00
Adrian Wielgosik
93eb294385
Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
...
MozReview-Commit-ID: LKRnyDPNlle
2018-05-11 19:46:15 +02:00
Valentin Gosu
a8351c5f7b
Bug 1448058 - Remove nsIMutable from URI implementations r=mayhemer
...
* Also removes NS_TryToMakeImmutable, NS_TryToSetImmutable, URIIsImmutable
* NS_EnsureSafeToReturn, nsINetUtil.toImmutableURI
MozReview-Commit-ID: 5eFtFm2CQt7
2018-05-09 18:21:24 +02:00
Boris Zbarsky
3d7e344fa9
Bug 1387143 part 20. Remove nsISelectionPrivate. r=mats
2018-05-08 13:52:38 -04:00
Boris Zbarsky
9e4bb5315f
Bug 1387143 part 3. Stop using nsISelection in nsISelectionController. r=mats
2018-05-08 13:52:36 -04:00
Emilio Cobos Álvarez
be43ec910e
Bug 1457920: Remove ServoStyleSheet usage. r=xidorn
...
MozReview-Commit-ID: LIBkovuQ6MB
2018-05-02 04:13:26 +02:00
Emilio Cobos Álvarez
c7e1c095c7
Bug 1457920: Remove StyleSheet::AsServo. r=xidorn
...
MozReview-Commit-ID: IkkJvUFHykk
2018-05-02 04:13:21 +02:00
Cosmin Sabou
cd2df3e76b
Merge inbound to mozilla-central. a=merge
2018-04-27 13:04:36 +03:00
Boris Zbarsky
599ef690cf
Bug 1455674 part 16. Remove most use of nsIDOMElement in dom. r=qdot
2018-04-26 23:37:34 -04:00
Emilio Cobos Álvarez
cf43ef3960
Bug 1457102: Avoid grabbing a reference to the pres context. r=heycam
...
Nothing from within CompatibilityModeChanged can kill it.
MozReview-Commit-ID: 386GiYBC6kF
2018-04-26 16:10:10 +02:00
Emilio Cobos Álvarez
e4ff97375b
Bug 1457102: Avoid all the work if the compat mode hasn't actually changed. r=heycam
...
In this case the stylist is marked dirty because a compat mode change. The
change just doesn't exist (NavQuirks -> NavQuirks).
So avoid the work in the first place.
MozReview-Commit-ID: lchKJECNkO
2018-04-26 16:07:30 +02:00
Adrian Wielgosik
38f9a663ce
Bug 1447389 - Remove nsIDOMNodeList. r=bz
...
MozReview-Commit-ID: 11szZP6dS6V
2018-04-25 23:01:30 +02:00
Gijs Kruitbosch
b6b469004e
Bug 1446522 - don't return NS_ERROR_FAILURE for cut/copy/paste even when there's no selection, r=enndeakin+6102
...
MozReview-Commit-ID: AhToM4sAjJn
2018-03-26 20:18:05 +01:00
Adrian Wielgosik
3c7a24d734
Bug 1170771 - Remove now-empty nsDOMClassInfo. r=bz
...
MozReview-Commit-ID: 7XsiPD1kTt9
2018-04-05 14:20:44 +02:00
Xidorn Quan
ea8b8b1e74
Bug 1449400 part 5 - Remove StyleSetHandle. r=emilio
...
This patch basically does:
* remove StyleSetHandle and its corresponding files
* revisit #includes of related header files and change correspondingly
* change nsIPresShell::mStyleSet to be UniquePtr<ServoStyleSet>
* change the creating path of ServoStyleSet to pass UniquePtr
* change other mentions of StyleSetHandle to ServoStyleSet*
* remove AsServo() calls on ServoStyleSet
Some unfortunate bits:
* some methods of (Servo)StyleSet only accepts ServoStyleSheet while
many places call into the methods with StyleSheet, so there are many
->AsServo() added to sheets
MozReview-Commit-ID: K4zYnuhOurA
2018-03-29 22:15:46 +11:00
Boris Zbarsky
9321f7b0d9
Bug 1444872. Remove support for the 'type' parameter to document.open. r=qdot
2018-03-28 18:01:46 -04:00
Xidorn Quan
c77f975241
Bug 1447828 part 6 - Have only a single nsLayoutStylesheetCache instance. r=emilio
...
MozReview-Commit-ID: BjCgc8MZjIq
2018-03-29 02:34:34 +11:00
Boris Zbarsky
2f03e52f54
Bug 1447890 part 5. Remove nsISelection::RemoveAllRanges. r=mystor
...
MozReview-Commit-ID: EeMje9KW6An
2018-03-27 00:35:23 -04:00
Boris Zbarsky
32b248d7cd
Bug 1447889 part 8. Remove nsIDOMRange::SelectNode/SelectNodeContents. r=mystor
...
MozReview-Commit-ID: 2hbF6pT31Xd
2018-03-27 00:35:21 -04:00
Hiroyuki Ikezoe
6807e67b10
Bug 1440523 - Bail out from nsHTMLDocument::EditingStateChanged if the docshell is being destroyed by FlushPendingNotifications call. r=masayuki
...
MozReview-Commit-ID: DlFXWdpB1Xv
2018-03-26 11:25:56 +09:00
Emilio Cobos Álvarez
ffd4d2dac6
Bug 1446568: Move a few of the remaining nsDocument members to nsIDocument. r=smaug
...
MozReview-Commit-ID: 3FdiyHLFOh
2018-03-17 16:22:04 +01:00
Boris Zbarsky
4627e6ad5e
Bug 1415588 part 4. Move the .anchors getter from HTMLDocument to Document. r=mystor
...
MozReview-Commit-ID: 2uqt9cdz6y7
2018-03-12 21:44:57 -04:00
Boris Zbarsky
2ffd523b10
Bug 1415588 part 3. Move the .links getter from HTMLDocument to Document. r=mystor
...
The null-checks in MatchLinks were working around code in nsDocument::Destroy
that was removed a while back in bug 341730.
MozReview-Commit-ID: 2SMmGr83GCB
2018-03-12 21:44:56 -04:00
Boris Zbarsky
b754251396
Bug 1415588 part 2. Move the .images, .embeds, .plugins, .forms, .scripts, .applets getters from HTMLDocument to Document. r=mystor
...
MozReview-Commit-ID: Db7iazZUz8g
2018-03-12 21:44:56 -04:00
Valentin Gosu
40fc96e930
Bug 1433958 - Change code that uses nsIURI.setHostAndPort() to use nsIURIMutator r=mayhemer
...
* Removes setHostAndPort from nsIURIMutator as it only has one use
* Instead, the consumer sets the port to -1 before calling setHostPort()
MozReview-Commit-ID: Jx9UMW440hq
2018-02-26 20:43:45 +01:00
Peter Van der Beken
8206cf758c
Bug 1452981 - Use ToJSValue instead of WrapObject if we know we have a nsWrapperCache. r=bz.
2016-12-09 18:02:50 +01:00
Hiroyuki Ikezoe
b1da8534e8
Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
...
It would be convenient to get nsPresContext from nsIDocument.
MozReview-Commit-ID: Ei6V3UE8XGr
2018-02-21 07:00:10 +09:00
Boris Zbarsky
41c46ec098
Bug 1418085 part 6. Remove nsIDOMHTMLElement. r=mystor
...
MozReview-Commit-ID: 5QUyFeAQYZQ
2018-01-30 00:25:36 -05:00
Boris Zbarsky
a86373f271
Bug 1418076 part 11. Eliminate the nsIDOMHTMLDocument interface. r=mystor
...
MozReview-Commit-ID: 4lEcUeenbg3
2018-01-26 01:03:25 -05:00
Boris Zbarsky
912dc2d7f0
Bug 1418076 part 8. Remove remaining, unused, nsIDOMHTMLDocument methods. r=mystor.
...
MozReview-Commit-ID: AshWkds4I8Z
2018-01-26 01:01:16 -05:00
Boris Zbarsky
67ffec5671
Bug 1418076 part 7. Get rid of nsIDOMHTMLDocument's color attributes. r=mystor
...
MozReview-Commit-ID: 4jgoGqWyymA
2018-01-26 01:01:08 -05:00
Boris Zbarsky
de487cc7e0
Bug 1418076 part 6. Get rid of nsIDOMHTMLDocument's queryCommand* methods. r=mystor
...
MozReview-Commit-ID: Jch0wfisBZa
2018-01-26 01:00:58 -05:00
Boris Zbarsky
abf95bbc4c
Bug 1418076 part 5. Get rid of nsIDOMHTMLDocument's designMode attribute. r=mystor
...
MozReview-Commit-ID: 8CB3OZBHa9q
2018-01-26 01:00:49 -05:00
Boris Zbarsky
cb65f7c8bb
Bug 1418076 part 4. Get rid of nsIDOMHTMLDocument's open/close/write/writeln methods. r=mystor
...
MozReview-Commit-ID: 4HbZljdQR2I
2018-01-26 01:00:41 -05:00
Boris Zbarsky
3e281aedbd
Bug 1418076 part 3. Get rid of nsIDOMHTMLDocument's head attribute. r=mystor
...
MozReview-Commit-ID: Cj7l9TqmAby
2018-01-26 01:00:33 -05:00
Boris Zbarsky
1fd1a65228
Bug 1418076 part 2. Get rid of nsIDOMHTMLDocument's cookie attribute. r=mystor
...
MozReview-Commit-ID: JLW7dFPbY3m
2018-01-26 01:00:20 -05:00
Boris Zbarsky
4b49594fcb
Bug 1418076 part 1. Get rid of nsIDOMHTMLDocument's domain attribute. r=mystor
...
MozReview-Commit-ID: Igf83iosX8L
2018-01-26 01:00:04 -05:00
Boris Zbarsky
e558432368
Bug 1276438 part 7. Get rid of nsIDOMHTMLDocument::GetBody. r=mystor
...
MozReview-Commit-ID: 5XyZc8hQndQ
2018-01-26 00:53:35 -05:00
Boris Zbarsky
06d6306e2a
Bug 1276438 part 2. Move the implementation of the .body setter from nsHTMLDocument to nsIDocument. r=mystor
...
MozReview-Commit-ID: EJAZfrXC0QJ
2018-01-26 00:36:57 -05:00
Boris Zbarsky
09e52eb431
Bug 1276438 part 1. Move the implementation of the .body getter from nsHTMLDocument to nsIDocument. r=mystor
...
MozReview-Commit-ID: BhQuGS1NdmQ
2018-01-25 06:55:47 -05:00
Andrea Marchesini
3faaf5a84b
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
...
* * *
Bug 1425458 - Resource timing entries Workers - part 10 - Correct parameters in NS_NewChannel in nsDataObj.cpp, r=me
2018-01-24 17:17:31 +01:00
Brindusan Cristian
1153f2c09e
Backed out 12 changesets (bug 1425458) for mochitest failures on WorkerPrivate.cpp on a CLOSED TREE
...
Backed out changeset 11997de13778 (bug 1425458)
Backed out changeset 100b9d4f36bc (bug 1425458)
Backed out changeset a29e9dbb8c42 (bug 1425458)
Backed out changeset b96d58fd945c (bug 1425458)
Backed out changeset f140da44ba68 (bug 1425458)
Backed out changeset af56400233d9 (bug 1425458)
Backed out changeset 7034af4332e4 (bug 1425458)
Backed out changeset f70500179140 (bug 1425458)
Backed out changeset 793bbfc23257 (bug 1425458)
Backed out changeset 2efb375a8ffc (bug 1425458)
Backed out changeset 07e781e37451 (bug 1425458)
Backed out changeset e875f3702a5f (bug 1425458)
2018-01-24 20:47:48 +02:00
Andrea Marchesini
b434804b93
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
2018-01-24 17:17:31 +01:00
Jonathan Watt
81d9b45e4b
Bug 1430619 part 3 - Remove nsIContentViewerContainer. r=smaug
...
MozReview-Commit-ID: BxpgH0DPKQw
2018-01-11 12:27:00 +00:00
Boris Zbarsky
b5b49f64bb
Bug 1426002. Bail out of document.open if beforeunload tears things down. r=mystor
...
MozReview-Commit-ID: GDozCq4Qbni
2017-12-21 15:08:49 -05:00
Masatoshi Kimura
0036fe0ee0
Bug 1071816 - Add a pref to fallback to UTF-8 for files from file: URLs. r=hsivonen
...
MozReview-Commit-ID: KFjIqYmgzTl
2017-11-30 20:55:07 +09:00
Alphan Chen
f742ba195a
Bug 980904 - Disable the Character Encoding menu when document is decoded as UTF-8 without errors. r=hsivonen,emk,Gijs
2017-11-23 15:03:41 +08:00
Csoregi Natalia
16a1261797
Merge inbound to mozilla-central r=merge a=merge
2017-11-14 00:57:47 +02:00