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

8820 Коммитов

Автор SHA1 Сообщение Дата
Bobby Holley 57b406bba3 Bug 1260310 - Generalize nsStyleContext to support resolving styles from either nsRuleNode or ServoComputedValues. r=heycam 2016-03-29 22:16:35 -07:00
Tobias Schneider 54290c6564 Bug 1209273 - Part 1 - Support for color-adjust CSS property. r=dbaron 2016-03-10 10:51:00 +01:00
Bobby Holley 3836b7c35b Bug 1258017 - Redesign and simplify rule tree GC. r=dbaron
The basic idea here is as follows:
* Rule nodes are reference-counted, but releasing them adds them to a linked
  list rather than freeing them. This allows for the reuse that motivated the
  original GC scheme.
* We get rid of the marking, and instead rely on the reference count.
* Sweeping no longer requires a complicated traversal. We just pop items
  off the free list until it's empty. When a child is destroyed, its parent
  may go onto the free list.
* We remove special handling for the root node, and use a regular reference-counted
  edge from the style set.
* The free list automatically asserts that it's empty (meaning all nodes have been
  freed) in its destructor, which runs when the style set is destroyed.
* We get rid of the list of style context roots on the style set. We still need
  a count though, because of the HasCachedStyleData check.
2016-03-28 08:59:22 -07:00
Bobby Holley d595820a75 Bug 1258017 - Use a RefPtr to hold onto the parent style context. r=dbaron 2016-03-28 08:59:21 -07:00
Bobby Holley 69d08c6cad Bug 1258017 - Use an nsCOMPtr to hold onto the nsIStyleRule. r=dbaron 2016-03-28 08:59:20 -07:00
takayuki_yamaguchi da0885219b Bug 1259675 - Clean up InternalTransitionEvent r=masayuki
MozReview-Commit-ID: 8fTJ4Z9yJGl

--HG--
extra : rebase_source : 7c461ee6124e4e7cce0a709b3dfe2c97c6df9e8f
2016-03-26 16:26:35 +09:00
Rob McAuley 4acbe0650b Bug 1244640 - implement AnimationEffectTiming iterations r=hiro
MozReview-Commit-ID: Iwq6vleUERo

--HG--
extra : rebase_source : 8eef9f68a8956db547f98ab253927cf01a3ecf50
2016-03-26 14:41:37 +09:00
Tetsuharu OHZEKI 34d28e65df Bug 1259676 - part3: rename from 'InternalAnimationEvent.pseudoElement' to 'InternalAnimationEvent.mPseudoElement'. r=masayuki
MozReview-Commit-ID: GBJtFdobipj

--HG--
extra : rebase_source : 528abb3d04e52547e6c4e13ea396e080406008b1
2016-03-26 13:37:20 +09:00
Tetsuharu OHZEKI 3aeb31cf0f Bug 1259676 - part2: rename from 'InternalAnimationEvent.elapsedTime' to 'InternalAnimationEvent.mElapsedTime'. r=masayuki
MozReview-Commit-ID: 4n5YQwxLeAx

--HG--
extra : rebase_source : 6c29d53092c7d1f84ef2ad38f44380c7579df270
2016-03-26 13:37:19 +09:00
Tetsuharu OHZEKI 693106452d Bug 1259676 - part1: rename from 'InternalAnimationEvent.animationName' to 'InternalAnimationEvent.mAnimationName'. r=masayuki
MozReview-Commit-ID: DK5Q477WoXu

--HG--
extra : rebase_source : 59f061c7835b6e2359ca937a06cf3890871a70ea
2016-03-26 13:37:19 +09:00
Cameron McCormack 72db41da62 Bug 1253788 - Don't reload inline chrome:// style sheets in nsXBLPrototypeResources. r=bzbarsky 2016-03-26 17:02:30 +11:00
Brendan Dahl 3c24d63475 Bug 1256084 - Don't force reflow on size mode change. r=heycam 2016-03-23 17:56:00 -04:00
Emilio Cobos Álvarez 218d5cde79 Bug 1259802: Add type replacement annotations to simplify rust binding generation for nsStyleStruct.h, r=bholley
This way or bindings are sane, and we don't have to bring in a lot of
the gfx code.
2016-03-25 11:46:21 -07:00
Bobby Holley 4639af5cdb Bug 1259677 - nsRuleNode passes wrong hash key to PLDHashTable when converting child list into child hash. r=bz 2016-03-25 09:52:50 -07:00
Jeremy Chen ca58c7482d Bug 1247777 - Part4.2: add compatible webkit prefixed properties in
CSS properties ordering check test. r=bz

