Jonathan Kew
cd6fcd068a
Bug 1321022 pt 4 - Implement CSS parsing of the font-variations-setting property, storing the value into nsFont. r=dholbert
2016-12-03 12:18:36 +00:00
Xidorn Quan
5aeb2aaa48
Bug 1310404 part 2 - Convert SetStyleimageRequest to CreateStyleImageRequest. r=heycam
...
MozReview-Commit-ID: 45CIqA3ppw1
--HG--
extra : rebase_source : aa6733959242264cfcf713dfd673ea6473cb4e5c
2016-11-30 17:03:30 +11:00
Xidorn Quan
cd34f386cd
Bug 1310404 part 1 - Convert SetImageRequest to CreateImageRequest. r=heycam
...
MozReview-Commit-ID: JEzRpSMJ6XY
--HG--
extra : rebase_source : 10f5a7580f3ef0ed866728683a88b8b45195140e
2016-12-01 13:40:00 +11:00
Phil Ringnalda
4f2b77776e
Merge m-c to m-i
...
MozReview-Commit-ID: IQH3p0Fs2su
2016-11-29 19:32:37 -08:00
Phil Ringnalda
ef3cede9a5
Merge m-i to m-c, a=merge
...
MozReview-Commit-ID: DAm5uRF7n91
2016-11-29 19:28:12 -08:00
Hiroyuki Ikezoe
1ef4ddc756
Bug 1289701 - Find the root style context by walkng up the style context tree instead of calling ResolveStyleFor or getting it from root element's primary frame. r=dbaron
...
The only call site of CalcLengthWith() with a null style context is
CalcLengthWithInitialFont(). CalcLengthWithInitialFont() calls
CalcLengthWith() with a valid nsStyleFont and aUseProvidedRootEmSize
true, so we can get the rem unit font size from the nsStyleFont when called
from CalcLengthWithInitialFont().
MozReview-Commit-ID: A9LKfQEozaB
2016-11-30 07:46:27 +09:00
Jeremy Chen
acdd7e353f
Bug 1320239 - use nscoord instead of nsStyleCoord for outline-width. r=heycam
...
MozReview-Commit-ID: CaM12OvYeSW
--HG--
extra : rebase_source : 4147f2422257100bc43f988b9b5f667709fae8c4
2016-11-29 20:08:08 +08:00
Jeremy Chen
7e8439ba23
Bug 1320239 - use nscoord instead of nsStyleCoord for -webkit-text-stroke-width. r=heycam
...
MozReview-Commit-ID: 94fL7YgZqCl
--HG--
extra : rebase_source : ad651ab9270a9e19a21401b81745808cc7a8a74b
2016-11-29 20:08:08 +08:00
Jeremy Chen
8679794758
Bug 1320239 - use ComputeLineWidthValue helper to set border-width. r=heycam
...
MozReview-Commit-ID: At5du5sOyXU
--HG--
extra : rebase_source : da96fbd3e657bf65a864eb1b3630b8f1a9636b6a
2016-11-29 20:08:08 +08:00
Jeremy Chen
cf3e7a4295
Bug 1320239 - use ComputeLineWidthValue helper to set column-rule-width. r=heycam
...
MozReview-Commit-ID: 63wXy4TTXIs
--HG--
extra : rebase_source : a7f7bae1ad7b18a15f2fd52161920eaac43c6d01
2016-11-29 20:08:08 +08:00
Jeremy Chen
9e64ed51d8
Bug 1320239 - create ComputeLineWidthValue helper function for line-width computed values. r=heycam
...
This is the first patch which creates a helper function to compute a line-width
value to an absolute length. With this helper, we could share the computation
for other line-width value properties, e.g., border-width, column-rule-width.
MozReview-Commit-ID: GnsmzGl5KBo
--HG--
extra : rebase_source : efe7c253b07c7d15531106f841383bd8a5ad463a
2016-11-29 20:08:07 +08:00
Thomas Wisniewski
390c3bda9a
Bug 943918 - Part 1: style system support for tab-size:<length> and tab-size:<number>. r=heycam
2016-11-24 23:23:14 -05:00
Nathan Froyd
2ebbd09068
Bug 1320752 - remove mozilla/Function.h; r=gerald
...
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Sebastian Hengst
f6618cb892
Backed out changeset 8a6c538cf61a (bug 943918) for failing own test tab-size-length.html on at least Windows 8 x64 opt+debug and OS X debug. r=backout
2016-11-28 00:41:19 +01:00
Thomas Wisniewski
ae1257b378
Bug 943918 - Part 1: style system support for tab-size:<length> and tab-size:<number>. r=heycam
2016-11-24 23:23:14 -05:00
Bobby Holley
f8c9d884fc
Bug 1317016
- Basic infrastructure for RestyleHint-driven traversal. r=emilio
...
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Jonathan Kew
9139bdb856
Bug 1320474 - Allow <string> in addition to <custom-ident> (excluding css-wide keywords and 'none') for css-animation keyframe names. r=birtles
2016-11-29 12:58:44 +00:00
Cameron McCormack
5bb56a7bb5
Bug 1310560 - Part 1: Make cursor use nsStyleImageRequest for url() value storage. r=xidorn
...
MozReview-Commit-ID: JU76TS3kxbz
--HG--
extra : rebase_source : 37f9538fca48c6bf90495bf44582c192977658e7
2016-11-21 14:34:11 +08:00
Phil Ringnalda
61baa2aa9a
Merge m-i to m-c, a=merge
...
MozReview-Commit-ID: A3wgReQAalj
2016-11-17 19:21:20 -08:00
Vincent Lequertier
15d1386c74
Bug 1312155 - Move border-width constants out of nsPresContext; r=heycam
2016-11-16 10:11:00 +01:00
Jonathan Chan
982c8beddd
Bug 1293743 - Part 2: Rename references to 'number' in CSSCalc and related code to coefficient. Introduce coefficient typedef. r=dholbert
...
"For each leaf in the calc() expression, ComputeCalc will call either
ComputeNumber (when the leaf is the left side of a Times_L or the right
side of a Times_R or Divided) or ComputeLeafValue (otherwise)."
A future patch in this series adds support for evaluating pure-integer calc()s.
We rename ComputeNumber to ComputeCoefficient and introduce a coefficient_type
typedef so that coefficients can be integers. We don't want to leave it as
'number' because that is confusing (e.g. CSS <number>s are float values).
We also rename NumbersAlreadyNormalizedCalcOps to
FloatCoeffsAlreadyNormalizedCalcOps, and expect AppendCoefficient in the
template given to SerializeCalc instead of AppendNumber.
This requires some renames in nsCSSValue and nsRuleNode.
I would split this into a separate 'fully-automated' patch, except that it's so
few renames and it feels bad to add the comments separately.
We also have to add |typedef float coeff_type| to two CalcOps implementations
in nsRuleNode because they multiply-inherit from two classes that define
coeff_type as float.
MozReview-Commit-ID: 1ZmBLsGr6hK
--HG--
extra : rebase_source : 219b97c65794c404680a36607506dde66b11e4f4
2016-10-17 20:49:17 -04:00
cku
62cf65bb77
Bug 1298774 - followup: fix compile error by disable mask-as-shorthand. r=me
...
MozReview-Commit-ID: 99is2akQI3k
--HG--
extra : source : 384181056c35c5c90d38926d5e9f928965eff9a4
2016-11-09 18:54:44 +08:00
Cameron McCormack
0eb23cdd2c
Bug 1310463 - Part 1: Make list-style-image use nsStyleImageRequest for storage. r=xidorn
...
MozReview-Commit-ID: ENTo2HNbBpN
* * *
[mq]: x
MozReview-Commit-ID: 2SNJ4bXYpTH
2016-11-03 09:40:53 +08:00
Cameron McCormack
356666065d
Bug 1288302 - Part 5.1: Merge Track and Lock flags so we don't set them together. r=xidorn
...
MozReview-Commit-ID: ASSWXvsczvc
2016-11-02 16:58:32 +08:00
Cameron McCormack
32c930ba08
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-11-02 16:58:32 +08:00
Cameron McCormack
195dbb2d2a
Bug 1288302 - Part 3: Add nsStyleImageRequest. r=xidorn,bholley
...
MozReview-Commit-ID: F763Dv0Nfzp
2016-11-02 16:58:31 +08:00
Cameron McCormack
2c0304b286
Bug 1288302 - Part 2: Pass ImageTracker to style struct image tracking methods instead of nsPresContext. r=xidorn
...
MozReview-Commit-ID: AsGfXliHLRf
2016-11-02 16:58:31 +08:00
Cameron McCormack
13f86cd932
Merge backout.
2016-11-01 08:43:23 +08:00
Cameron McCormack
02f1de5bbd
Back out a0488e9c0024..5ebcedea1fa5 (bug 1288302 and bug 1310463) for Talos RSS regressions.
...
MozReview-Commit-ID: JB5uwDeO0We
2016-11-01 08:42:49 +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
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
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
Adam Velebil
33caf18ccc
Bug 1313565 - Convert NS_STYLE_ORIENT_* to enum class ; r=manishearth,xidorn
...
MozReview-Commit-ID: LHT6Aa2ojlf
--HG--
extra : rebase_source : cad726aee8e14d7ae60b899a76fcd26edb608507
2016-10-28 06:17:20 +02:00
Adam Velebil
389406c473
Bug 1313565 - Convert NS_STYLE_WINDOW_DRAGGING_* to enum class ; r=manishearth,xidorn
...
MozReview-Commit-ID: 7I7Z4q7mLtC
--HG--
extra : rebase_source : 23ce3fddb26424aa42aea93cfdf6fc123926fe18
2016-10-29 10:51:05 +02:00
Adam Velebil
9260566b60
Bug 1313565 - Convert NS_STYLE_USER_MODIFY_* to enum class ; r=manishearth,xidorn
...
MozReview-Commit-ID: IA4bGLgRxd6
--HG--
extra : rebase_source : 6632c53a96df170e8604d65b351f7ee2717ec9ec
2016-10-23 22:41:49 +02:00
cku
705996b473
Bug 1308963 - Part 3. Set initial value of mask-position as (0, 0). r=xidorn
...
MozReview-Commit-ID: DN7q6FrGEMA
--HG--
extra : rebase_source : 294089f79d6925d4c47202b95e270b152054f1e7
2016-10-13 23:13:11 +08:00
cku
412846baa6
Bug 1308963 - Part 1. Set initial value of mask-repeat as repeat. r=xidorn
...
MozReview-Commit-ID: 8VrPiEyKF4n
--HG--
extra : rebase_source : 0203bbfbee0e2622285e4af498553fbec63c4d62
2016-10-13 22:57:10 +08:00
Cameron McCormack
b93ab3109e
Bug 1298774 - Part 9: Remove FragmentOrURL. r=cjku
...
MozReview-Commit-ID: Du10tRgKtQ4
--HG--
extra : rebase_source : 8092f86207b1fd91ba00beb088c894afd374bd56
2016-10-11 14:56:12 +08:00
Cameron McCormack
ccba4f429e
Bug 1298774 - Part 8: Make mask-image use css::URLValueData for url() storage instead of FragmentOrURL. r=cjku
...
MozReview-Commit-ID: 2Xm3IP3SXK0
--HG--
extra : rebase_source : e524bf9a7641a80ef591dc380f4832cbcb5944ba
2016-10-11 14:56:12 +08:00
Cameron McCormack
840196223a
Bug 1298774 - Part 7: Make nsStyleFilter use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
...
MozReview-Commit-ID: FyhH9QG9vYq
--HG--
extra : rebase_source : 300a97e42ae9b27d83e7316e502295c597fad7cd
2016-10-11 14:56:12 +08:00
Cameron McCormack
e07dbc8da6
Bug 1298774 - Part 6: Make SVG marker properties use css::URLValue for storage instead of FragmentOrURL. r=cjku
...
MozReview-Commit-ID: 8OQWmDpP7Ax
--HG--
extra : rebase_source : f372d5d77481bc71d49d0f7446244f6e9162d0ac
2016-10-11 14:56:11 +08:00
Cameron McCormack
a9271aac63
Bug 1298774 - Part 5: Make nsStyleSVGPaint use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
...
MozReview-Commit-ID: CkNcSxVToTL
--HG--
extra : rebase_source : 956149a0d12e7633aca15eb460704926a7db7371
2016-10-11 14:56:11 +08:00
Cameron McCormack
f1dcd6fc45
Bug 1298774 - Part 4: Make ShapeStyleSource use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
...
MozReview-Commit-ID: CQy6ArR48Sp
--HG--
extra : rebase_source : 71203745bca616395daeffe5b47b288b0ce67b0b
2016-10-11 14:56:11 +08:00
Cameron McCormack
b490466d48
Bug 1298774 - Part 2: Rename URLValueData::mLocalURLFlag to match FragmentOrURL::mIsLocalRef naming. r=cjku
...
MozReview-Commit-ID: A9NHxMfPRSF
--HG--
extra : rebase_source : 702e3eaecb0aaf8b4c7514f626aec8049a11b09b
2016-10-11 14:56:11 +08:00
Brad Werth
b9a57c7d02
Bug 1304012 -- Part 1: Don't bother resolving align-self/justify-self 'auto' value for getComputedStyle & inheritance. r=dholbert
...
MozReview-Commit-ID: 8LMn8oQhUz8
2016-09-27 14:45:51 -07: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
Xidorn Quan
2f279e5ef8
Bug 1306214 part 3 - Remove -moz-use-text-color from Gecko. r=heycam
...
MozReview-Commit-ID: EEYCB5jUH9L
--HG--
extra : rebase_source : ce6fcfdd573e1986a07fdae84106274bd2ae2495
2016-09-29 17:47:22 +10:00
Xidorn Quan
e92fe57924
Bug 1266621 part 5 - Convert border-color to store complex color. r=heycam
...
MozReview-Commit-ID: 19sl9f3EVgt
--HG--
extra : rebase_source : fba71e92cf7d23728a7c963ae12027e7aee7e986
2016-09-27 20:16:35 +10:00