Commit Graph

151 Commits

Author SHA1 Message Date
Josh Matthews
e0c37f0ed3 Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter. r=emilio
MozReview-Commit-ID: 3r5Z6KiPgRM
2017-07-10 17:52:00 -04:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Wes Kocher
a9eb08898f Backed out changeset f220d8060c14 (bug 1352669) for build bustage CLOSED TREE a=bustage
MozReview-Commit-ID: INYGT4WT1pO
2017-07-06 14:56:06 -07:00
Josh Matthews
723b20d420 Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter.
MozReview-Commit-ID: 3r5Z6KiPgRM
2017-07-06 13:15:08 -07:00
Xidorn Quan
27b5e819e7 Bug 1373484 - Drop all reference to StyleSheet when last strong reference is dropped. r=bz
MozReview-Commit-ID: 2RrNZDIjx3s

--HG--
extra : rebase_source : b9b89aba8d1aa31e91d1cc90e63a9b056dd34ea8
2017-06-19 10:15:49 +10:00
Xidorn Quan
df79764788 Bug 1359217 part 3 - Remove unused ErrorResult param from GetCssRulesInternal. r=heycam
MozReview-Commit-ID: KxUN9cCkoZG

--HG--
extra : source : 38f2eb34293e7781f662b02efe1248816d9b7be0
2017-06-19 15:45:43 +10:00
Emilio Cobos Álvarez
e5264cf2b4 Bug 1368986: Cleanup stylesheet copy-constructor. r=heycam
MozReview-Commit-ID: I8vUuJfET24

--HG--
extra : rebase_source : 239a5659871edcdfd1b41f3a5388d68cd70fb2d7
2017-05-31 13:12:33 +02:00
Emilio Cobos Álvarez
d7b79ff0f9 Bug 1368690: Move EnsureUniqueInner call after all the members have been initialized. r=xidorn
MozReview-Commit-ID: GoeLsjSAU00
2017-05-31 13:05:15 +02:00
Xidorn Quan
a96cd2ac8a Bug 1352968 part 7 - Make RuleHasPendingChildSheet a static method of StyleSheet. r=heycam
MozReview-Commit-ID: HPJgsFftT6f

--HG--
extra : source : 1895bd31f6c88e1be8c710910dec6e773d1a233d
2017-05-30 11:10:25 +10:00
Xidorn Quan
4daf3c74b9 Bug 1352968 part 2 - Move mOwnerRule to StyleSheet and use dom::CSSImportRule instead of css::ImportRule. r=heycam
MozReview-Commit-ID: DTAWGHIUAQX

--HG--
extra : source : 6e84cc987e02c932c95b79cebc89e9b49f22f86a
2017-05-30 11:10:25 +10:00
Emilio Cobos Álvarez
a9f348149b Bug 1357583: Remove ServoStyleSheet::ClearRuleCascades. r=heycam
These invalidations are already handled from the PresShell notifications, no
need to handle it somewhere else.

MozReview-Commit-ID: G9KDVvSKMJY
2017-05-29 23:01:26 +02:00
Brad Werth
50e3299bf1 Bug 1339629 Part 10: Implement ServoStyleSet::EnsureUniqueInnerOnCSSSheets. r=heycam
MozReview-Commit-ID: GuUqKYrV60z

--HG--
extra : rebase_source : 6a433ab77e2295450cc68ad0dc9d2e55ba08976a
2017-05-15 17:11:08 -07:00
Brad Werth
450a0513e2 Bug 1339629 Part 9: Uplift EnsureUniqueInnerOnCSSSheets and SetNeedsRestyleAfterEnsureUniqueInner into StyleSetHandle, and eliminate CSSStyleSheet::EnsureUniqueInner. r=heycam
MozReview-Commit-ID: LH7vTKUmuv8

--HG--
extra : rebase_source : 35d2e23978150001c2a6293a8749065dd49eed4a
2017-05-15 16:30:10 -07:00
Brad Werth
1af9f090ed Bug 1339629 Part 8: Uplift ClearRuleCascades into StyleSheet. r=heycam
MozReview-Commit-ID: CCYIYjWrw86

--HG--
extra : rebase_source : c9f3e4bced29d46ab9c906e58e97465e60fda5ae
2017-05-18 14:21:11 -07:00
Brad Werth
a13dd3c171 Bug 1339629 Part 6: Uplift mStyleSets into StyleSheet. r=heycam
MozReview-Commit-ID: G8xQ5gLJ3dr

--HG--
extra : rebase_source : 76ebce99d0e2570a6893691c7bc6f86a11a06f9d
2017-05-15 16:27:15 -07:00
Brad Werth
eeb0549a75 Bug 1339629 Part 5: Change CSSStyleSet::mStyleSets to use StyleSetHandles. r=heycam
MozReview-Commit-ID: 7KFbhh4fCW9

--HG--
extra : rebase_source : 772367fb7fcdaa494ada7e01237ee1262af53ee1
2017-05-15 15:01:23 -07:00
Brad Werth
2a2c39ef1d Bug 1339629 Part 4: Uplift CloneFor into StyleSheetInfo, and EnsureUniqueInner into StyleSheet. r=heycam
MozReview-Commit-ID: 4aZJYAsmZ2h

