Commit Graph

452 Commits

Author SHA1 Message Date
Ciure Andrei
eda43f7240 Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
Emilio Cobos Álvarez
50415d801a Bug 1449502: Cleanup a bit more the selector cache and CSSOM methods. r=xidorn
MozReview-Commit-ID: 32FgbGFUdCM
2018-03-29 17:12:55 +02: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
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
Jonathan Watt
44d37e68d5 Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio 2018-03-23 16:01:34 +00:00
Emilio Cobos Álvarez
c48b1f646b Bug 1448690: Remove IsStyledByServo. r=xidorn
MozReview-Commit-ID: I3MDbo2Yu7d
2018-03-26 09:39:26 +02:00
Emilio Cobos Álvarez
076354eb25 Bug 1447611: Cleanup prefs that do nothing now. r=jwatt
Still more followup cleanup to come.

MozReview-Commit-ID: 83j7DTVb0Ti
2018-03-21 19:13:56 +01:00
Csoregi Natalia
96a3c6af7f Backed out 4 changesets (bug 1447611) for mass failures due to --enable-stylo removal. CLOSED TREE
Backed out changeset c6193142bbcf (bug 1447611)
Backed out changeset 01ada1c5a95f (bug 1447611)
Backed out changeset 86c9fed44da2 (bug 1447611)
Backed out changeset bb84ac6e1468 (bug 1447611)
2018-03-21 19:01:07 +02:00
Emilio Cobos Álvarez
653c8a2aaf Bug 1447611: Cleanup prefs that do nothing now. r=jwatt
Still more followup cleanup to come.

MozReview-Commit-ID: 83j7DTVb0Ti
2018-03-21 17:25:00 +01: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
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
3a349583ff Bug 749981: Remove Node.getUserData / setUserData. r=smaug
Summary: MozReview-Commit-ID: JkUCvVZ4V2Y

Reviewers: smaug

Bug #: 749981

Differential Revision: https://phabricator.services.mozilla.com/D749

MozReview-Commit-ID: KadWzpMjdW
2018-03-17 19:33:07 +01:00
Emilio Cobos Álvarez
f8da46c122 Bug 1446601: Devirtualize nsIDocument::Get/SetFailedChannel. r=bz
Summary: The member is already in nsIDocument anyway.

Reviewers: bzbarsky

Bug #: 1446601

Differential Revision: https://phabricator.services.mozilla.com/D751

MozReview-Commit-ID: 90Ad5wiCeMS
2018-03-17 16:22:15 +01:00
Emilio Cobos Álvarez
35d2283e5a Bug 1446568: Move a couple other methods from nsDocument to nsIDocument. r=smaug
Need to add an static_cast for nsIDOMDocument, but it'll be temporary, I'd
expect.

MozReview-Commit-ID: 1cSwlcQZL5N
2018-03-17 16:22:13 +01:00
Emilio Cobos Álvarez
fcf2c7841e Bug 1446568: Move UseCounter stuff and IsSynthesized to nsIDocument. r=smaug
MozReview-Commit-ID: IeKzmi31e8d
2018-03-17 16:22:12 +01:00
Emilio Cobos Álvarez
776afeb047 Bug 1446568: Make SetScriptGlobalObject not pure virtual. r=smaug
MozReview-Commit-ID: 1kKPq7f50jC
2018-03-17 16:22:10 +01:00
Emilio Cobos Álvarez
9c597d6212 Bug 1446568: Make nsIDocument SetContentType / SetDocumentCharacterSet not pure virtual. r=smaug
No good reason for them to be.

MozReview-Commit-ID: 7bFVD8YFqo2
2018-03-17 16:22:08 +01:00
Emilio Cobos Álvarez
af4af43782 Bug 1446568: Move a couple more stuff from nsDocument to nsIDocument. r=smaug
MozReview-Commit-ID: JC2nqzJEq7U
2018-03-17 16:22:06 +01: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
Emilio Cobos Álvarez
e10146bc65 Bug 1446568: Move the blocked tracking nodes methods to nsIDocument. r=smaug
MozReview-Commit-ID: LuvoFP8UyNg
2018-03-17 16:22:00 +01:00
Emilio Cobos Álvarez
5aa03a927f Bug 1446568: Move Reset and ResetToURI to nsIDocument instead of nsDocument. r=smaug
Move also mListenerManager since it's used by ResetToURI.

MozReview-Commit-ID: CPj2NHwpOEy
2018-03-17 16:21:42 +01:00
Emilio Cobos Álvarez
9728dee239 Bug 1446568: Devirtualize nsIDocument::CreateElem. r=smaug
MozReview-Commit-ID: FO0mMHN6zvi
2018-03-17 16:14:29 +01:00
Emilio Cobos Álvarez
249bc337d5 Bug 1443339: Stop observing the refresh driver when inserting into the BFCache. r=bz
The nsCSSFrameConstructor bits are now handled in PresShell::Destroy along with
the other refresh driver observers.

I cleaned up the nsRefreshDriver methods because they were using infallible
append anyway, and that simplified the logic.

MozReview-Commit-ID: 1eDUUXjUUS9
2018-03-17 16:11:52 +01:00
Emilio Cobos Álvarez
6780bb2d94 Bug 1445588: Devirtualize nsIDocument::GetViewportInfo. r=smaug
Reviewers: smaug

Bug #: 1445588

Differential Revision: https://phabricator.services.mozilla.com/D729

MozReview-Commit-ID: 4bW2Yo784Z
2018-03-14 11:55:22 +01:00
Boris Zbarsky
523aa033d7 Bug 1445140 part 2. Change NS_NewDOMDocument to take a DocumentType. r=mystor
MozReview-Commit-ID: EGA6OOSbnWV
2018-03-13 16:24:01 -04:00
Emilio Cobos Álvarez
923d990216 Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug
Summary: It uses two node bits that can be better suited for something else.

