Граф коммитов

83 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack 09a1815a08 Bug 1427512 - Part 20: Remove nsIDOMMediaList. r=xidorn,jryans,bz
MozReview-Commit-ID: KKnTf7aFfjA
2018-01-11 16:17:56 +08:00
Cameron McCormack a4541d9b18 Bug 1427512 - Part 18: Remove nsIDOMCSSStyleSheet. r=xidorn,jryans,bz
MozReview-Commit-ID: CN3VZvQceZB
2018-01-11 16:17:56 +08:00
Cameron McCormack 55dcbea002 Bug 1427512 - Part 16: Remove nsIDOMCSSRule. r=xidorn,jryans,bz
MozReview-Commit-ID: GvVdW9w5Cc4
2018-01-11 16:17:56 +08:00
Emilio Cobos Álvarez 5604b99826 Bug 1420762: Make StyleSheets notify directly to their StyleSets. r=heycam
This also makes the rule map not process all the stylesheets for the document,
which would be a mess with shadow DOM.

Far from the final, ideal state, but hey, progress.

MozReview-Commit-ID: 7TrifME9VZ
2017-12-01 08:46:39 +01:00
Brindusan Cristian 6f5b49da3e Backed out 2 changesets (bug 1420762) for merge conflicts r=merge a=merge
Backed out changeset ba350c82d823 (bug 1420762)
Backed out changeset 00287b88254b (bug 1420762)
2017-12-01 00:20:10 +02:00
Emilio Cobos Álvarez f28656c543 Bug 1420762: Make StyleSheets notify directly to their StyleSets. r=heycam
This also makes the rule map not process all the stylesheets for the document,
which would be a mess with shadow DOM.

Far from the final, ideal state, but hey, progress.

MozReview-Commit-ID: 7TrifME9VZ
2017-11-30 15:42:45 +01:00
Emilio Cobos Álvarez 21f3b5ec72 Bug 1420755: Make the MediaList coming from the loader know about its stylesheet. r=heycam
MozReview-Commit-ID: 6W2aWf6jS9c
2017-11-27 11:32:21 +01:00
Xidorn Quan 2ddfdf43a2 Bug 1412714 - Don't clone inner of XBL stylesheet in Servo. r=bz
MozReview-Commit-ID: Kzrod3SBt1k

--HG--
extra : rebase_source : 4cf96063f372ffbeb6aabde396ef9fd9f547bcb7
2017-10-30 15:16:20 +11:00
Chris Peterson 1df202b177 Bug 1412048 - Replace NS_RUNTIMEABORT("...") with MOZ_CRASH("..."). r=froydnj
And remove unreachable code after MOZ_CRASH().

MozReview-Commit-ID: 6ShBtPRKYlF

--HG--
extra : rebase_source : 0fe45a59411bda663828336e2686707b550144ae
extra : source : 8473fd7333d2abe1ea1cc176510c292a5b34df45
2017-10-24 23:30:31 -07:00
Xidorn Quan c2366649a6 Bug 1407888 part 2 - Make ServoStyleRuleMap::FillTableFromStyleSheet not make unique inner. r=heycam
MozReview-Commit-ID: 1I7sawfjcnl

--HG--
extra : rebase_source : 41667c3ff9ef52509b21cdff6495dbe9b85ab1af
2017-10-12 18:56:02 +11:00
Phil Ringnalda e83e2ad1b0 Backed out 2 changesets (bug 1407888) for aSheet->HasUniqueInner() assertion failures
CLOSED TREE

Backed out changeset 50e535750cc9 (bug 1407888)
Backed out changeset e1287860a439 (bug 1407888)

MozReview-Commit-ID: 8UHuO8Fz0pL
2017-10-12 19:59:50 -07:00
Xidorn Quan 75fcad8ea7 Bug 1407888 part 2 - Make ServoStyleRuleMap::FillTableFromStyleSheet not make unique inner. r=heycam
MozReview-Commit-ID: 1I7sawfjcnl

--HG--
extra : rebase_source : 620cc19b3826d557e5a255b1bee2417b073da799
2017-10-12 18:56:02 +11:00
Tom Tromey 916228aee7 Bug 1399911 - preserve sourceURL comment directive on style sheets; r=bz,heycam
In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools.  This name is also used as the base
URL for the source-map URL resolution algorithm.  sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/

This patch changes Firefox to record this URL, if specified, and to
expose it (chrome-only) vai StyleSheet.webidl.

MozReview-Commit-ID: 7NwXsOf7nbY

--HG--
extra : rebase_source : bd5d25b4d44f5f220a4624db346edbc4236c9886
2017-09-14 14:59:32 -06:00
Tom Tromey c355a3b8b9 Bug 1388855 - Extract source map URL when parsing CSS, r=bz,heycam
This changes the CSS lexer to extract sourceMappingURL directives from
comments and preserve them; then changes the parser to expose this value
as the style sheet's sourceMapURL.

MozReview-Commit-ID: LfMamJ1PsU0

