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

1124 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack f27506cc5a Bug 1315155 - Part 2: Make nsStyleContentData use nsStyleImageRequest for images. r=xidorn
MozReview-Commit-ID: 80gQBdNrGq1
2016-10-21 08:14:56 +08:00
Cameron McCormack e50e656e7d Bug 1315155 - Part 1: Encapsulate nsStyleContentData. r=xidorn
MozReview-Commit-ID: LfEMxyM5meF
2016-10-20 10:22:46 +08:00
Ting-Yu Lin 160ed71c4e Bug 1320014 Part 11 - Convert NS_FULL_TO_HALF_CORNER to a constexpr function. r=mats
Because the new function checks types, we need to change the fullCorner type
in nsComputedDOMStyle::GetEllipseRadii() and
StyleAnimationValue::ExtractComputedValue() from uint8_t to |Corner| to fix
build error.

MozReview-Commit-ID: 5NuFE3yA2QD

--HG--
extra : rebase_source : 8f94209b24bd909839358cd502f462edb9ce3116
2017-01-05 14:59:17 +08:00
Jeremy Chen f735dd2d2c Bug 1328540 - convert NS_STYLE_HYPHENS_* to an enum class. r=xidorn
MozReview-Commit-ID: BwTzbA29Y3H

--HG--
extra : rebase_source : fc07d2c881a8ccc618fd1776d1e977c051b0032f
2017-01-04 23:55:16 +08:00
Xidorn Quan c26fcf05e4 Bug 1326209 part 2 - Change background-color to use complex color. r=dholbert
MozReview-Commit-ID: 1n3TC3CVY7U

--HG--
extra : rebase_source : 6b402a2493f58d114a9898a4d556587fdc98a9ee
2016-12-30 02:03:29 +11:00
Xidorn Quan b93e776ac9 Bug 894245 part 2 - Reject unknown enum color in CSS parser. r=dholbert
MozReview-Commit-ID: 6jfNESnFde5

--HG--
extra : rebase_source : dbe0b7f1eb45a59ef4df67ba5f1d75da1892cb17
2016-12-30 14:52:10 +11:00
Xidorn Quan 262d2eb93a Bug 1063162 part 2 - Implement caret-color property. r=dholbert
MozReview-Commit-ID: DH7CX1d477R

--HG--
extra : rebase_source : 29c57f59a3073a05beed1c4160e2fd74d3e29617
2016-12-22 11:04:15 +11:00
Xidorn Quan 51c845d50b Bug 1063162 part 1 - Add auto value support to StyleComplexColor. r=birtles
MozReview-Commit-ID: E6EFICyY3dh

--HG--
extra : rebase_source : 8f0a037a8a7a460c46e70af5f54a899df212fed5
2016-12-22 11:03:37 +11:00
Mats Palmgren 69e8c00577 Bug 1322191 part 1 - [css-display] Add style system support for display:flow-root. Enable it by default. r=dholbert 2016-12-23 19:11:03 +01:00
cku 286c728e90 Bug 1311270 - Part 3. Replace {bg|mask}-origin/{bg|mask}-clip constants by StyleGeometryBox.
MozReview-Commit-ID: DYokhDa9fFQ

--HG--
extra : rebase_source : a187c3f9519efb8b031913ce0dbf643c05232fa2
2016-11-22 15:30:01 +08:00
Ting-Yu Lin 6c29f00e11 Bug 1325006 Part 2 - Convert NS_RADIUS_* to StyleShapeRadius enum class. r=heycam
The "default" case in EnumerationToLength() is not needed anymore because
StyleShapeRadius is an enum class, which cannot have other values.

MozReview-Commit-ID: GHkPAXXxqGZ

--HG--
extra : rebase_source : 8bc51d6f21cd70688d3b968bcd0a5ef12a6e3f47
2016-12-03 16:13:49 +08:00
Xidorn Quan 47dc891b40 Bug 1311870 - Change property id of moz-prefixed properties to match their name. r=heycam
MozReview-Commit-ID: DkrMkzMq5qM

--HG--
extra : source : 8d502b58d6124335dcf54146306628644252dfb6
extra : amend_source : f40b0e1629e6c0fcb1c1c595d7787e18e0271924
2016-12-21 18:16:50 +11:00
Hiroyuki Ikezoe 1ce9acc2f9 Bug 1289701 - Add a note about the possibility of reentrant call of nsStyleSet::GetContext(). r=dbaron
MozReview-Commit-ID: DQVQMERvTkk
2016-12-15 06:49:02 +09:00
Cameron McCormack f5bb6f2dfd Bug 1322185 - Rename some StyleDisplay enum values for consistency. r=xidorn
MozReview-Commit-ID: K27LmXKWNdk
2016-12-05 21:36:28 -10:00
Jonathan Kew 1c18c32f59 Bug 1321022 pt 4.2 - Fix up some nits in existing font-feature-settings code as per review comments on the new font-variation-settings code. r=dholbert 2016-12-03 12:18:39 +00:00
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