--HG--
extra : commitid : 3L1KflCYhR3
2016-03-25 15:54:50 +08:00
Jeremy Chen b28e75fd40 Bug 1247777 - Part4.1: replace windows-style line endings with unix-style line endings. r=bz
This commit only replace windows-style line endings w/ unix-style ones.
"git diff -w" would see no difference in this commit.

--HG--
extra : commitid : 3L1KflCYhR3
2016-03-25 15:54:50 +08:00
Jeremy Chen 4134ed5760 Bug 1247777 - Part1: parse and compute -webkit-text-fill-color property. r=heycam
--HG--
extra : commitid : 3L1KflCYhR3
2016-03-25 15:54:49 +08:00
Daniel Holbert 2b7c7ca3d2 Bug 1236400 part 3: If webkit prefix support is enabled, skip CSS Parser code that converts "display: -webkit-box" directly to "display: flex". r=mats
This makes "display: -webkit-box" & "display: -webkit-inline-box" into bona
fide "display" values (instead of just aliases), when webkit prefix support is
enabled, and allows us to actually exercise the code added in the earlier
patches on this bug. (Note that when webkit prefix support is *disabled*, our
CSS Unprefixing Service strategy will instead have an opportunity to take
effect, for whitelisted sites, and it'll continue to convert "-webkit-box" to
"flex".)

MozReview-Commit-ID: BV93xs4ddbK
2016-03-24 09:55:11 -07:00
Daniel Holbert 37e8c9d5cc Bug 1236400 part 1: Add internal enum values to represent "display: -webkit-box" & "display: -webkit-inline-box". r=mats
These new enum values are added with same behavior as their modern flexbox
equivalents -- they're hooked up to NS_NewFlexContainerFrame, and they're
listed alongside the modern flexbox enums in 'switch' & 'if' statements.

There's one exception, which I call out with a comment at the end of the patch:
we don't treat -webkit-box the same as flexbox in IsFlexOrGridDisplayType(),
because that method is used to determine whether we should blockify
inline-level children of a flex/grid container, and we don't want to blockify
any children of a -webkit-box. (Instead, we want to wrap them in an anonymous
flex item. That happens in the next patch.)

MozReview-Commit-ID: 9BB4Ib2KpvE
2016-03-24 09:55:11 -07:00
Ting-Yu Lin 5a53907dfa Bug 1258177 - Make the list-item markers non-selectable. r=bz
MozReview-Commit-ID: GkkAknIA31t

--HG--
extra : rebase_source : 424b2b2821a158bae15bae7bb07d15ceb274c3fa
2016-03-20 17:26:02 +08:00
Brian Birtles a1ae304c59 Bug 1245748 - Add a variant of StyleAnimationValue::ComputeValues that takes an nsCSSValue; r=heycam
MozReview-Commit-ID: 83popM8E0Q4

--HG--
extra : rebase_source : efef274a8a2a21423e6c1931d9b92739272eb72a
2016-03-22 16:31:16 +09:00
Brian Birtles b411ad9926 Bug 1245748 - Add nsStyleContext parameter to StyleAnimationValue::ComputeValue(s); r=heycam
StyleAnimationValue::ComputeValue(s) will automatically look up the style
context of the supplied element. This is mostly fine, but when we start using
this method in scenarios where we are building the initial style context
(as happens later in this patch series) it can easily land us in a situation
where we iterate indefinitely.

It would be better, instead, to just explicitly pass in the style context we
want to use, as we already do for StyleAnimationValue::ExtractComputedValue.

MozReview-Commit-ID: ZoVBlBRRBI

--HG--
extra : rebase_source : 9012cc2e405fc887f070fbfaa2f9853289882862
2016-03-22 16:31:09 +09:00
Brian Birtles 5785877883 Bug 1245260 - Add crashtest; r=hiro
MozReview-Commit-ID: IBe0zbsCJJy

