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

702 Коммитов

Автор SHA1 Сообщение Дата
Wes Kocher a8e6d0bd2c Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7XpmaFg1k8N
2017-08-29 16:17:13 -07:00
Geoff Brown d944043b02 Bug 1394548 - Remove invalid entries from layout/inspector/tests/chrome/chrome.ini; r=jmaher 2017-08-29 15:44:16 -06:00
Sebastian Hengst ca3d97b658 merge mozilla-central to autoland. r=merge a=merge 2017-08-29 20:31:58 +02:00
Ehsan Akhgari ebaa749322 Bug 1394191 - Remove unneeded nsContentList.h includes from layout; r=dholbert 2017-08-29 07:29:11 -04:00
Emilio Cobos Álvarez c5ba418ffa Bug 1387913: Make sure to update the stylist if needed on EnsureUniqueInnerOnCSSSheets. r=heycam
MozReview-Commit-ID: 3eKd78qMC1T

--HG--
extra : rebase_source : b317f0e12f769d39a7cbae66d9147c52d40cffea
2017-08-22 20:36:14 +02:00
Brad Werth c946e3ebb0 Bug 1387933 Part 2: Gecko-side add a reusable sheets parameter to Servo_StyleSheet_FromUTF8Bytes, and mark a test as passing. r=xidorn
MozReview-Commit-ID: 9wqJW3SqbbM

--HG--
extra : rebase_source : 2d6711c411ec5ef22866a4b3aefcbd9c70619f31
2017-08-22 13:53:53 -07:00
Eric Rahm a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
Brad Werth 1fb5df3521 Bug 1394632: Fix await race condition which could cause timeouts in layout/inspector/tests/chrome/test_parseStyleSheetObservers.html. r=emilio
MozReview-Commit-ID: WGdLNznpcW

--HG--
extra : rebase_source : 88f3883d3ac19054abfa141afc0f822f799c9820
2017-08-28 18:26:34 -07:00
Fernando Jimenez Moreno cc213edf84 Bug 1387932 - stylo: add exception to inspector's test_getRelativeRuleLine. r=xidorn
MozReview-Commit-ID: 7Oyc8aXmACX

--HG--
extra : rebase_source : ec92976d8d2f013c55a2c945d601e9a203b36e37
2017-08-11 19:22:10 +02:00
Fernando Jimenez Moreno 57e62aef4f Bug 1387934 - stylo: inDOMUtils::SelectorMatchesElement should not match with bogus pseudo. r=xidorn
MozReview-Commit-ID: 8jG6dWzn8eI

--HG--
extra : rebase_source : 07bfa777b1ebb47e02046e0ab1030524456007fd
2017-08-14 12:28:58 +02:00
Xidorn Quan 58e5987209 Bug 1383992 part 1 - Disable failing mochitests. r=heycam
MozReview-Commit-ID: J9LoovJJJgM

--HG--
extra : rebase_source : a5ed4b2a11c293c50d642c3a0da6831ce5a885a1
extra : source : 8d97565b7dedaef3b46e65b92b1ca1e0598d2a76
extra : histedit_source : 72834d0bc485e78cb8c1de357e4b545d7e6408f5
2017-08-09 08:31:26 +10:00
Jonathan Kew 009efa5e70 Bug 1340910 - pt 2+3 - Import Brotli 0.6.0 from upstream, and Gecko updates required to work with Brotli 0.6.0 API changes. r=glandium 2017-08-09 11:45:39 +01:00
Xidorn Quan 7be1cc8c81 Bug 1386865 part 2 - Collect style rule maps for XBL bindings. r=heycam
MozReview-Commit-ID: HPmZopu1L7Z

--HG--
extra : rebase_source : 7f65d1f963f9692bc8a3295c83b69df374557ec2
2017-08-03 16:59:17 +10:00
Xidorn Quan 4a92d308fc Bug 1374872 - Disable tests involving web components for stylo. r=wchen
MozReview-Commit-ID: JWA210RkpAW

