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

1136 Коммитов

Автор SHA1 Сообщение Дата
Boris Chiou af4598f9ae Bug 1248340 - Part 4: Implement Frames in the style system. r=dholbert
Use eCSSUnit_Function to store the frames timing function. Also, add one more
css keyword: frames.
The following changes are included in this:
1. Parser changes.
2. Serialization.
3. Computation in nsRuleNode.
4. Invalid and other values in property_database.js

MozReview-Commit-ID: 887QcXHQ2pU

--HG--
extra : rebase_source : ca0135380ea432cb69c4f36cf502d404e04999e5
2017-02-24 14:50:08 +08:00
Neerja Pancholi f62798efe1 Bug 1339298 - Add boilerplate code for CSS3 multicol column-span parsing and define pref 'layout.css.column-span.enabled' to toggle it. r=dholbert
MozReview-Commit-ID: 6aSlRhcKm8i

--HG--
extra : rebase_source : 5028c7fb8ea5e4de42e658729b71d7e7af46a43d
2017-02-13 16:57:33 -08:00
jeremychen@mozilla.com 8638420acc Bug 276079 - parse and compute CSS text-justify property. r=xidorn
MozReview-Commit-ID: K3bh0H2SPnE

--HG--
extra : rebase_source : c483f3f1cb7eb024b1851ad1df6b6562630a2fc5
2017-03-01 20:58:25 +08:00
Neerja Pancholi 5c9853e95f Bug 1339619 - Refactor parsing code for '-moz-text-size-adjust' to use the (more conventional) keyword table approach to calculate computed style. r=dholbert
MozReview-Commit-ID: 2mawqnlUh8t

--HG--
extra : rebase_source : c2b24d7c03a0c4f7ad8db94ab7bf98b05607defc
2017-02-16 13:27:16 -08:00
cku cfc6e5755f Bug 1336905 - Part 1. Remove StyleShapeSource's template argument. r=heycam,TYLin
MozReview-Commit-ID: FHTwGyXHsce

--HG--
extra : rebase_source : c043e4790bc2c84e4f3735a95c8ef0d9aa268986
extra : source : fb3c04effbd191767b1ff3e46c3c2d416ac8ee37
2017-02-21 23:26:17 +08:00
L. David Baron e2074ab1a5 Bug 1340593 - Set NS_STYLE_HAS_CHILD_THAT_USES_RESET_STYLE from the WalkRuleTree codepath too. r=heycam 2017-02-19 23:10:42 -08:00
Daniel Holbert f8a884b751 Bug 1339546 part 2: Make layout/style/*.cpp include corresponding .h file as the first header. r=xidorn
MozReview-Commit-ID: 2rZ9z0BgRvN

--HG--
extra : rebase_source : d046a915283dd45ec8ff39f1b63da8ae59d3fac8
2017-02-14 11:23:11 -08:00
Iris Hsiao 57e2751fbd Backed out 4 changesets (bug 1335876) for stylo tc build bustage
Backed out changeset b870f9671bcd (bug 1335876)
Backed out changeset 3e160602fc1a (bug 1335876)
Backed out changeset 9d290cbe5aad (bug 1335876)
Backed out changeset 6e447c3fcd79 (bug 1335876)
2017-02-15 10:20:11 +08:00
cku b931dde44d Bug 1335876 - Part 1. Declare mTransformBox as StyleGeometryBox. r=heycam
MozReview-Commit-ID: 9fcHkDtNHhL

--HG--
extra : rebase_source : 8c5f80c261f178db970bb9bf0615d394da2560f5
2017-02-02 13:57:49 +08:00
Carsten "Tomcat" Book d49b3f08d6 Backed out changeset fb3c04effbd1 (bug 1336905) for bustage in stylo builds 2017-02-14 11:07:17 +01:00
cku 80f22f74f4 Bug 1336905 - Part 1. Remove StyleShapeSource's template argument. r=heycam,TYLin
MozReview-Commit-ID: FHTwGyXHsce

--HG--
extra : rebase_source : e1346a2ec89d023b2aa0c2cd5ced94529b7f9067
2017-02-06 15:50:22 +08:00
Manish Goregaokar 5b55368eda Bug 1330041 - Basic handling framework for presentation attributes in Stylo, with handling for font-size and color; r=bz,emilio
This introduces a basic framework for servo's style system to be able
to query the style of presentation attributes which it can then insert
into the cascade. It uses that framework to implement the size and
color attributes on <font>.

There are a number of improvements that can be done on top of this:

 - Implement all other properties
 - Abstractify the ruledata parameter of the mappers using templates or virtual dispatch so that it can be a Servo decl block instead
 - Implement aforementiond abstraction over Servo decl blocks (this obsoletes the code in the first item above, so it might just be better to skip that and directly do this)
 - Replace uses of nsHTMLStyleSheet with an abstract base class containing common elements between Servo and Gecko

I'd prefer for these to be done in separate steps.

MozReview-Commit-ID: GO60qfeZOfl

--HG--
extra : rebase_source : 516d369a8627e413983361aaf85ccb7132b0a06c
2017-01-19 15:56:53 -08:00
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