Reviewers: xidorn, smaug

Bug #: 1444905

Differential Revision: https://phabricator.services.mozilla.com/D709

MozReview-Commit-ID: HIPDtHm6xpM
2018-03-13 10:26:13 +01:00
Emilio Cobos Álvarez
bfe04b36be Bug 1444908: Devirtualize nsIDocument::Get/SetXMLDeclaration. r=smaug
Summary: I missed these two.

Reviewers: smaug

Bug #: 1444908

Differential Revision: https://phabricator.services.mozilla.com/D710

MozReview-Commit-ID: 8JYhlQ9CiDz
2018-03-13 09:03:11 +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
Boris Zbarsky
8073c645a3 Bug 1415588 part 1. Move the .head getter from HTMLDocument to Document. r=mystor
MozReview-Commit-ID: 5SW47hfE9dl
2018-03-12 21:44:56 -04:00
Emilio Cobos Álvarez
ddd314467b Bug 1444580: Move mExpandoAndGeneration back to nsDocument for now. r=smaug
MozReview-Commit-ID: EArKdxEoXaJ
2018-03-12 12:27:06 +01:00
Emilio Cobos Álvarez
618ca949dd Bug 1444580: Devirtualize CanSavePresentation. r=smaug
MozReview-Commit-ID: LjBA4gM71ir
2018-03-12 12:27:05 +01:00
Emilio Cobos Álvarez
fd8b6fc689 Bug 1444580: Devirtualize Sanitize. r=smaug
MozReview-Commit-ID: 4UMjAlqnRqu
2018-03-12 12:27:04 +01:00
Emilio Cobos Álvarez
28bd450c97 Bug 1444580: Devirtualize GetLayoutHistoryState. r=smaug
MozReview-Commit-ID: AsPFJdDGeUE
2018-03-12 12:27:02 +01:00
Emilio Cobos Álvarez
8abc4e0411 Bug 1444580: Devirtualize WillDispatchMutationEvent / MutationEventDispatched. r=smaug
MozReview-Commit-ID: 4k2dEEah1FR
2018-03-12 12:27:00 +01:00
Emilio Cobos Álvarez
3ec992c240 Bug 1444580: Devirtualize UnblockDOMContentLoaded. r=smaug
MozReview-Commit-ID: I7t9glmVE7q
2018-03-12 12:26:57 +01:00
Emilio Cobos Álvarez
c437a0e44c Bug 1444580: Devirtualize frame loader stuff. r=smaug
MozReview-Commit-ID: As1MOpvoaI6
2018-03-12 12:26:55 +01:00
Emilio Cobos Álvarez
070dfde9ad Bug 1444580: Devirtualize FlushSkinBindings. r=smaug
MozReview-Commit-ID: 556Wpm4QZeM
2018-03-12 12:26:53 +01:00
Emilio Cobos Álvarez
96faf20245 Bug 1444580: Devirtualize NodesFromRectHelper. r=smaug
MozReview-Commit-ID: CbVY8ysExfi
2018-03-12 12:26:51 +01:00
Emilio Cobos Álvarez
135f432d9d Bug 1444580: Move OnPageShow / OnPageHide to nsIDocument, devirtualize OnPageHide. r=smaug
MozReview-Commit-ID: HlOpJ8Rg9IG
2018-03-12 12:26:50 +01:00
Emilio Cobos Álvarez
9edbfc45ee Bug 1444580: Devirtualize CreateShell / DeleteShell. r=smaug
MozReview-Commit-ID: 9eC2IyQ4bEf
2018-03-12 12:26:48 +01:00
Emilio Cobos Álvarez
162b4f5508 Bug 1444580: Devirtualize GetChannel. r=smaug
MozReview-Commit-ID: CIavtPA3s10
2018-03-12 12:26:47 +01:00
Emilio Cobos Álvarez
042eb7eb7c Bug 1444580: Devirtualize pointer lock and screen orientation stuff. r=smaug
MozReview-Commit-ID: HzJcrHFCsOK
2018-03-12 12:26:46 +01:00
Emilio Cobos Álvarez
cb48726c1c Bug 1444580: Devirtualize the external resource stuff. r=smaug
This one was non-trivial, required me to move around the definition of
ExternalResourceLoad and such.

Modulo that, and that I had to redefine nsSubDocEnumCb, the rest is just moving
code around.

MozReview-Commit-ID: E96XX8vo2D8
2018-03-12 12:26:43 +01:00
Emilio Cobos Álvarez
56727ec345 Bug 1444580: Devirtualize GetTemplateContentsOwner. r=smaug
MozReview-Commit-ID: 9I9BCcSUSfJ
2018-03-12 12:26:41 +01:00
Emilio Cobos Álvarez
289a3b8eed Bug 1444580: Devirtualize event handling suppression stuff. r=smaug
MozReview-Commit-ID: 3tHJkzTc4gU
2018-03-12 12:26:40 +01:00
Emilio Cobos Álvarez
2bde5daef2 Bug 1444580: Devirtualize more animation stuff. r=smaug
MozReview-Commit-ID: 4U6oIg81Pdw
2018-03-12 12:26:39 +01:00
Emilio Cobos Álvarez
e287a0bd37 Bug 1444580: Devirtualize GetAnonymousElementByAttribute. r=smaug
MozReview-Commit-ID: JrfJV0CZbtO
2018-03-12 12:26:38 +01:00
Emilio Cobos Álvarez
5fd11dacb5 Bug 1444580: Devirtualize GetBoxObjectFor / ClearBoxObjectFor. r=smaug
MozReview-Commit-ID: KQJfJ43R0FI
2018-03-12 12:26:37 +01:00