Commit Graph

53 Commits

Author SHA1 Message Date
Brad Werth
e8877f1e1a Bug 1339629 Part 3: Uplift mDirty into StyleSheet. r=heycam
MozReview-Commit-ID: iZKdg0fWss

--HG--
extra : rebase_source : 7cc93bc4054e887e75d758f0bff7978dc6f92f2e
2017-05-15 14:48:24 -07:00
Xidorn Quan
b49153b29e Bug 1352763 part 3 - Have ServoStyleSheet also implement nsICSSLoaderObserver. r=heycam
MozReview-Commit-ID: 1Z6jAmQ9CY6

--HG--
extra : rebase_source : 1e228d29b6cd6afdc1b47dd28e5a4ff9a79d5af7
2017-04-03 19:55:06 +10:00
Xidorn Quan
50cd42411d Bug 1315601 part 13 - Move common code of DeleteRuleFromGroup/InsertRuleIntoGroup from CSSStyleSheet to StyleSheet. r=heycam
MozReview-Commit-ID: BDxnYb0OkCk

--HG--
extra : rebase_source : 379cfa5390c2235b56d9539ec85d9bf821b8f209
2017-03-08 18:04:15 +11:00
Xidorn Quan
85464df1c1 Bug 1315601 part 3 - Add base class MediaList and move part of nsMediaList to it. r=heycam
MozReview-Commit-ID: A2uJpbGgO55

--HG--
extra : rebase_source : 40a9171307b6a30288169e27caa43595349d2df7
2016-11-09 17:28:24 +11:00
Brad Werth
b5c2f158d6 Bug 1342869 Part 1: Uplift ChildSheetListBuilder into StyleSheet so that all StyleSheet subclasses can fixup parent chains when children are removed. r=heycam
MozReview-Commit-ID: F9KnuPC0h7K

--HG--
extra : rebase_source : c008b5a58d423422ffc364a9bb440ea6cbb5f606
2017-03-06 16:27:32 -08:00
Brad Werth
881f857bac Bug 1290218 Part 8: Implement ServoStyleSheet Clone. r=heycam
MozReview-Commit-ID: Y2KcoMjhbn

--HG--
extra : rebase_source : dc45ede181017fb372fdce23d7449c868a0cb8e6
2017-02-15 13:33:17 -08:00
Brad Werth
3f6506d5fc Bug 1290218 Part 4b: Fixup cycle collector declarations for mInner moving into StyleSheetInfo. r=heycam
MozReview-Commit-ID: 9cAvEf7y8JN

--HG--
extra : rebase_source : 5cf69acf6232a742eefac2827c224f0bf2745746
2017-02-15 16:19:33 -08:00
Brad Werth
78439696f6 Bug 1290218 Part 2: Uplift mInner pointer from CSSStyleSheetInner into StyleSheetInfo. r=heycam
MozReview-Commit-ID: K6FbTN1r4Qg

--HG--
extra : rebase_source : 6871bbcf0184a86668ba727f2cf1f16cd5cac839
2017-02-14 09:41:33 -08:00
Brad Werth
0ed6236412 Bug 1290218 Part 1: Uplift IsModified into StyleSheet from CSSStyleSheet, and provide empty implementation for ServoStyleSheet. r=heycam
MozReview-Commit-ID: IU733JoNVyC

--HG--
extra : rebase_source : 63704c54d7c3d72dc4c6fe0e051499479fdd76f8
2017-02-13 10:27:46 -08:00
Brad Werth
5ef9727540 Bug 1328420 Part 8: Uplift SizeOfIncludingThis into StyleSheet, with override in CSSStyleSheet. r=heycam
MozReview-Commit-ID: 5f1WldhnP2

--HG--
extra : rebase_source : 28fb1718028961dd5fe3e25c8deeb38ebfd6ee87
2017-01-23 16:42:31 -08:00
Brad Werth
f9a4e85ea6 Bug 1328420 Part 7: Uplift List debug method into StyleSheet. r=heycam
MozReview-Commit-ID: 7aqC6N6cZst

--HG--
extra : rebase_source : 059b441aa12c77aee5734d61a244248b5ccd06d8
2017-01-23 16:40:28 -08:00
Brad Werth
9fd72f68f3 Bug 1328420 Part 6: Implement ServoStyleSheet destructor. r=heycam
MozReview-Commit-ID: iVaza2s7d