--HG--
extra : rebase_source : 258827720282d415f97f1d49d870b7c2448d39f4
2017-08-09 13:33:24 -06:00
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
Tom Tromey 28e8f458a9 Bug 1306887 - keep SourceMap response header on CSS style sheets; r=bz,heycam
When loading a style sheet, if the SourceMap (or legacy X-SourceMap)
response header was seen, record it and make it available to chrome
scripts.

MozReview-Commit-ID: 3wtUADzgrI3

--HG--
extra : rebase_source : 25ed09e264d4b3a679ae970c709dedd4d50e2324
2017-06-28 16:51:46 -07: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 d5f6047810 Bug 1372790 - Change uint8_t to back some enum and reorder some fields in StyleSheet to make it more compact. r=heycam
MozReview-Commit-ID: DddIzhJqmcZ

--HG--
extra : rebase_source : da357c220cea45fcc5af3b8a7421a0b699a01026
2017-06-14 14:26:48 +10:00
Emilio Cobos Álvarez aa8fc8476c Bug 1372041: Refactor @import so it also respects the stylesheet's media properly. r=heycam
MozReview-Commit-ID: EBmd8nG877t
2017-07-02 17:19:08 +02:00
Brad Werth efe1889d82 Bug 1373193 Part 2: Create and call a new UpdateStyleSheet method on ServoStyleSet when a ServoStyleSheet has its inner cloned. r=xidorn
MozReview-Commit-ID: GKxnEiZvziS

--HG--
extra : rebase_source : 2b2ec3f37b7b2d94996712e2916797ce0bf910c4
2017-06-19 10:47:13 -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 933bac9a04 Bug 1359217 part 4 - Make ServoStyleSheet::GetCssRulesInternal return ServoCSSRuleList. r=heycam
MozReview-Commit-ID: DjDDoDgo4ty

--HG--
extra : source : 76dc9330e9dabaa6db159128f28b9ba29733cf1c
2017-06-19 15:45:43 +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
Phil Ringnalda 6f1f8bc3a5 Backed out changeset a5fe1b7f3dad (bug 1372790) for build bustage in nsCSSParser.cpp
CLOSED TREE

MozReview-Commit-ID: 3qoTERDArAo
2017-06-13 22:39:50 -07:00
Xidorn Quan c1b7409fa4 Bug 1372790 - Change uint8_t to back some enum and reorder some fields in StyleSheet to make it more compact. r=heycam
MozReview-Commit-ID: DddIzhJqmcZ

--HG--
extra : rebase_source : b7c4db0ce0aac41605f93fd1c2f23578a1caadf7
2017-06-14 14:26:48 +10:00
L. David Baron 53383e2d5c Bug 1369260 - Remove use of MOZ_ASSERT_IF in layout. r=heycam
As I've said before, as module owner I prefer that MOZ_ASSERT_IF not be
used in the module because I consider it to be unreadable.  However, a
few uses have crept in, and this patch removes them.

I consider it to be unreadable because the name looks like a name that
uses smalltalk-ish naming conventions, i.e., with a part of the name
corresponding to each parameter, in order.  However, the parameters are
in the order opposite the name.

This was written primarily with the vim commands:
:%s/MOZ_ASSERT_IF(\([^,]*\),/MOZ_ASSERT(!\1 ||/
:wn
followed by manual cleanup for indentation and removal of !!.

MozReview-Commit-ID: G6rLbOn7k8d
2017-06-06 22:27:17 -07:00
Xidorn Quan 9640535b81 Bug 1262963 - Add env var for bypassing origin check of cssom. r=heycam
MozReview-Commit-ID: 2iMx3sz1QKS

--HG--
extra : rebase_source : 747934a807246b7a61b78275fdabe3cf4df46c40
2016-11-29 18:03:01 +11: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 1b312ca843 Bug 1352968 part 4 - Change the direction of child stylesheet list. r=heycam
It seems no one actually care about the order of the list, and the order
is completely meaningless if the script insert new @import rules.

Changing the order makes inserting faster, and make it easier for later
patch to get the latest inserted child sheet.

MozReview-Commit-ID: 72eKqVoPbZ7

--HG--
extra : source : 6b2b471b993f33f9d06af01e4863cd6c5d34ce3a
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
Emilio Cobos Álvarez 5c6703111a Bug 1367553: Avoid import hell in StyleSheet.h. r=emilio
MozReview-Commit-ID: DR4xURkcFcA

--HG--
extra : rebase_source : 0e72cfcc678ede7c2d645a7a618fe593cfbaa55d
2017-05-25 16:11:13 +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 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 49654bf1af Bug 1325878: Simplify MediaList creation. r=xidorn
MozReview-Commit-ID: Jre50YpuD7F
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:12 +08:00
Emilio Cobos Álvarez 6ec12dc4f5 Bug 1325878: Don't hardode nsMediaList in dom::StyleSheet. r=xidorn
MozReview-Commit-ID: IynF1NFUSLf
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:09 +08: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
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
Xidorn Quan 4e903ddf5c Bug 1315601 part 14 - Add InsertRuleIntoGroup support to ServoStyleSheet. r=heycam
MozReview-Commit-ID: GUHtvjQXECW

--HG--
extra : rebase_source : dadf70886038ae4d1d62945ee4f4fbc4a3e756aa
2017-03-08 18:27:53 +11: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