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

163 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack e958203c53 Bug 1366157 - stylo: Implement getDefaultComputedStyle. r=emilio
MozReview-Commit-ID: GKr06ylK4tA

--HG--
extra : rebase_source : 04907d98d62a0b06f7d3753aaedf999b63483a77
2017-05-24 14:37:47 +08:00
Brad Werth 2a2c39ef1d Bug 1339629 Part 4: Uplift CloneFor into StyleSheetInfo, and EnsureUniqueInner into StyleSheet. r=heycam
MozReview-Commit-ID: 4aZJYAsmZ2h

--HG--
extra : rebase_source : 196529a87197a569694428269a3f3244fa25cf38
2017-05-15 16:19:17 -07:00
Phil Ringnalda 30a91cb819 Backed out 6 changesets (bug 1328509) for Windows 7 failures in test_visited_reftests.html
Backed out changeset 8388d8c76fed (bug 1328509)
Backed out changeset 182a88607e08 (bug 1328509)
Backed out changeset 008efac7764b (bug 1328509)
Backed out changeset c2ce10b8bc37 (bug 1328509)
Backed out changeset 65bbc73c87aa (bug 1328509)
Backed out changeset e20d3d5170c2 (bug 1328509)

MozReview-Commit-ID: BSmqdFP1Zom
2017-05-24 22:12:53 -07:00
J. Ryan Stinnett 56b5ec82a0 Bug 1328509 - Wire up visited values in ServoStyleSet::GetContext. r=emilio
Create an extra style context using the visited values (if they exist).  This
mirrors the logic Gecko performs in nsStyleSet::GetContext for visited support.

MozReview-Commit-ID: EiJQXDgz8tX
2017-05-24 21:20:06 -05:00
Brian Birtles 60c808ad43 Bug 1353202 - Add support for iteration composite modes r=hiro
MozReview-Commit-ID: BlmR88fPF6J

--HG--
extra : rebase_source : d57cb6ca20e314374cc5a26caf3d03a1ac71cd26
2017-05-24 11:14:35 +09:00
Hiroyuki Ikezoe 5c43533704 Bug 1362914 - Drop initial values of properties other than font-size and font-family in serialization of canvas font attribute. r=manishearth
According to the canvas spec [1], we must drop initial values other than
font-size and font-family when we serialize canvas font attribute.
As for font-size and font-family, the default values, '10px sans-serif' [2]
are not dropped at all.

[1] https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-font
[2] https://html.spec.whatwg.org/multipage/scripting.html#canvastextdrawingstyles

MozReview-Commit-ID: EyOxzJCQYQl

--HG--
extra : rebase_source : d358a8e97fa7849a320a3619e746a526fe2a8439
2017-05-20 07:38:26 +09:00
Phil Ringnalda ad7f3e6ef3 Backed out changeset dd3a293cf053 (bug 1366247) for making Stylo build, but not run
MozReview-Commit-ID: JcbwZSt05cN
2017-05-21 12:55:08 -07:00
Xidorn Quan 4df8cc5fe8 Bug 1366247 - Add sugar for already_AddRefed and use it for conversion between Atom and nsIAtom pointer. r=manishearth
MozReview-Commit-ID: HeV5UsqGcWs

--HG--
extra : rebase_source : af448460bd6b1dc423db6b296193c189eff461cd
2017-05-19 23:24:31 +10:00
Boris Chiou 1e2c865691 Bug 1334036 - Part 5: Implement FFI for finding properties overriding animations. r=birtles,emilio
We need to traverse rule tree to get the important rules, so we will not
override them if they have animations running on compositor.

MozReview-Commit-ID: 67NO2nIcUfq

--HG--
extra : rebase_source : 24a4ea4ca10e00f409d94c81acacb3db72248b3f
2017-05-19 15:58:47 +08:00
Xidorn Quan 153f90c76a Bug 1345697 part 3 - Implement CSSKeyframesRule and CSSKeyframeRule for stylo. r=heycam
MozReview-Commit-ID: AeU0BWaBfYe

--HG--
extra : source : 41460384de0116c90dcbcb2caf9f2763a62b5f40
2017-05-19 16:12:34 +10:00
Emilio Cobos Álvarez 9e24a8c649 Bug 1364862: Make PostRebuildAllStyleData async. r=heycam
MozReview-Commit-ID: EM3eUP1dWwA
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : 2928e4cbd12af99dde2d913bb814febec72200a0
2017-05-15 18:02:59 +02:00
Nazım Can Altınova e7316ee8fe Bug 1364746 - stylo: Continue to propagate quirks mode information to Servo r=bholley
I've propagated quirks mode information on some places. But we needed to pass
quirks mode to some other FFI functions to be able to handle that information
properly.