--HG--
extra : rebase_source : cd2a4ed75b43d500bf3a6e1e49eccb1bd38ed777
2017-06-21 14:51:37 +10:00
Sebastian Hengst f16a7f8371 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4EWdTlEncz7
2017-07-22 11:38:42 +02:00
Sylvestre Ledru 7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Manish Goregaokar 9e805b0538 Bug 1382017 part 2 Gecko piece - Remove usage of ServoComputedValues from binding functions; r=xidorn
MozReview-Commit-ID: 3KygTIIMVvF
2017-07-18 23:17:34 -07:00
Christoph Kerschbaumer 87798d9abf Bug 1337270 - Convert tests within layout/ to not rely on principal inheritance for data: URIs. r=smaug 2017-07-18 07:50:07 +02:00
Xidorn Quan aa1f5767c8 Bug 1372464 - Use ComputedValues rather than element to get style rule list. r=heycam
MozReview-Commit-ID: JPBbhrxG0Lh

--HG--
extra : rebase_source : 5bec19320bd8fa04efc37bd9301f6f9ecb95ca19
2017-07-10 09:38:58 +10: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
Cameron McCormack 82152d369e Bug 1378300 - Stop assuming Gecko style set when fetching XBL sheets for devtools. r=xidorn
MozReview-Commit-ID: KmRDWUQQzPT

--HG--
extra : rebase_source : e37c4549369aa67cae8e075e96f24708144fa5d0
2017-07-05 17:11:54 +08:00
Ting-Yu Lin 3ea291f24f Bug 1377196 Part 2 - Add AppendAllXBLStyleSheets to ServoStyleSet. r=heycam
MozReview-Commit-ID: HSQnBk8djil

--HG--
extra : rebase_source : 458787e519c556b659591ab3f627e71a5f87e60d
2017-06-29 16:09:22 -07:00
Brad Werth ce8e242fa1 Bug 1367996 Part 2: Add a test of the StyleRuleAdded and StyleRuleRemoved events. r=heycam
MozReview-Commit-ID: 114IuYiKEBb

--HG--
extra : rebase_source : f444a72e575d4b23152c22f8978dc1a3c8af33bb
2017-06-21 12:13:46 -07:00
Nicholas Nethercote fe9268c4cd Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
All the instances are converted as follows.

- nsAFlatString  --> nsString
- nsAFlatCString --> nsCString

--HG--
extra : rebase_source : b37350642c58a85a08363df2e7c610873faa6e41
2017-06-20 19:19:05 +10:00
Nicholas Nethercote 1572f96f5d Bug 1374580 (part 1) - Remove nsASingleFragment{,C}String typedefs. r=froydnj.
All the instances are converted as follows.

- nsASingleFragmentString  --> nsAString
- nsASingleFragmentCString --> nsACString

--HG--
extra : rebase_source : e6a1ddc8938fecd9a735b15e872c054edf4c7910
2017-06-20 19:18:17 +10:00
Markus Stange 579f0e24a9 Bug 1370034 - Add CSS properties -moz-window-transform and -moz-window-transform-origin, style system parts (excluding stylo). r=dbaron
MozReview-Commit-ID: BlLMswF0bKO

--HG--
extra : rebase_source : c064a2774f352ca2a3b0139e8a8f657c3a4ea1d8
extra : source : 6bd03efee80afb048db2e51777a8e5ff6db80dc4
2017-06-19 01:44:22 -04:00
Cameron McCormack 1849ea4995 Backout bug 1291457 and bug 1370034 for bustage. 2017-06-19 13:55:15 +08:00
Xidorn Quan e33c064a52 Bug 1359217 part 7 - Add test for getCSSStyleRules. r=heycam
MozReview-Commit-ID: 85gaOcW7opN