--HG--
extra : rebase_source : 354979d2cb3d5ef95f2063f6c3a3c1dd3774c91f
2017-01-23 16:37:59 -08:00
Brad Werth
6f5346abb4 Bug 1328420 Part 5: Uplift AppendStyleSheet to StyleSheet. r=heycam
MozReview-Commit-ID: CwNGWsJi65G

--HG--
extra : rebase_source : e493df5984f92b4d2b3c9bbf153f24ac2dffc441
2017-01-23 16:23:40 -08:00
Brad Werth
98d1dbc01c Bug 1328420 Part 4: Uplift SetOwningDocument into StyleSheet. r=heycam
MozReview-Commit-ID: 3TnTaFYkZS3

--HG--
extra : rebase_source : 1f15b8228f2dcccd0b00b41248617f5dac66f226
2017-01-24 13:12:40 -08:00
Brad Werth
ceca427e5f Bug 1328420 Part 3: Uplift the first child to StyleSheet via a new method, abstracting out the inner sheet concept (which is not present in Stylo sheets). r=heycam
MozReview-Commit-ID: KUeIlOhAJXr

--HG--
extra : rebase_source : 2308ae457161a106b6258feae95b95c4e6160e9b
2017-01-23 15:52:56 -08:00
Brad Werth
4870857c07 Bug 1328420 Part 2: Uplift mNext into StyleSheet. r=heycam
MozReview-Commit-ID: 1yHUtEAJZnl

--HG--
extra : rebase_source : b5987c9f9d26ecfc14e76c719784bbe0ea66791d
2017-01-23 15:36:09 -08:00
Brad Werth
f85fc3564c Bug 1328420 Part 1: Uplift parent pointer and accessor to StyleSheet class. r=heycam
MozReview-Commit-ID: C63yRZM3ORC

--HG--
extra : rebase_source : 92f7628506176d728e4b2ac4ae804729bc3738b3
2017-01-24 13:09:33 -08:00
L. David Baron
37f705d303 Bug 1333158 - Remove StyleSheet::GetDocument in favor of the identical GetAssociatedDocument. r=bz
(GetAssociatedDocument was recently renamed in bug 1332353.)

Note that the inconsistency between the Rule and CSSParser method names
is slightly bothersome.

MozReview-Commit-ID: L1SBIV86H4s

--HG--
extra : transplant_source : %60%BE%A8%B9%2BP9%8E_%8AX%28%DE%E7%12%83%1A%0E%FF%FD
2017-01-23 13:12:03 -08:00
Boris Zbarsky
7f64e99cc4 Bug 851892 part 9. Add a CSSRule Web IDL interface. r=peterv,heycam
Note that this explicitly drops CSSRule.UNKNOWN_RULE.
2017-01-13 10:41:03 -05:00
Sebastian Hengst
6a2dfd7d83 Backed out changeset b975a988fb33 (bug 851892) 2017-01-20 19:30:28 +01:00
Boris Zbarsky
7d89c9b854 Bug 851892 part 9. Add a CSSRule Web IDL interface. r=peterv,heycam
Note that this explicitly drops CSSRule.UNKNOWN_RULE.
2017-01-13 10:41:03 -05:00
Boris Zbarsky
89948607fd Bug 1332353. Make it clearer when a stylesheet is really owned by its mDocument. r=heycam 2017-01-19 23:49:44 -05:00
Phil Ringnalda
686006613e Backed out 20 changesets (bug 851892) for load failures in Android crashtest-4
Backed out changeset b9c4115cdeac (bug 851892)
Backed out changeset 5f491bf49b85 (bug 851892)
Backed out changeset 9bf5bcb3e8c5 (bug 851892)
Backed out changeset a9cab46e8b45 (bug 851892)
Backed out changeset 73858e15c8c0 (bug 851892)
Backed out changeset a25638588b6b (bug 851892)
Backed out changeset d58e0e5069ef (bug 851892)
Backed out changeset d8da2a3d8f10 (bug 851892)
Backed out changeset a8da3c34983f (bug 851892)
Backed out changeset 29cf8acbd21e (bug 851892)
Backed out changeset c53cd7bdf8b3 (bug 851892)
Backed out changeset e841a2796375 (bug 851892)
Backed out changeset 2eab85b00159 (bug 851892)
Backed out changeset ca4b1fb9cae4 (bug 851892)
Backed out changeset 74c0ba66f108 (bug 851892)
Backed out changeset 719bb9f41e5b (bug 851892)
Backed out changeset d6aa4c6192df (bug 851892)
Backed out changeset dc81a167a75d (bug 851892)
Backed out changeset 65422477b3a5 (bug 851892)
Backed out changeset 3089dd379077 (bug 851892)
2017-01-15 11:50:10 -08:00
Boris Zbarsky
cea6088d45 Bug 851892 part 9. Add a CSSRule Web IDL interface. r=peterv,heycam
Note that this explicitly drops CSSRule.UNKNOWN_RULE.
2017-01-13 10:41:03 -05:00
Boris Zbarsky
0c844d909c Back out bug 851892 for Windows build bustage on CLOSED TREE 2017-01-13 11:47:22 -05:00
Boris Zbarsky
8cfef678c8 Bug 851892 part 9. Add a CSSRule Web IDL interface. r=peterv,heycam
Note that this explicitly drops CSSRule.UNKNOWN_RULE.
2017-01-13 10:41:03 -05:00
Cameron McCormack
13ce7a2e81 Bug 1290209 - Part 8: Move CSSStyleSheet::SetEnabled up to StyleSheet. r=xidorn
MozReview-Commit-ID: 7shpy5ghnVR
2017-01-06 15:05:24 +08:00
Cameron McCormack
ff8152efd2 Bug 1290209 - Part 6: Move CSSStyleSheet::mMedia up to StyleSheet. r=bzbarsky
MozReview-Commit-ID: LZraHzme6vj
2017-01-06 15:05:24 +08:00
Cameron McCormack
63ff7b2ce7 Bug 1290209 - Part 1: Move CSSStyleSheet::SetTitle up to StyleSheet. r=xidorn
MozReview-Commit-ID: 2rzn5gba7gw
2017-01-06 15:05:24 +08:00
Xidorn Quan
ea2d289c2c Bug 1292432 part 9 - Change WebIDL interface of CSSStyleSheet to StyleSheet. r=heycam
MozReview-Commit-ID: 5AXhsuvvrwe