MozReview-Commit-ID: JovQWjN3YJx

--HG--
extra : rebase_source : bd25ba4276ae21ff4feb80e56b311202019268a0
2017-05-14 18:11:18 +03:00
Xidorn Quan 647879714c Bug 1328319 part 7 - Enable querying counter-style rule on Servo backend. r=heycam
MozReview-Commit-ID: Aj3AcW1KmRe

--HG--
extra : rebase_source : b17302b7026c78627bee766094fb117b2e2abe48
2017-05-11 14:47:24 +10:00
Xidorn Quan 2723728359 Bug 1328319 part 2 - Add basic integration of @counter-style. r=heycam
MozReview-Commit-ID: 68CcxyWuINu

--HG--
extra : rebase_source : 2772c4ab938daf61e4a14fa952b24ecd4220de6b
2017-05-15 14:18:44 +10:00
Emilio Cobos Álvarez 8b2a66ab16 Bug 1364412: Convert pseudo-elements to an enum. r=hiro,xidorn
This allows us to access metadata using `match` instead of comparison with
atoms, which makes it doable to get the pseudo-element flags in the future.

Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: KgGjFePmhyS
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : 57614aed13d2c088fe129ecf3fabf9869d5a6d50
2017-05-14 18:39:22 +02:00
Emilio Cobos Álvarez 66f11e5df2 Bug 1364412: Simplify Servo_HasAuthorSpecifiedRules looking at the pseudo style. r=bholley
MozReview-Commit-ID: HpV92ttZGJz
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : 0f93984a7af0ac5c0e5dd479607fa500f55f7506
2017-05-12 17:51:32 +02:00
Fernando Jimenez Moreno 9e66b37474 Bug 1350175 - Part 2: FFI changes to get line and column. r=xidorn
MozReview-Commit-ID: 87pVnoLmjPl

--HG--
extra : rebase_source : 1decaf9bc3aa75d64254aea8fdb08679c2557ca2
2017-04-25 16:24:39 +02:00
Fernando Jimenez Moreno 50301fae54 Bug 1350175 - Part 1: Set stylesheet line offset. r=xidorn
MozReview-Commit-ID: 49B3bZaWjWc

--HG--
extra : rebase_source : 005986f47fd243d7faddffa31689eff50a7161e5
2017-04-25 21:01:45 +02:00
Nazım Can Altınova cb0d27041b Bug 1360488 - Part 2: stylo: Propagate quirks mode information from Gecko to Servo r=bholley
MozReview-Commit-ID: 6AyuC2jd3d4

--HG--
extra : rebase_source : d73057d48589e22cdddcf465b4cad7c28dd8f2de
2017-05-06 01:12:03 +03:00
Hiroyuki Ikezoe 7cd8cdf2bb Bug 1357295 - Rename LengthParsingMode to ParsingMode and LengthParsingMode::SVG to PasingMode::AllowUnitlessLength. r=emilio
We need another flag that represents allow-negative-number for SMIL, so
this enum will also comprise the another parsing mode that allows negative number.

MozReview-Commit-ID: IDFNppjGeB

--HG--
extra : rebase_source : 456f661b33346ff4a756a66c6accf4ab1a5f2f80
2017-05-13 19:47:38 +09:00
Hiroyuki Ikezoe b57fed9509 Bug 1354947 - Rename FillKeyframesForName to GetKeyframesForName. r=birtles
MozReview-Commit-ID: AOLygEtuhpO

--HG--
extra : rebase_source : 2db2a183588a44fc33e0e7bff44847813a72cb74
2017-05-13 16:34:38 +09:00
Brad Werth 1abf09eb7e Bug 1363572 Part 2: Change ServoStyleSet to use uint64_t for entry unique IDs. r=heycam
MozReview-Commit-ID: 50whQ71j4B5

--HG--
extra : rebase_source : 9f4fa6aa77d43c609c9b9c3af9d10dac54ced649
2017-05-10 11:20:57 -07:00
Ryan VanderMeulen 44e0bdf130 Backed out changesets 72fe8375faa0 and 5f55c10a0a72 (bug 1352306) for ElementInlines.h assertions.
CLOSED TREE
2017-05-12 12:58:05 -04:00
Cameron McCormack 9aa3f6dbf6 Bug 1352306 - Part 2: stylo: Only snapshot EventStates if there is some rule that depends on it. r=emilio
MozReview-Commit-ID: J5xhdi7pGSv