--HG--
extra : rebase_source : 9045ca886302026220dec365e63203c538c14e9a
2016-03-24 09:04:53 +09:00
Daniel Holbert 1c58c1673f Bug 1257661: Make the CSS parser accept "display:-webkit-inline-box" as an alias for "display:inline-flex". r=heycam
(We already map "display:-webkit-box" to "display:flex" in this way. This is just extending that existing support to cover the inline version.)

MozReview-Commit-ID: F7gH3QMSmn0

--HG--
extra : rebase_source : f97703f074ccdb5d97ad16c282be4d24c1fb0eff
2016-03-17 16:11:28 -07:00
Carsten "Tomcat" Book 5d83e31d04 merge mozilla-inbound to mozilla-central a=merge 2016-03-22 12:14:15 +01:00
Nick Alexander e90bd4aabb Bug 1256401 - Part 2: Remove references to b2gdroid. r=fabrice
MozReview-Commit-ID: 63yJGdgPbhe

--HG--
extra : rebase_source : 2256e0a12588703a83f4cba06971231ac3c64592
extra : amend_source : 1f35a04191f37225986bd7ff4d0b6b2c34a71b05
extra : histedit_source : 82d351700936c8e1297eeca91ce00f96340e2f2c
2016-03-18 14:41:51 -07:00
Xidorn Quan af785a12fd Bug 968761 - Treat nested calc() as plain parenthesis. r=dbaron
MozReview-Commit-ID: Lwd56FaaDWx

--HG--
extra : rebase_source : f57ac5695e6e06c568ff4cb54304a2fd5716fc41
2016-03-03 10:05:37 +08:00
Mats Palmgren 3128937295 Bug 1248371 - [css-grid] Require that each track has a definite min- or max-sizing function when the track list contains a repeat(auto-fill/fit) track. r=dholbert 2016-03-17 17:27:55 +01:00
Geoff Brown 29977660c0 Bug 1251013 - Update android_version annotations in test manifests - mochitest; r=jmaher 2016-03-17 10:00:48 -06:00
Jonathan Hao 7bee2c98a0 Bug 1235572 - Enforce SRI if content signature is enforced r=francois
* * *
[mq]: sri_fix

MozReview-Commit-ID: 8vY9J4j3Eog
* * *
[mq]: loadInfo

MozReview-Commit-ID: EZ8BUfCOXO6
* * *
[mq]: add-logs

MozReview-Commit-ID: 1jeyTq9nvlW

--HG--
extra : transplant_source : %8Dj%12f%16%F5%12%8E%FE%7C%02%274%2A%A0a%C8%CB2P
2016-03-16 11:13:26 +08:00
Cameron McCormack 7cc115e18c Bug 1256210 - Part 3: Remove agent sheet by the end of test_additional_sheets.html. r=dbaron 2016-03-17 13:17:10 +11:00
Cameron McCormack 3f7c51c2ae Bug 1256210 - Part 2: Convert test_additional_sheets.html and test_addSheets.html to mochitest-plain. r=dbaron
--HG--
rename : layout/style/test/chrome/additional_sheets_helper.html => layout/style/test/additional_sheets_helper.html
rename : layout/style/test/chrome/test_addSheet.html => layout/style/test/test_addSheet.html
rename : layout/style/test/chrome/test_additional_sheets.html => layout/style/test/test_additional_sheets.html
2016-03-17 13:17:10 +11:00
Cameron McCormack 69e11e6d9e Bug 1256210 - Part 1: Factor out getting of services in test_additional_sheets.html. r=dbaron
MozReview-Commit-ID: GuODc7fnYVj
2016-03-15 18:38:07 +11:00
Nicholas Nethercote a2f068b2ad Bug 1253085 - Remove the |PLDHashTable*| argument from PLDHash{HashKey,MatchEntry}. r=froydnj.
This is easy because it's never needed.

--HG--
extra : rebase_source : 78830dab41c40a1544fa55fc69ca9c1c6709d767
2016-03-16 15:33:44 +11:00
Mike Shal 49c5290021 Bug 1256033 - Remove layout/style/test/Makefile.in; r=glandium
The css_properties.js rule can be converted into gen-css-properties.py,
which we can install with TEST_HARNESS_FILES instead of the
mochitest.ini manifest.