--HG--
extra : source : 218d4c72938f74f16af22239a99fbdf0e4c621cf
2016-10-14 22:25:38 +11:00
Xidorn Quan
541b51df00 Bug 1292432 part 8 - Move XPCOM IDL methods which just call WebIDL methods to StyleSheet. r=heycam
MozReview-Commit-ID: 3xpdLGc6hqH

--HG--
extra : source : d156efabc47b4a2966a5972dec6755d40fcc624e
2016-10-14 22:25:38 +11:00
Xidorn Quan
2169694adb Bug 1292432 part 7 - Move other WebIDL methods to StyleSheet. r=heycam
MozReview-Commit-ID: J0tXKbZvcEq

--HG--
extra : source : c9cdb1228b36ffe102aad302f3c030c744c8fe26
2016-10-14 22:25:38 +11:00
Xidorn Quan
acac5f6e5c Bug 1292432 part 6 - Make StyleSheet implement GetCssRules/InsertRule/DeleteRule. r=heycam
MozReview-Commit-ID: KD552jWZnA3

--HG--
extra : source : d53d77022ec76005a23977992eb03cae77e81706
2016-10-14 22:25:38 +11:00
Xidorn Quan
73c9f14ff1 Bug 1292432 part 5 - Unify completeness check and security check to StyleSheet. r=heycam
MozReview-Commit-ID: CmQ2Q9UrLAA

--HG--
extra : source : cb459bc28ecf5ee409374a715247b788831afd88
2016-10-14 22:25:38 +11:00
Xidorn Quan
727c0552af Bug 1292432 part 4 - Move SubjectSubsumesInnerPrincipal to StyleSheet. r=heycam
MozReview-Commit-ID: 1DItyq2QrDz

--HG--
extra : source : f3157f4296b9f32491189bfe2898bf2bfa5fb139
2016-10-14 22:25:38 +11:00
Xidorn Quan
03f63ec3b1 Bug 1292432 part 3 - Add WillDirty and DidDirty to StyleSheet. r=heycam
MozReview-Commit-ID: 17O1vYVxuCk

--HG--
extra : source : ea6b9576cccfce1bade7353f00ac668385a2af05
2016-10-14 22:25:38 +11:00
Xidorn Quan
28a773809d Bug 1292432 part 2 - Make StyleSheet inherit nsIDOMCSSStyleSheet. r=heycam
Some method impls are also moved from CSSStyleSheet to StyleSheet so
that they can be shared between the two subclasses.

The new interface methods added to ServoStyleSheet is currently left
unimplemented. They would be implemented in later patches.

MozReview-Commit-ID: 45wHT9BSHTK

--HG--
extra : source : f92bc0d37dbfce91334bff1ed2782489bcc8587a
2016-10-14 22:25:38 +11:00
Xidorn Quan
d0964d7d45 Bug 1292432 part 1 - Make StyleSheet.mType be const. r=heycam
MozReview-Commit-ID: IdatjuERDK3