--HG--
extra : rebase_source : 196529a87197a569694428269a3f3244fa25cf38
2017-05-15 16:19:17 -07:00
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
Boris Zbarsky
c496eb135e Bug 1358056. Fix stylesheet handling of associated documents in various edge cases. r=heycam 2017-04-24 15:44:19 -04:00
Emilio Cobos Álvarez
a2a4795bd3 Bug 1325878: followup - cleanup MediaList::Matches callers. r=me
MozReview-Commit-ID: Ck9hlZ0qkxj
2017-04-14 11:31:47 +08:00
Emilio Cobos Álvarez
16cd642c17 Bug 1325878: Create less hardcoded nsMediaList instances. r=xidorn
MozReview-Commit-ID: K6T3MM1ZrFb
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:03 +08:00
Nicholas Nethercote
c54a8b6198 Bug 1353948 - Add SizeOfIncludingThis() methods to ServoStyle{Set,Sheet,SheetInner}. r=heycam.
This fills things in a bit more on the Gecko side.

--HG--
extra : rebase_source : a7cd16969fa0ce06f7d9e39f83d67bf3bd472ea4
2017-04-06 12:22:36 +10: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
082e026668 Bug 1345696 part 1 - Lots of fixup for the next patch. r=heycam
The next patch moves nsCSSFontFaceRule into a separate header, which
somehow affects lots of header dependencies. I'm not completely sure
why this happens, though.

MozReview-Commit-ID: KuXbsaX0NUd

--HG--
extra : rebase_source : cef91018964b5488c5031df8aada90aa7fa0ad51
2017-03-28 20:05:12 +11:00
Cameron McCormack
ab48ee3d46 Bug 1350789 - Make CSSStyleSheet::SizeOfIncludingThis correctly check for shared inners. r=bradwerth
MozReview-Commit-ID: 3hsuiR5SwZT

--HG--
extra : rebase_source : db1a2eb4fd604655102fc031abb1e26e35f92bc1
2017-03-27 16:49:37 +08:00
Andrea Marchesini
1fd1bc3935 Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
Ting-Yu Lin
f087300185 Bug 1338446 Part 3 - Label SheetLoadData in Loader::PostLoadEvent. r=heycam
When constructing a Loader without passing a document, we added a DocGroup
parameter so that we could still use it to dispatch events to the DocGroup.

Delete NS_ENSURE_TRUE because new() is infallable.

Use another runnable pointer for calling dispatching because forget() will
nuke the pointer and we need to use evt afterwards.

MozReview-Commit-ID: Ce2K6j4pUhA

--HG--
extra : rebase_source : 2bacf1f856e0700f36b2fefe4d2424719cad77a7
2017-03-13 17:00:57 +08: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
63dfed31ba Bug 1315601 part 12 - Remove useless retval out param from InsertRuleIntoGroup. r=heycam
MozReview-Commit-ID: Iyj0zLj8nsL

--HG--
extra : rebase_source : 39815c7f1c4ab65b32fa5b41c4231c3e76661628
2017-03-08 17:11:42 +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
Xidorn Quan
6cfb39e127 Bug 1342303 part 4 - Remove nsCOMArray::EnumerateForwards uses in layout/style. r=heycam
MozReview-Commit-ID: UjIZgeWRwh

--HG--
extra : rebase_source : ab20efdda8706a3443038abea25a9de6d73a0b60
2017-03-03 15:19:06 +11:00
Wes Kocher
5bb9a497ef Backed out 6 changesets (bug 1342303) for build bustage a=backout
Backed out changeset 89137679a68c (bug 1342303)
Backed out changeset 20a1bcb47c33 (bug 1342303)
Backed out changeset bc3b2e7a383b (bug 1342303)
Backed out changeset bdc491b9ebde (bug 1342303)
Backed out changeset 5c6042dee665 (bug 1342303)
Backed out changeset b5de1dfff82f (bug 1342303)

MozReview-Commit-ID: BjlVAX480jI
2017-03-02 16:35:43 -08:00
Xidorn Quan
321b99076d Bug 1342303 part 4 - Remove nsCOMArray::EnumerateForwards uses in layout/style. r=heycam
MozReview-Commit-ID: UjIZgeWRwh

--HG--
extra : rebase_source : 87b81a5eccb9744a4edd99e82b309b4910811640
2017-02-27 10:45:45 +11: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
01f02e499e Bug 1290218 Part 4: Implement shared mInners for ServoStyleSheets, and standardize calling of AddSheet into CSSStyleSheet and ServoStyleSheet constructors. r=heycam
MozReview-Commit-ID: 7u89J0WfMcX

--HG--
extra : rebase_source : 0d0783ba73e55790832e9ae1e656374b565ed6e6
2017-02-17 15:48:35 -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
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
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
Boris Zbarsky
0da388ba25 Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky
65f894384a Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam,smaug 2016-11-30 18:18:14 -05:00
Sebastian Hengst
3c9c348769 Backed out changeset 9a4b96c10b23 (bug 851892) for build bustage. r=backout on a CLOSED TREE 2017-01-20 19:31:31 +01:00