--HG--
extra : rebase_source : 48247c1dd2e5b091224bc5fff2e1249b880e157b
2017-05-09 18:13:45 +08:00
Cameron McCormack baddd12434 Bug 1352306 - Part 1: stylo: Only snapshot attributes if there is some rule that depends on that attribute. r=emilio
MozReview-Commit-ID: Emey96ovc2a

--HG--
extra : rebase_source : b60b5114e8faf5bb39bf34fd0d985b071b9ec2dc
2017-05-08 16:04:31 +08:00
Fernando Jimenez Moreno 321888d66f Bug 1361994 - Part 3: Implement CSSOM support for @-moz-document. r=xidorn
MozReview-Commit-ID: HnFDV9h7SYW

--HG--
extra : rebase_source : 326d86d96c34102b31c855d9083316558dd2a3df
2017-05-11 14:11:16 +02:00
Hiroyuki Ikezoe 9219415cbf Bug 1363574 - Allow unitless length for SMIL values. r=birtles
MozReview-Commit-ID: BkGCHgQVzHD

--HG--
extra : rebase_source : c0b0601fba6cfba04217dd6da7e942c167858496
2017-05-11 08:29:36 +09:00
Boris Zbarsky 6f37f1a119 Bug 1361843 part 3. Clear the stylist when styleshets change, but don't do anything else until there's an explicit sheet flush. r=emilio
MozReview-Commit-ID: IhK1ECeuYbM

--HG--
extra : rebase_source : be155be7d8b3b88446cc2c338039e85db4e133ae
2017-05-10 13:13:45 -04:00
Emilio Cobos Álvarez 68f1504992 Bug 1355343: Take all the snapshots into account. r=bholley
I've chosen this approach mainly because there's no other good way to guarantee
the model is correct than holding the snapshots alive until a style refresh.

What I tried before this (storing them in a sort of "immutable element data") is
a pain, since we call into style from the frame constructor and other content
notifications, which makes keeping track of which snapshots should be cleared an
which shouldn't an insane task.

Ideally we'd have a single entry-point for style, but that's not the case right
now, and changing that requires pretty non-trivial changes to the frame
constructor.

MozReview-Commit-ID: FF1KWZv2iBM

--HG--
extra : rebase_source : b02d516ea164fc567110338411bf6ba251d53dab
2017-05-07 16:36:47 +02:00
Matt Brubeck 0c70ae6c1d Bug 1349651 - stylo: Implement HasAuthorSpecifiedRules. r=bholley
MozReview-Commit-ID: 8ta5KqKzncZ

--HG--
extra : rebase_source : 3ec29f283dc6bfec4d2a1676ab3f78296893d94b
2017-05-10 13:11:36 -07:00
Boris Chiou 7c0868e25d Bug 1346052 - Part 3: Implement AnimationValue::FromString. r=birtles
AnimationValue::FromString compute the AnimationValue from a string.

MozReview-Commit-ID: CX8wairpnfN

--HG--
extra : rebase_source : 05dbaa84bf40463a0021bd538d7baba5d591f992
2017-05-03 11:15:27 +08:00
Brad Werth 3c02700e0e Bug 1348481 Part 2: Gecko-side track unique IDs for each stylesheet and send them to Servo. r=heycam
MozReview-Commit-ID: 7ZaQYhjdYmG

--HG--
extra : rebase_source : 4f1479ca32a305e16c4da8b3ca1c4532f7040258
2017-05-01 16:46:41 -07:00
Hiroyuki Ikezoe d8fafebff7 Bug 1360776 - Pass AnimationValueMap raw pointer instead of Arc to Gecko_GetAnimationRule(). r=emilio
MozReview-Commit-ID: 5o8NuJolG2R

--HG--
extra : rebase_source : 13d732112dfe5614a83657c7bf7703944050c0f4
2017-05-01 18:45:41 +09:00
Emilio Cobos Álvarez 2e7660653c Bug 1360508: Adjust text-combine properly. r=jryans
Text style is always resolved via ServoStyleSet::ResolveStyleForText, either
from the frame constructor initially, or from
ServoRestyleManager::ProcessPostTraversalForText.

So text-only adjustments should go there instead. Since that doesn't call into
cascade(), all the code that passes `pseudo` there is dead code we can remove.

MozReview-Commit-ID: jpbBYpLlUL
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-28 20:18:00 +02:00
Xidorn Quan a82f5a5ae1 Bug 1355394 part 3 - Implement CSSOM support for @supports. r=heycam
MozReview-Commit-ID: AV1t6mIFF0J

--HG--
extra : rebase_source : b69ba50070290aef27dfe00866da8a59d3c8520f
2017-04-26 15:59:29 +08:00
Xidorn Quan 3c5ec261f5 Bug 1355394 part 2 - Move GetRules function into macro. r=heycam
MozReview-Commit-ID: AlQ5os4s26v