--HG--
extra : source : 8df6460d50803483d660d67214a3cfe85e920716
2016-10-14 22:25:38 +11:00
Xidorn Quan
00a9e2d481 Bug 1309202 - Factor out stylo branch dispatch utilities. r=heycam
MozReview-Commit-ID: 8fLL9nsJDj4

--HG--
extra : source : fac14e4446a32e6e225e4b405a574225a990b510
extra : amend_source : 2de6d4b5295ff46b4a8f84d4ca43c2ef9ca3680e
2016-10-13 23:45:03 +11:00
Xidorn Quan
3202d476c0 Bug 1306212 part 2 - Remove visibility restriction of StyleSheetInfo. r=heycam
MozReview-Commit-ID: 8xAkfwtDpRu

--HG--
extra : rebase_source : c09503f93909ed44a873162638af36ef5ba1452b
2016-09-29 16:17:58 +10:00
Xidorn Quan
1da4aa60e1 Bug 1304302 part 11 - Remove StyleSheetHandle as well as other places reference it. r=heycam
MozReview-Commit-ID: FfYZiShjJNX

--HG--
extra : source : b75ca959d5bc0128e643a58126693b4cc704e09b
2016-09-26 22:03:25 +10:00
Xidorn Quan
4be4e1b982 Bug 1304302 part 9 - Make StyleSheet::SheetInfo inline. r=heycam
MozReview-Commit-ID: 9ZvnIBw6emI

--HG--
extra : source : d702a97c0e89cd948911307f7f6b131d64985177
2016-09-26 22:03:25 +10:00
Xidorn Quan
708aff235a Bug 1304302 part 5 - Make StyleSheet::As{Gecko,Servo} return pointer instead of reference. r=heycam
To match the behavior of StyleSheetHandle so that we can simply replace
uses of StyleSheetHandle with StyleSheet* in later patch.

MozReview-Commit-ID: LfGKrUmzC4h

--HG--
extra : source : bffc3be53b1c1142b3ab297a78fc6e7934719d2c
2016-09-26 22:03:25 +10:00
Xidorn Quan
4d65721d59 Bug 1304302 part 4 - Add all methods StyleSheetHandle needs to StyleSheet. r=heycam
The methods are written in the same order as in StyleSheetHandle::Ptr.

MozReview-Commit-ID: 6b4311ailNj

--HG--
extra : source : 9cea4a56fc487dd21a8739d4d9be8f01d5fdc93c
2016-09-26 22:03:25 +10:00
Xidorn Quan
e8488364fe Bug 1304302 part 1 - Add const version of AsGecko/AsServo to StyleSheet. r=heycam
MozReview-Commit-ID: LGQQjmkTWsO

--HG--
extra : source : 337342b3376bdaff444ed1c3887d8eee80cfa9ee
2016-09-26 22:03:25 +10:00
Bobby Holley
19f8c5faa5 Bug 1291390 - Make parsing mode an immutable property of the StyleSheet. r=heycam 2016-08-03 10:26:14 -07:00
Bobby Holley
9ee707ada1 Bug 1291390 - Use the parsing mode from the stylesheet when building preferences stylesheet. r=heycam
In practice this will be the 'agent' level rather than the 'author' level, given
the SetParsingMode call immediately after creating the stylesheet. This change
aligns behavior with CSSStyleSheet::ReparseSheet.
2016-08-03 10:26:14 -07:00
Bobby Holley
1dfd6a8070 Bug 1291390 - Hoist the ParsingMode getter to the superclass and give it a special binary name for WebIDL. r=bholley,r=heycam
In the next patch we want to introduce an accessor called ParsingMode, which conflicts with this one.
2016-08-03 10:26:14 -07:00
Bobby Holley
abd6123240 Bug 1252611 - Hoist IsComplete/SetComplete into StyleSheet. r=dholbert 2016-03-10 22:18:59 -08:00
Bobby Holley
0ff743226a Bug 1252611 - Add a method to get the StyleSheetInfo for a given StyleSheet. r=dholbert
One of the annoying things about sharing algorithms on the superclass here is that
certain members live on StyleSheet and others live on StyleSheetInfo (a situation
resulting from the split between CSSStyleSheet and CSSStyleSheetInner). This allows
us to write general algorithms on StyleSheet that touch members on StyleSheetInfo
without paying the price of virtual dispatch.
2016-03-10 22:18:57 -08:00