--HG--
extra : source : 2b1258106aa01cabb8821a31c3bcee0e000b857d
2017-06-19 15:45:43 +10:00
Xidorn Quan e3c82192cb Bug 1359217 part 6 - Add ServoStyleRuleMap to handle style rule mapping. r=heycam
This commit adds class ServoStyleRuleMap which caches the mapping from
raw Servo style rule to Gecko's wrapper object.

It is a per-document object, and is added as an observer of document
when constructed, so that it updates data inside when possible.

For safety consideration, this change also makes ServoStyleRule support
weak pointer, and use weak pointer inside ServoStyleRuleMap.

MozReview-Commit-ID: YxBnZ88tjf

--HG--
extra : source : 0f2bc306d27b8ab22f1aa08aa9d44af0dba4694d
2017-06-19 15:45:43 +10:00
Markus Stange f3b2407d70 Bug 1370034 - Add CSS properties -moz-window-transform and -moz-window-transform-origin, style system parts (excluding stylo). r=dbaron
MozReview-Commit-ID: BlLMswF0bKO

--HG--
extra : rebase_source : 170e4db9ad8b285f7575e39109517cb6acef8733
extra : source : 6bd03efee80afb048db2e51777a8e5ff6db80dc4
2017-06-19 00:21:16 -04:00
Ben Tian 71ff52def2 Bug 1351072 - [e10s] Clear active document when closing popup of <select>. r=smaug
MozReview-Commit-ID: IaRG67FwIPL

--HG--
extra : amend_source : 3a2a548499fa73b9e9f8533777ebcf5fcbb626ae
2017-06-14 13:42:03 +08:00
Manish Goregaokar 3188b9bfd6 Bug 1373018 - Part 10: stylo: Remove StyleSource; r=bholley
MozReview-Commit-ID: 4IcROeDNoBA

--HG--
extra : rebase_source : e2f65c316be2c5640150eb5ff5628505ce446535
2017-06-10 22:27:45 -07:00
Fernando Jimenez Moreno 31a637df14 Bug 1367615 - Part 1: Move inDOMUtils style rules related functionality to BindingStyleRule. r=emilio
MozReview-Commit-ID: 7d96KT2yYBF

--HG--
extra : rebase_source : ebfff1ea39b8c360c731fa721fd0d67127fb23f3
2017-06-07 17:48:49 +02:00
KuoE0 535027fa9e Bug 1358993 - (Part 3) Call ServoStyleSheet::ReparseSheet in inDOMUtils::ParseStyleSheet. r=heycam
MozReview-Commit-ID: KRDBy8k4lHa

--HG--
extra : rebase_source : f5b6c7abfb2b269cb90ae375e5ad54df2ef9f514
2017-05-25 10:55:57 +08:00
Matt Brubeck 22c6f54aa2 Bug 1357716 - stylo: Don't return uninitialized pointers from GetCSSStyleRules. r=xidorn
MozReview-Commit-ID: JPj6d27PALc

--HG--
extra : rebase_source : 7565f4aeee5a6bf2b134d0b05981cc18038247db
2017-05-18 14:50:05 -07:00
Manish Goregaokar 60a054b7f9 Bug 1340484 - Round RGB values when obtaining from HSL instead of flooring; r=dbaron
MozReview-Commit-ID: AFfczBFV00n

--HG--
extra : rebase_source : 127da8fa5cd21f9054de89f30f83db96d1a3392b
2017-05-08 16:43:05 -07:00
Boris Zbarsky f11ddd537b Bug 1361274. There's no need to update link :visited state when doing querySelectorAll, since querySelectorAll ignores that state anyway. r=smaug
In our current setup, in which links with an href attribute always match either
:link or :visited, no matter whether that attribute's value is a valid URI,
changes to the attribute always put the element into either the "match nothing"
state or the "match :link" state, via calls to Link::ResetLinkState.

The only thing FlushPendingLinkUpdates is needed for is (lazily, in case it
turns out to not be needed because the element got removed from the DOM anyway)
registering a history observer to switch the link state to :visited as needed.