--HG--
extra : rebase_source : 49d19b5915cb38a1809d54f0aee9a2825f604eef
2017-04-26 15:57:57 +08:00
Boris Chiou 2f2de90eab Bug 1332633 - Add Servo_AnimationValues_ComputeDistance. r=emilio
This FFI will be used by nsDOMWindowUtils::ComputeAnimationDistance,
which will be implemented in another bug.

MozReview-Commit-ID: G3aYICDnCLA

--HG--
extra : rebase_source : 6bb2a8452f7d954da7dcc1da0818e125b5cb17bc
2017-04-21 11:31:41 +08:00
Hiroyuki Ikezoe 51d6b62cb0 Bug 1324700 - Add an FFI which returns computed values for a given declaration block with/without parent_style. r=heycam
The function uses document's default computed values if the parent style
is not specified.

MozReview-Commit-ID: ICd3phAi0C6

--HG--
extra : rebase_source : 343dee682096b75cd7f905db7207823f7e3624b5
2017-04-15 07:37:35 +09:00
Hiroyuki Ikezoe 175655448b Bug 1324700 - Add a function that checks PropertyDeclarationBlock has a CSSWideKeyword for a given property. r=heycam
It will be used to check whether the PropertyDeclarationBlock has 'inherit',
'initial' or 'unset'.


MozReview-Commit-ID: JxlxAJJSNJI

--HG--
extra : rebase_source : 99912dcbcfb39e2710e822b93c7933af79b5421b
2017-04-15 07:37:34 +09:00
Hiroyuki Ikezoe 784bf46abc Bug 1324700 - Servo_ParseProperty() takes nsCSSPropertyID instead of nsACString. r=heycam
MozReview-Commit-ID: Gn90DBlJSS9

--HG--
extra : rebase_source : 444f4188de7e32f5414f2b75046903dc504db1a0
2017-04-15 07:37:34 +09:00
J. Ryan Stinnett dbbda3c4ba Bug 1329088 - Pass SVG length mode to Stylo. r=emilio
In the SVG element case, tell Stylo to use the SVG length mode.

MozReview-Commit-ID: 9UR1AYRh4RE
2017-04-14 18:27:49 +08:00
Brad Werth 78b1c03e22 Bug 1341721 Part 2a: Add a bool argument to Servo_StyleSet_NoteStyleSheetsChanged. r=heycam
MozReview-Commit-ID: 1CLnJ87fPF1

--HG--
extra : rebase_source : 10e63dbaadd1d37f209044980f83a3e1af70cdfc
2017-04-11 15:59:44 +08:00
Emilio Cobos Álvarez f7cf08128a Bug 1325878: Pass the MediaList down to Servo, making <style media> work. r=xidorn
MozReview-Commit-ID: BUCSQJs2CNI
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:10 +08:00
Emilio Cobos Álvarez 75a86d5f3c Bug 1325878: Support deep-cloning of ServoMediaLists. r=xidorn
MozReview-Commit-ID: K7NFe1tKrAZ
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:07 +08:00
Emilio Cobos Álvarez 16cd642c17 Bug 1325878: Create less hardcoded nsMediaList instances. r=xidorn
MozReview-Commit-ID: K6T3MM1ZrFb
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:03 +08:00
Emilio Cobos Álvarez 3cb9f7d4fb Bug 1325878: Allow creating empty Servo MediaList. r=xidorn
MozReview-Commit-ID: H7owjPB8dRi
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:01 +08:00
Manish Goregaokar a8f8bfeb3e Bug 1339711 - Part 5: stylo: Support background presentation attribute; r=emilio
MozReview-Commit-ID: LU6ETeH8lxn
2017-04-12 23:05:57 +08:00
Manish Goregaokar 9d7550892d Bug 1339711 - Part 3: stylo: Support mathsize, width, and scriptminsize presentation attributes in MathML; r=emilio
MozReview-Commit-ID: GvHslYdBfXU
2017-04-12 23:05:44 +08:00
Manish Goregaokar ea86b671be Bug 1339711 - Part 1: stylo: Support -moz-script-size-multiplier, -moz-script-level, -moz-math-display; r=emilio
MozReview-Commit-ID: KzBDsmZK5w0
2017-04-12 23:05:29 +08:00
Boris Chiou 0aa774ef7e Bug 1343753 - Part 9: Early return for non-animatable properties for transitions. r=hiro,manishearth
MozReview-Commit-ID: HtNavkzyHvt

--HG--
extra : rebase_source : 410409a3005cb68da1266d3844c05c7c58123a75
2017-04-12 16:37:09 +08:00