Boris Chiou
6d0881c481
Bug 1272549 - Part 2: Compute distance for basic 2d & 3d transform functions for matched transform lists. r=birtles
...
Implement these transform functions for matched transform lists:
1. translate3d
2. scale3d
3. skewXY (and skewX, skewY, skew)
4. rotateX, rotateY, rotateZ, rotate, and rotate3d with the same
direction axis.
MozReview-Commit-ID: 94so7VGHqc8
--HG--
extra : rebase_source : d68488e3b6e87d72702c348fa0495a4d0c17ab85
2016-09-29 17:33:24 +08:00
Boris Chiou
29bd946764
Bug 1272549 - Part 1: Reorder some static functions. r=birtles
...
We also need these functions in ComputeDistance:
1. AddTransformTranslate
2. AddCSSValueAngle
3. TransformFunctionsMatch
So move them up.
MozReview-Commit-ID: 8mSFEOgUsLT
--HG--
extra : rebase_source : a58107f50e6636d4aeec93e086490cda09027ded
2016-09-29 17:51:55 +08:00
Xidorn Quan
a899c1a9ac
Bug 1312338 part 2 - Use nsACString to pass string parameters in binding functions. r=manishearth
...
MozReview-Commit-ID: BRKZBQJCrMQ
--HG--
extra : source : c0a7498ea402f1db4aca1c05508f577bacf21f0c
2016-10-25 10:19:45 +11:00
Xidorn Quan
0e7a21831d
Bug 1311598 part 4 - Split binding types from ServoBindings.h into ServoBindingTypes, and merge ServoBindingHelpers into it. r=heycam
...
MozReview-Commit-ID: CKvBMOapqlI
--HG--
extra : rebase_source : 83531296b4b8a8a9c54f03953cab2a48e8c6cbad
extra : source : e1c6c680a4718619e1a4cbecd84cccac4101d69b
2016-10-24 20:16:46 +11:00
Xidorn Quan
a7771e9c76
Bug 1311598 part 2 - Declare Servo_GetStyle* functions in nsStyleContext.h. r=heycam
...
MozReview-Commit-ID: 5i3rX4ateH3
--HG--
extra : rebase_source : f541b11b9eeb5b76be99277300faf3cbfc777eca
extra : source : c600b8ff90d4d9f6e5a4aefcc4230842da22615e
2016-10-24 20:16:46 +11:00
Ryan VanderMeulen
a57d15ff6a
Merge inbound to m-c. a=merge
2016-10-23 13:16:27 -04:00
Adam Velebil
e7dddd42f0
Bug 1312173 - Convert NS_STYLE_USER_INPUT_* to an enum class; r=manishearth,xidorn
...
MozReview-Commit-ID: sYiJrZryrA
--HG--
extra : rebase_source : dbb7bae56bea6203176097af8de119cae0a6391c
2016-10-23 00:08:18 +02:00
Manish Goregaokar
1feab4fa75
Bug 1311959 - Remove marker-offset; r=tromey,xidorn
...
MozReview-Commit-ID: 72Fse0z1BiY
--HG--
extra : rebase_source : 45743ae282b861fc84f3462d1e49abde9ca0997f
2016-10-21 15:34:46 +05:30
Dão Gottwald
998303abfe
Bug 582951 - Use CSS outline for checkbox and radio button focus indicator. r=dbaron,jimm
2016-10-22 08:28:53 +02:00
Daniel Holbert
f83c4b8ad4
Bug 1309119 part 4: Make the scrollframe, button, & fieldset anonymous inner boxes inherit -webkit-box container CSS properties. r=mats
...
(We already do this for the properties that we use to configure modern flexbox.)
MozReview-Commit-ID: KStEZ42FIqB
2016-10-20 13:23:52 -07:00
Cameron McCormack
5948e5280e
Bug 1310463 - Part 3: Add FFI functions for setting list-style-image. r=xidorn
...
MozReview-Commit-ID: LNK4UbfMfRk
---
layout/style/ServoBindings.cpp | 60 +++++++++++++++++++++++++++++++++---------
layout/style/ServoBindings.h | 9 +++++++
2 files changed, 57 insertions(+), 12 deletions(-)
2016-10-20 08:53:45 +08:00
Cameron McCormack
17f39f6df6
Bug 1310463 - Part 2: Simplify nsComputedDOMStyle::DoGetListStyleImage a little. r=xidorn
...
MozReview-Commit-ID: Kxbxu8mZcQs
---
layout/style/nsComputedDOMStyle.cpp | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
2016-10-20 08:53:45 +08:00
Cameron McCormack
e17f336f65
Bug 1310463 - Part 1: Make list-style-image use nsStyleImageRequest for storage. r=xidorn
...
MozReview-Commit-ID: ENTo2HNbBpN
---
layout/style/nsRuleNode.cpp | 8 ++++----
layout/style/nsStyleStruct.cpp | 15 +++++++++++++--
layout/style/nsStyleStruct.h | 18 ++++++------------
3 files changed, 23 insertions(+), 18 deletions(-)
2016-10-20 08:53:45 +08:00
Cameron McCormack
3b86d2992f
Bug 1288302 - Part 6: Add FFI function to set nsStyleImageRequest values. r=xidorn
...
MozReview-Commit-ID: 448vAeDiKX7
2016-10-20 08:36:26 +08:00
Cameron McCormack
74fdb2a2bf
Bug 1288302 - Part 5: Make nsStyleImage use nsStyleImageRequest. r=bholley
...
This makes background-image, mask-image and border-image settable
from Servo.
Since imgRequestProxy resolution in nsStyleImages can now happen later than
at computed value setting time, and that resolution can fail,
nsStyleImage::GetImageData() might now return null. So all of the users of
nsStyleImage now null check its result.
MozReview-Commit-ID: FMRUrC3SfOs
2016-10-20 08:36:25 +08:00
Cameron McCormack
2cd316fd59
Bug 1288302 - Part 4: Perform final main thread work on style structs sourced from ServoComputedValues. r=xidorn
...
MozReview-Commit-ID: D6nQQ3yI4sx
2016-10-20 08:36:23 +08:00
Cameron McCormack
2216900ad3
Bug 1288302 - Part 3: Add nsStyleImageRequest. r=xidorn,bholley
...
MozReview-Commit-ID: F763Dv0Nfzp
2016-10-20 08:36:21 +08:00
Cameron McCormack
0387dc2875
Bug 1288302 - Part 2: Pass ImageTracker to style struct image tracking methods instead of nsPresContext. r=xidorn
...
MozReview-Commit-ID: AsGfXliHLRf
2016-10-20 08:36:16 +08:00
Cameron McCormack
9cc773db64
Bug 1288302 - Part 1: Make css::ImageValue constructable OMT. r=xidorn
...
MozReview-Commit-ID: 9J2E7VrCWJ1
2016-10-20 08:36:14 +08:00
Carsten "Tomcat" Book
036a7c4324
merge mozilla-inbound to mozilla-central a=merge
2016-10-19 17:02:38 +02:00
Shing Lyu
d2c96de863
Bug 1310117 - Implement Stylo CSS filter except url and drop-shadow. r=manishearth
...
MozReview-Commit-ID: HoF7KZdfuGe
--HG--
extra : rebase_source : 29f490a0e6055c538c1d5602bdc7f9c49088c88b
2016-10-17 14:16:16 +08:00
Ehsan Akhgari
c31db08864
Backout bug 1309867 for test failures
2016-10-18 11:35:07 -04:00
Bill McCloskey
3697917fc4
Bug 1309867 - Part 2: Lazily create FontFace::mLoaded; r=heycam
2016-10-18 09:39:27 -04:00
Ehsan Akhgari
225c6de9ba
Bug 1309867 - Part 1: Create FontFaceSet's ready promise lazily; r=heycam
...
This should help avoid calling into the JS engine in the middle of
painting.
2016-10-18 09:39:27 -04:00
Benjamin Smedberg
fe7d577d2e
Bug 1307445
part B - remove the gecko code that support :moz-type-unsupported and :moz-type-unsupported-platform, r=qdot
...
MozReview-Commit-ID: Dybppkfrb7E
--HG--
extra : rebase_source : 8dedfafb0edefa54b4a73a0f0204be46f989c87f
2016-10-06 13:25:56 -04:00
Xidorn Quan
403c55a07b
Bug 1309109 followup - Fix bustage.
...
MozReview-Commit-ID: 7n2YM7JjRlw
2016-10-18 16:11:15 +11:00
Xidorn Quan
e49cb9930b
Bug 1309109 part 7 - Remove the extra level of GeckoDeclarationBlock. r=manishearth,mystor
...
MozReview-Commit-ID: 2TzqrAWbaeD
--HG--
extra : source : fdd8dfc2cbe94dac981783c41c92188398c2f27f
2016-10-18 15:29:03 +11:00
Manish Goregaokar
e110cbadab
Bug 1309109 part 6 - Declare nullable strong borrowed ref type for RawServoDeclarationBlock. r=mystor
...
MozReview-Commit-ID: 2SDPK6lp4ue
--HG--
extra : source : 96f1ccc5f0b60b92d56de0ff75be011ac52cbb6f
2016-10-18 15:29:03 +11:00
Xidorn Quan
05ef8466c6
Bug 1309109 part 5 - Store ServoDeclarationBlock rather than RawServoDeclarationBlock in nsAttrValue. r=heycam
...
MozReview-Commit-ID: HWqgjwif1qF
--HG--
extra : source : cf3b1baff3d1d6233c72e32cf01cd28a2b344ebf
2016-10-18 15:29:03 +11:00
Xidorn Quan
9f07f8de0b
Bug 1309109 part 4 - Add ServoDeclarationBlock class. r=heycam
...
MozReview-Commit-ID: 8I9sbt0oMhx
--HG--
extra : source : b039f929a98ad954d83fab930806dc3fd6ce9762
2016-10-18 15:29:03 +11:00
Xidorn Quan
00100a750f
Bug 1309109 part 3 - Rename ServoDeclarationBlock to RawServoDeclarationBlock. r=heycam
...
So that the new subclass of DeclarationBlock could just be
ServoDeclarationBlock.
MozReview-Commit-ID: 55KgfmWmmyU
--HG--
extra : source : 27c55355da341fce112b15d966eb9b2fa2c8834b
2016-10-18 15:29:03 +11:00
Xidorn Quan
dc967ae16a
Bug 1309109 part 2 - Move immutable and container from css::Declaration to a new base class. r=heycam
...
MozReview-Commit-ID: 9gCrBrK70Z3
--HG--
extra : source : d8df818860eb827fecef2e03da27f18513e78179
2016-10-18 15:29:03 +11:00
Xidorn Quan
81f82ea36e
Bug 1309109 part 1 - Change underlying type of StyleBackendType to uint8_t. r=heycam
...
MozReview-Commit-ID: B6TmOq6elfs
--HG--
extra : source : f7771920c448c382f215356275cb321a6943972e
2016-10-18 15:29:03 +11:00
Xidorn Quan
2e8b536eff
Bug 1309868 part 5 - Use const pointer in C++ side for immutable borrowed reference. r=manishearth,heycam
...
MozReview-Commit-ID: 3aSOgckBtS7
--HG--
extra : source : 75117a5bef6ed1bd81864059f45429838686b2c7
2016-10-18 15:29:03 +11:00
Xidorn Quan
be6a724c94
Bug 1309868 part 4 - Use mutable reference for Gecko_GetNextStyleChild. r=heycam
...
MozReview-Commit-ID: FIrh34PSOZy
--HG--
extra : source : 4ba2850ebc605a8e006f0331a06d59d515c115b2
2016-10-18 15:29:03 +11:00
Xidorn Quan
fe470c1653
Bug 1309868 part 3 - Make NonOwningStyleContextSource store const ServoComputedValues. r=heycam
...
MozReview-Commit-ID: G84fYXLbQyt
--HG--
extra : source : 85ba0fdfc05ec11dd08eba5a1b1f6a9d7e8acd8f
2016-10-18 15:29:03 +11:00
Xidorn Quan
3c3f76a8e1
Bug 1309868 part 2 - Use const nsIContent pointer in some layout utils. r=heycam
...
MozReview-Commit-ID: 5GMave4FS48
--HG--
extra : source : 60d203eaa11b53f14a8c3736498f991d8e3615b1
2016-10-18 15:29:03 +11:00
Xidorn Quan
1cbd4cb699
Bug 1309868 part 1 - Use const nsIContent pointer in some DOM utils. r=bholley
...
MozReview-Commit-ID: H4g2VbWJUba
--HG--
extra : source : 77e67e5163ac9c450e18d4c4e5b690cee5d3f1a3
2016-10-18 15:29:03 +11:00
Bill McCloskey
9fd5d0bea3
Bug 1309867 - Part 2: Lazily create FontFace::mLoaded; r=heycam
2016-10-18 16:19:01 -07:00
Ehsan Akhgari
97a4ddfbdf
Bug 1309867 - Part 1: Create FontFaceSet's ready promise lazily; r=heycam
...
This should help avoid calling into the JS engine in the middle of
painting.
2016-10-18 16:19:00 -07:00
Carsten "Tomcat" Book
d6850a3a86
merge mozilla-inbound to mozilla-central a=merge
2016-10-17 11:19:02 +02:00
JerryShih
c6e555cb0b
Bug 1295456 - Update Gecko tests for css-color-4 color function changes. r=dholbert
...
--HG--
extra : rebase_source : 8040d61d2a7130e3014676a78f75199509abd236
extra : histedit_source : f017c1ba5e2adeb810d95aaa15fd92cf1a9ec016
2016-10-16 03:15:36 +08:00
JerryShih
03fec15d6f
Bug 1295456 - Use author-specified css color function name for css value serialization. r=dholbert
...
If the color is fully opaque, omit the 'a' suffix of color function name (e.g. just use 'rgb' or 'hsl').
Otherwise, show the original author-specified function name for serialization.
MozReview-Commit-ID: 4XgkvV2jDRC
--HG--
extra : rebase_source : 01151bc71e1158e206f924c7a1a51429a7d7f321
extra : histedit_source : 99cd9c8145a4166daba76b985417c2c22dff1fbf
2016-10-16 03:15:36 +08:00
JerryShih
d2351f91bd
Bug 1295456 - Add tests for css-color-4 color function changes. r=dholbert
...
MozReview-Commit-ID: 61aMI3ZkLGi
--HG--
extra : rebase_source : bfbfdc7a8dd1a9a7b86358fb3e855bcc1ce78422
extra : histedit_source : 0703740a5fd9248b43fa78c2aff85832740bd42c
2016-10-16 03:15:36 +08:00
JerryShih
fcb391b776
Bug 1295456 - Remove now-unused single-arg ParseColorOpacity functions from nsCSSParser. r=dholbert
...
--HG--
extra : rebase_source : 8af5f29f98e0f0bfef2742133bf7c190d4e90848
extra : histedit_source : 67ae5d1a526da2128f8be461f483f99d87563029
2016-10-16 03:15:36 +08:00
JerryShih
158cde6c2f
Bug 1295456 - Support <angle> value for hue component in CSS hsl() color function. r=dholbert
...
MozReview-Commit-ID: EYhbAEOlpLm
--HG--
extra : rebase_source : 3b898452000ea5f0f0f1819dac2d93d0a6d1c426
extra : histedit_source : a929cf0e25b0035218c4ea61abfc9135a05def15
2016-10-16 03:15:36 +08:00
JerryShih
ce0369e892
Bug 1295456 - Change CSS color function hsl() to be an alias of hsla() and support css-color-4 comma-less expression. r=dholbert
...
MozReview-Commit-ID: 6jBTVVOxwiP
--HG--
extra : rebase_source : 797fb4704251f0587cce06f7e81f0a5c017b737e
extra : histedit_source : 826f4cf26314242e89cb503047c2757a27ec507f
2016-10-16 03:15:36 +08:00
JerryShih
7e52f68ada
Bug 1295456 - Change CSS color function rgb() to be an alias of rgba() and support css-color-4 comma-less expression. r=dholbert
...
--HG--
extra : rebase_source : fcd36c9600d2b30e8e409351a84b015b45309c90
extra : histedit_source : b216feceadcf70bd9c0172eea6354308926993ff
2016-10-16 03:15:36 +08:00
JerryShih
a0a437f47c
Bug 1295456 - Support percentage opacity value in CSS color functions. r=dholbert
...
--HG--
extra : rebase_source : 79bf692da80a5ea861482e9bc021834f60b6d81a
extra : histedit_source : 384f41d812fecf511be8b319d91a687e9c02673d
2016-10-16 03:15:35 +08:00
Wes Kocher
727d0de706
Merge m-c to inbound, a=merge CLOSED TREE
2016-10-14 14:51:44 -07:00