This means that selector matching consumers that would never expose :visited
state to start with don't need to worry about calling FlushPendingLinkUpdates.
2017-05-03 16:54:25 -04:00
Brad Werth 5220dc6f4f Bug 1346256 Part 3: Modify GetCSSStyleRules to collect ServoStyleRules. r=xidorn
MozReview-Commit-ID: IMQLykuXjfL

--HG--
extra : rebase_source : 0262e0a426e23dfb6935f1fed95e38393314c67c
2017-04-07 15:21:36 -07:00
Mayank Srivastav ae997781f5 Bug 1156019 - Fix the issue of background-size property, regenerated properties css database & updated tests. r=xidorn
MozReview-Commit-ID: ACRxUEWBbSM

--HG--
extra : rebase_source : 87876016c618465552bb86a21e12a5643cd530cc
2017-04-07 11:01:00 -04:00
Mike Hommey d6aaa996f4 Bug 1353990 - Stop exporting brotli headers. r=gps
They have generic names, and are potentially conflicting with
in-tree headers with the same name (which is true for at least port.h).

There aren't enough users of brotli to want to avoid LOCAL_INCLUDES
in the directories that use it.

--HG--
extra : rebase_source : 82531ac5961ad80e1b3d0c1484a2f146be194411
2017-04-06 13:44:47 +09:00
Brian Birtles 33041d1214 Bug 1315874 - Drop 'ForElement' from GetStyleContextForElementXXX methods; r=heycam
In the next patch we want to add a method called
GetUnanimatedStyleContextForElementNoFlush but that's much too long. Instead it
seems better to just drop 'ForElement' from all these methods since it should be
fairly obvious we are getting the style context for an element given that the
first argument is an element.

MozReview-Commit-ID: JQKaEuCKV2F

--HG--
extra : rebase_source : 3ba51f3b00d1ec7bc91102629d9c0abb88992fef
2017-04-05 14:39:23 +09:00
bechen 7b4c35c268 Bug 1318542 - fix testcases due to new pseudo element ::cue. r=heycam
MozReview-Commit-ID: F10y2zTtBoT

--HG--
extra : rebase_source : 8d6ab4a78c1fcd62dc688e9b31f7f1b6fb4056fc
2017-04-05 10:50:58 +08:00
Astley Chen bdf50726af Bug 1342880 : Remove class inSearchLoop from the tree. r=heycam
inSearchLoop is referenced from nowhere, as a result, we don't need to get its timer event labeled.

MozReview-Commit-ID: 5fxg38WD9dQ

--HG--
extra : rebase_source : a72f150e15605e604e969c725ed4a23168bda1b4
2017-03-15 11:48:41 +08:00
Brad Werth cdb1a3d36f Bug 1337305 Part 2: Change GetCSSStyleRules to return RuleNodes for Gecko rules, and nothing otherwise (instead of asserting). r=xidorn
MozReview-Commit-ID: EQWOstveuaU

--HG--
extra : rebase_source : 7024f5f251d112cd8922f83490941bcb6781a7c8
2017-03-13 17:24:38 -07:00
Brad Werth 0dc5a1c5a7 Bug 1337305 Part 1: Refactor GetRuleNodeForElement to just return the StyleContext, so caller can either get a RuleNode or a raw servo rule. r=shinglyu,xidorn
MozReview-Commit-ID: DBkMfSvOA2k

--HG--
extra : rebase_source : 0c4affa5190bb28797cae8c09c34f6037fd1c6ca
2017-03-13 17:23:17 -07:00
Masatoshi Kimura 7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09: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 1d545c87da Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Sebastian Hengst 7f2820fd7b Backed out changeset 271c7cd7b59a (bug 851892) 2017-01-20 19:30:41 +01:00
Sebastian Hengst bcb6968086 Backed out changeset 9ef39356f62c (bug 851892) 2017-01-20 19:30:32 +01:00