Emilio Cobos Álvarez
e0717b582a
Bug 1453206: Look in XBL anon content too for stale style data. r=smaug
...
This would've caught it earlier. Need to do the GetFirstNode(), ... dance
because well, <content>.
MozReview-Commit-ID: 8F35GRO99M4
2018-04-14 19:54:20 +02:00
Cameron McCormack
20003bc931
Bug 1453877 - Remove unused RestyleHintData struct. r=xidorn
...
And fix a comment mentioning nsCSSSelectorList that I came across.
MozReview-Commit-ID: 1BOcDqV5dUr
2018-04-13 15:16:13 +10:00
Andrew McCreight
7a07e0c48b
Bug 1449670, part 1 - Convert IsNodeOfType(nsINode::eTEXT) to IsText(). r=bz
...
This method is not a virtual call, and also looks nicer.
This patch was mostly generated by a Python script, but I manually
cleaned up the code in a few places where statements didn't need to be
split across multiple lines any more.
MozReview-Commit-ID: 8JExxqSRc59
2018-04-12 15:41:00 -07:00
Andreea Pavel
3c8dab74ff
Backed out 2 changesets (bug 1453206) for crashtest failures on muliple files e.g. tests/reftest/tests/layout/base/crashtests/416107.xhtml on a CLOSED TREE
...
Backed out changeset 1844a120acda (bug 1453206)
Backed out changeset b12b7c5b8178 (bug 1453206)
2018-04-13 23:06:55 +03:00
Emilio Cobos Álvarez
36e8fe9390
Bug 1453206: Look in XBL anon content too for stale style data. r=smaug
...
This would've caught it earlier. Need to do the GetFirstNode(), ... dance
because well, <content>.
MozReview-Commit-ID: 8F35GRO99M4
2018-04-13 21:05:47 +02:00
Sebastian Hengst
d91e9954eb
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
6095241db8
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Emilio Cobos Álvarez
3284a9dda8
Bug 1447827: Remove ServoRestyleManager. r=xidorn
...
MozReview-Commit-ID: CFafQsb4rQn
2018-04-07 15:50:06 +02:00
Adrian Wielgosik
3c7a24d734
Bug 1170771 - Remove now-empty nsDOMClassInfo. r=bz
...
MozReview-Commit-ID: 7XsiPD1kTt9
2018-04-05 14:20:44 +02:00
Andreea Pavel
ec82015581
Merge mozilla-central to autoland. a=merge on a CLOSED TREE
2018-04-06 17:54:45 +03:00
Masatoshi Kimura
63783eda6f
Bug 1445541 - Enable the character encoding menu when the document is decoded as UTF-8 and an error is found, instead of disabling it when no errors are found. r=hsivonen
...
MozReview-Commit-ID: 1e6kQbAxcqm
2018-04-06 06:20:28 +09:00
Boris Zbarsky
5b75c1416d
Bug 1449631 part 8. Remove nsIDOMEventTarget::GetEventTargetParent. r=smaug
...
MozReview-Commit-ID: 5wQ2LYrjUxf
2018-04-05 13:42:41 -04:00
Christoph Kerschbaumer
6d2dccf21b
Bug 1449845 - Add assertion that all new about: pages ship with a CSP. r=smaug,gijs
2018-04-04 12:37:10 +02:00
Emilio Cobos Álvarez
c94e7011c1
Bug 1441136: Add a fast way to enumerate ShadowRoots in a document. r=smaug
...
MozReview-Commit-ID: 7QffP56jsyk
2018-04-04 07:40:34 +02:00
Emilio Cobos Álvarez
12e993f341
Bug 1441136: Cleanup a bit the responsive image content setup. r=smaug
...
Also, clear it in DestroyElementMaps, as the rest of the code.
MozReview-Commit-ID: A8D3pgQ8MxX
2018-04-04 07:40:22 +02:00
Ciure Andrei
0b523d8933
Merge inbound to mozilla-central. a=merge
2018-04-04 00:54:16 +03:00
Johann Hofmann
fdf223d9d7
Bug 1450315 - Remove document.allowUnsafeHTML. r=bz
...
This attribute was added in bug 1432966 when we started sanitizing
chrome usage of innerHTML to allow devtools to use custom attributes
in React via dangerouslySetInnerHTML.
Devtools removed its usage of dangerouslySetInnerHTML in bug 1434155, so
document.allowUnsafeHTML is no longer used and can be removed.
MozReview-Commit-ID: 8xTVZDmPqRa
2018-03-31 10:27:19 +02:00
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
Neil Deakin
d7e9cc287c
Bug 1448018, remove ContainerBoxObject which is only used to access the docshell, but bug 1448018 made the docshell accessible from the frameloader instead so the container box object is no longer being used. Change some editor tests which just access the docShell directly rather than through the box object, r=bz
2018-03-29 10:44:52 -04: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
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
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
Coroiu Cristina
cd70dce895
Merge mozilla-central to inbound a=merge on a CLOSED TREE
2018-03-27 01:33:50 +03:00
Emilio Cobos Álvarez
f4c82d381e
Bug 1448688: followup: Remove unused StyleDataType. r=me
...
MozReview-Commit-ID: DnjOxoEbSoP
2018-03-26 09:49:27 +02: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
68ee99d4c8
Bug 1448688: Remove RestyleTracker, ComputedStyle::AsServo, old style system element bits. r=xidorn
...
MozReview-Commit-ID: ALiOngGqozN
2018-03-26 09:38:07 +02:00
Boris Zbarsky
152cd3ba6e
Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
...
MozReview-Commit-ID: 202nkbmkwfR
2018-03-21 17:39:04 -04:00
arthur.iakab
0911dedf1a
Merge mozilla-central to inbound
2018-03-21 22:27:21 +02:00
arthur.iakab
6e006c34b4
Merge inbound to mozilla-central. a=merge
2018-03-21 21:13:11 +02:00
Adrian Wielgosik
d8fb7c72ec
Bug 1447392 - Remove all members from nsIDOMNodeList. r=bz
...
MozReview-Commit-ID: 68xF7CTMpKB
2018-03-20 19:02:08 +01: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
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
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
72fe4cbfa2
Bug 1420680: Remove the mechanism to buffer CSP violations. r=bz
...
With the previous patch it's unused.
MozReview-Commit-ID: 4EKufeNu0Jz
2018-04-03 16:22:51 +02:00
Emilio Cobos Álvarez
ea593f5a1c
Bug 1420680: Rework how the loadability of font-faces is computed. r=jfkthame,bz
...
This reworks bug 1440561 so that we only precompute loads that belong to our
user font set, avoiding messing up with fonts in the cache that belong to other
pages.
The loadability of a font is precomputed in PreTraverse in the same way as we
did, but only for the fonts that we may end up loading. This is stored in
FontFaceSet now.
Also, the principal shenanigans that this code did are reworked to be explicit
about when the document principal changes in ResetToURI, instead of having a
member around and a mutable variable. This makes the code easier to follow.
MozReview-Commit-ID: 9ofTbaLDUF7
2018-04-03 16:22:43 +02: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
ce8d780eb8
Bug 1433566 part 13. Remove nsIDOMText. r=mystor
...
MozReview-Commit-ID: DvaZ96j5exf
2018-03-19 15:15:39 -04: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
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
1818c41cf1
Bug 1446568: Remove an unneeded cast. r=smaug
...
MozReview-Commit-ID: ILtm9ybRwJ7
2018-03-17 16:22:02 +01:00