MozReview-Commit-ID: F7nf71ORWsS
2016-03-11 19:28:02 -05:00
Boris Chiou efe45f15d3 Bug 1249219 - Part 3: Replace Pair<Element*, CSSPseudoElementType> with NonOwningAnimationTarget. r=birtles
--HG--
extra : rebase_source : 35e69a293cdb7a25ce579dbb453289ed3521e7e2
2016-03-21 16:49:50 +08:00
Mats Palmgren 725f3ced29 Bug 1258147 - Pierce through display:contents style context ancestors when looking for CB context to compare our writing-mode to. r=jfkthame 2016-03-21 16:56:07 +01:00
Xidorn Quan 60bcaa5c0b Bug 1257121 part 4 - Use return value rather than out param to return font metrics. r=jfkthame
MozReview-Commit-ID: 6xrHYbgHGVd

--HG--
extra : rebase_source : 4d0cea24689588d8a1daa1869502e31ac7c3dc56
2016-03-17 13:55:48 +08:00
Xidorn Quan f4ef02b391 Bug 1257121 part 1 - Use struct for passing some params of font metrics. r=jfkthame
MozReview-Commit-ID: FTJlYS3bbTa

--HG--
extra : rebase_source : f3df5f8ebe3f223abc62dc1ae1bf5f7830d63ab8
2016-03-21 11:59:36 +08:00
Daniel Holbert 00d43c6f13 Bug 1257938 part 3: Remove support for the "layout.css.sticky.enabled" pref (so we'll unconditionally support "position: sticky"). r=corey
MozReview-Commit-ID: 9jYcXkUvi8S
2016-03-20 23:06:53 -07:00
Daniel Holbert 42d59af359 Bug 1257938 part 2: Remove separation between test_position_sticky.html & its helper-file, now that it doesn't need to tweak a pref. r=corey
MozReview-Commit-ID: 7aUlaBP1OK
2016-03-20 23:06:42 -07:00
Daniel Holbert 0a77fd87dd Bug 1257938 part 1: Adjust automated tests to assume position:sticky is unconditionally supported. r=corey
MozReview-Commit-ID: IfQatzWq7q5
2016-03-20 23:05:34 -07:00
Ehsan Akhgari a36acab5c8 Bug 1256178 - Drop the moz prefix from the MozCSSKeyframeRule and MozCSSKeyframesRule interfaces; r=bzbarsky 2016-03-15 10:23:01 -04:00
L. David Baron 8c5857d870 Bug 1256500 - Root style contexts before calling ApplyStyleFixups. r=heycam
MozReview-Commit-ID: 8P4AyTCvhmW
2016-03-14 20:26:53 -07:00
Morris Tseng 0f88c1a15b Bug 594933 - Part 2: Add support for calc() to line-height. r=dbaron
--HG--
extra : commitid : ISfJfHKpK5Z
2016-03-15 10:37:37 +08:00
Morris Tseng 99b819272d Bug 594933 - Part 1: Let calc() supports number. r=dbaron
--HG--
extra : commitid : HWZIwem6z6u
2016-03-15 10:37:37 +08:00
L. David Baron 89ad8d0c53 Bug 1142531: Check more bits in nsStyleContext::MoveTo assertion. r=heycam
MozReview-Commit-ID: 455suOkmdj7
2016-03-14 10:27:05 -07:00
L. David Baron a1dea9b4fc Bug 1251797 - Don't fault struct out of rule tree if all of the potential physical property destinations already have a winning value in the cascade. r=heycam
I believe this is useful for cases like having logical properties in the
UA style sheet that are commonly overridden (e.g., margins on lists).

MozReview-Commit-ID: KxojbfMYq0f
2016-03-14 10:27:05 -07:00
L. David Baron c54f49142c Bug 649142 followup: Correct #undef. No review.
MozReview-Commit-ID: BjkVBufjlBQ
2016-03-14 10:27:04 -07:00
Ryan VanderMeulen da1885e860 Merge inbound to m-c. a=merge 2016-03-12 15:23:38 -05:00