Emilio Cobos Álvarez
54e9db5bd7
Bug 1459529: Remove ServoStyleSet::{Begin,End}Update. r=heycam
...
They're empty, and make PresShell::BeginUpdate useless. Now we don't have
document observers that listen for these anymore.
MozReview-Commit-ID: GpDDNonFUFC
2018-05-15 18:44:26 +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
Adrian Wielgosik
ac931384c2
Bug 1460940 - Remove nsIDOMDocument uses in layout/. r=bz
...
MozReview-Commit-ID: KixJ5edlCjl
2018-05-11 19:46:15 +02:00
Boris Zbarsky
87fdbf744c
Bug 1387143 part 23. Remove nsISelection collapse* methods. r=mats
2018-05-08 13:52:41 -04:00
Boris Zbarsky
dad97be012
Bug 1387143 part 22. Remove nsISelection isCollapsed/collapsed bits. r=mats
2018-05-08 13:52:39 -04:00
Boris Zbarsky
50bb8b276c
Bug 1387143 part 12. Remove nsISelectionPrivate::Add/RemoveSelectionListener. r=mats
...
None of the C++ callers of RemoveSelectionListener care about whether the
listener was already-added, and the only JS caller is in a test and knows the
listener was added. So the behavior change to no-op instead of throwing when
trying to remove a nonexistent listener is OK. Furthermore, the removal is
null-safe, so there's no point to explicitly failing if null is passed (which
it never is).
Since content can't directly add selection listeners, we can just use an
infallible append instead of returning errors callers don't check for anyway.
Also, no one passes null to AddSelectionListener, so we don't have to worry
about that part.
2018-05-08 13:52:37 -04:00
Boris Zbarsky
eac07d5c7b
Bug 1387143 part 1. Stop using nsISelection in nsISelectionListener. r=mats
2018-05-08 13:52:35 -04:00
Chris Peterson
5d6b16ea3b
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
2018-04-28 12:50:58 -07:00
Emilio Cobos Álvarez
c7e1c095c7
Bug 1457920: Remove StyleSheet::AsServo. r=xidorn
...
MozReview-Commit-ID: IkkJvUFHykk
2018-05-02 04:13:21 +02:00
Boris Zbarsky
5f0f9d3fb4
Bug 1429903 part 4. Remove nsIDOMEventTarget. r=mccr8
...
MozReview-Commit-ID: 9XuenUHxfPx
2018-04-20 00:49:30 -04:00
Boris Zbarsky
65759d684b
Bug 1455055 part 1. Convert nsIDOMEventListener to taking an Event, not an nsIDOMEvent. r=masayuki
...
This does no cleanup other than what's needed to compile. Cleanup coming up in
later patches.
MozReview-Commit-ID: 3sOnkj71n09
2018-04-20 00:49:29 -04:00
Andreea Pavel
5d93e58200
Merge mozilla-inbound to mozilla-central. a=merge
2018-04-11 17:36:09 +03:00
Ciure Andrei
40a9e70f9f
Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE
2018-04-11 12:00:35 +03:00
Cameron McCormack
71768bce41
Bug 1317541 - Merge number-control.css back into forms.css. r=mats
...
MozReview-Commit-ID: AGfsSF4dORN
2018-04-10 11:04:41 +10:00
Nika Layzell
6654f0e396
Bug 1434768 - Part 2: Replace nsDocShell::mSessionHistory with ChildSHistory, r=bz
2018-04-10 17:49:45 -04:00
Emilio Cobos Álvarez
e4911f3cb2
Bug 1452881: Remove usechromesheets support. r=heycam
...
MozReview-Commit-ID: I7BAxAHMZAK
2018-04-11 08:45:39 +02:00
Emilio Cobos Álvarez
3284a9dda8
Bug 1447827: Remove ServoRestyleManager. r=xidorn
...
MozReview-Commit-ID: CFafQsb4rQn
2018-04-07 15:50:06 +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
Xidorn Quan
d03cde8f6e
Bug 1447828 part 8 - Remove remaining uses of StyleBackendType as well as the type itself. r=emilio
...
MozReview-Commit-ID: 6sh4eKvDpRF
2018-03-29 02:34:34 +11: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
Xidorn Quan
6c4fa0122d
Bug 1447828 part 5 - Remove StyleBackendType uses from nsStyleSheetService. r=emilio
...
MozReview-Commit-ID: 2yQqwVPnvdE
2018-03-29 02:34:34 +11:00
Xidorn Quan
f9bab6137e
Bug 1447828 part 4 - Remove StyleBackendType uses from Loader. r=emilio
...
MozReview-Commit-ID: 8DbjibZE3Dw
2018-03-29 02:33:01 +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
c6610850b0
Bug 1447889 part 1. Change nsCopySupport to work with Selection a bit more. r=mystor
...
MozReview-Commit-ID: B8HePBcalWU
2018-03-27 00:35:20 -04:00
Emilio Cobos Álvarez
b1a35fbef7
Bug 1447358: Unifdef the old style system code. r=jwatt
...
Summary:
This has been automatically generated using:
http://dotat.at/prog/unifdef/
And:
find $OBJDIR -type f -name '*.h' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
find $OBJDIR -type f -name '*.cpp' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
MozReview-Commit-ID: I4NdKqbMXzJ
Reviewers: jwatt
Bug #: 1447358
Differential Revision: https://phabricator.services.mozilla.com/D779
2018-03-21 10:20:34 +01:00
Emilio Cobos Álvarez
637026a1a0
Bug 1439027: Simplify PresShell::Initialize. r=bz
...
Most of the callers pass the already-existing pres-context visible area. The few
that don't can set it themselves.
MozReview-Commit-ID: KRi4ShrgOrE
2018-02-21 12:42:17 +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
Emilio Cobos Álvarez
988f582cbd
Bug 1436059: Cleanup a bit after ourselves. r=xidorn
...
on a CLOSED TREE
MozReview-Commit-ID: DWWmdtigIkk
2018-02-16 16:56:26 +01:00
Eric Rahm
0ffa0b951f
Bug 1437173 - Remove warning that node is null in GetInLink. r=bz
...
This reverts back to just returning failure rather than warning and returning
failure in GetInLink.
2018-02-09 13:10:13 -08:00
Bob Owen
0754e3c0d7
Bug 1379117 Part 1: MOZ_ASSERT when not retrieving nsIWebBrowserPrint through docshell for Print Preview. r=jwatt
...
Changing the last retrieval of the nsIWebBrowserPrint in
printpreview_bug396024_helper.xul caused problems because doing it via the
docshell interrupts the load that triggers run5.
So, I moved the test to run5, which is more consistent with run2 and run3.
I then realised that the frames would have switched anyway, so I changed it to
retrieve frame[0] for the last test, which I think makes more sense.
It's not totally clear to me what this was testing originally or whether it
continued to do so after the addition of the second iframe a long time ago.
2018-02-08 08:59:20 +00:00
Cameron McCormack
34288f7f48
Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
...
MozReview-Commit-ID: CIHyPdF7Exl
2018-02-01 15:04:04 +11:00
Cameron McCormack
02c617875f
Bug 1430014 - Part 4: #ifdef out unnecessary code when the old style system is not built. r=xidorn
...
MozReview-Commit-ID: 1FZ9VzjcPzN
2018-02-01 15:04:04 +11:00
Boris Zbarsky
02c5892dde
Bug 1434399 part 19. Remove nsIXULDocument. r=mystor
...
MozReview-Commit-ID: 9jQu4sjOhb2
2018-01-31 14:49:29 -05:00
Boris Zbarsky
df84cf0144
Bug 1434399 part 1. Switch to nsINode for the popup node on windowroot. r=mystor
...
MozReview-Commit-ID: HyiHElDnmSH
2018-01-31 14:49:26 -05:00
Cosmin Sabou
47f2c0b0a5
Backed out 19 changesets (bug 1434399) for build bustages on nsXULPopupManager.cpp on a CLOSED TREE
...
Backed out changeset 499f6dffd9cb (bug 1434399)
Backed out changeset 018290612415 (bug 1434399)
Backed out changeset f4c3179f8e59 (bug 1434399)
Backed out changeset f3ce2826b857 (bug 1434399)
Backed out changeset 6d2391af01dd (bug 1434399)
Backed out changeset dc98ed8c609a (bug 1434399)
Backed out changeset 8eaa395d6200 (bug 1434399)
Backed out changeset 19b18f4a53be (bug 1434399)
Backed out changeset 8ff378a6e96a (bug 1434399)
Backed out changeset 60fe73be1a26 (bug 1434399)
Backed out changeset faefb2751fdc (bug 1434399)
Backed out changeset 55cdf8b3a959 (bug 1434399)
Backed out changeset b578cc8efb92 (bug 1434399)
Backed out changeset 54cc4cb2fca1 (bug 1434399)
Backed out changeset f5343ef34d6c (bug 1434399)
Backed out changeset 8fb30e066cbd (bug 1434399)
Backed out changeset 21341b656b0f (bug 1434399)
Backed out changeset fab1f8b087a2 (bug 1434399)
Backed out changeset 55250a54852a (bug 1434399)
2018-01-31 22:45:26 +02:00
Boris Zbarsky
95a5e42c52
Bug 1434318 part 2. Stop using nsIContentViewer::GetDOMDocument in C++. r=mystor
...
MozReview-Commit-ID: FoMoVgCngGR
2018-01-31 15:18:09 -05:00
Boris Zbarsky
cc96e36526
Bug 1434318 part 1. Make nsIContentViewer's DOMDocument readonly. r=mystor
...
No one ever assigns to it in JS anyway.
MozReview-Commit-ID: EAoOXSFnwtl
2018-01-31 15:18:09 -05:00
Boris Zbarsky
ab6bd8eb34
Bug 1434399 part 19. Remove nsIXULDocument. r=mystor
...
MozReview-Commit-ID: 9jQu4sjOhb2
2018-01-31 14:49:29 -05:00
Boris Zbarsky
d6d0fd4f18
Bug 1434399 part 1. Switch to nsINode for the popup node on windowroot. r=mystor
...
MozReview-Commit-ID: HyiHElDnmSH
2018-01-31 14:49:26 -05: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
84d46e7789
Bug 1276438 part 6. Stop using nsIDOMHTMLDocument::GetBody. r=mystor
...
MozReview-Commit-ID: EcDTnByuZsm
2018-01-26 00:53:35 -05:00
Boris Zbarsky
7242354a36
Bug 1432944 part 11. Remove nsIDOMElement::GetAttribute. r=mccr8
...
MozReview-Commit-ID: 2f1vFvRdCPG
2018-01-29 23:28:00 -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
Brian Grinstead
050a86051a
Bug 1420229 - Create a new components.css file and load it as a UA stylesheet;r=bz,Gijs
...
This provides a place for current XBL stylesheets to be loaded without using XBL <resources>,
that load as a UA sheet instead of loading them as document sheets. This makes the styles
apply more similarly to XBL, in that they are less specific than document styles.
MozReview-Commit-ID: 3ewomJZMbrk
2017-11-30 12:39:28 -08:00
Jonathan Watt
fcd632726d
Bug 1430619 part 2 - Move nsIContentViewerContainer::setIsPrinting to nsIDocShell. r=smaug
...
MozReview-Commit-ID: LJrZbDAilnW
2018-01-11 12:05:37 +00:00
Jonathan Watt
7c439d7ab4
Bug 1430687 - Move the mDestroyBlockedCount early return in nsDocumentViewer::Destroy to the top. r=bobowen
...
MozReview-Commit-ID: Exe0hIFHK8z
2018-01-09 12:47:20 +00:00
Jonathan Watt
047df2dbbd
Bug 1430686 - Rename the document viewer "DestroyRefCount" member and methods. r=bobowen
...
MozReview-Commit-ID: KGUJXOKEQjV
2018-01-08 16:59:31 +00:00
Jonathan Watt
0f37d1036c
Bug 1430689 - Make ReturnToGalleyPresentation non-virtual. r=bobowen
...
MozReview-Commit-ID: J3dZuZfDXFd
2018-01-05 12:47:20 +00:00
Bob Owen
b9672b432e
Bug 1426087: Decrement nsDocumentViewer::mDestroyRefCount in a separate function. r=jwatt
2018-01-12 10:17:36 +00:00
Jonathan Watt
c61f7f5295
Bug 1425641, part 3 - Remove nsIWebBrowserPrint.GetCurrentChildDOMWindow. r=bobowen
...
MozReview-Commit-ID: EZHNKvyUT42
2017-12-06 16:02:34 +00:00