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

149 Коммитов

Автор SHA1 Сообщение Дата
Manish Goregaokar a1953373cd Bug 1338388 - Part 5: stylo: Add mako template for URLOrNone, use for marker-* properties; r=heycam
MozReview-Commit-ID: 4QKKzJ1DVYP

--HG--
extra : rebase_source : 68947510d2a4fb91d70c9e0d9d261d980cb2d313
2017-02-09 17:43:52 -08:00
Manish Goregaokar 884050c549 Bug 1338388 - Part 4: stylo: Add Gecko bindings for <paint>, use for stroke/fill; r=heycam
MozReview-Commit-ID: 4QKKzJ1DVYP

--HG--
extra : rebase_source : 9097d4bc634eb45a5f850a11fa403b4b12735ef8
2017-02-09 17:43:52 -08:00
Manish Goregaokar 110627f6f6 Bug 1338388 - Part 3: stylo: Support URL clip-paths ; r=heycam
MozReview-Commit-ID: 4QKKzJ1DVYP

--HG--
extra : rebase_source : fde4eb7a3d69ff0c18b18c741b0343c37040a6cd
2017-02-09 17:43:52 -08:00
Manish Goregaokar 1d2c7f67fb Bug 1338388 - Part 2: stylo: Support URL filters ; r=heycam
MozReview-Commit-ID: 4QKKzJ1DVYP

--HG--
extra : rebase_source : b795f2cfc58caa34c444fa64bad05131224ae895
2017-02-09 17:43:52 -08:00
Manish Goregaokar 4f52619ddb Bug 1338388 - Part 1: stylo: Add ServoBundledURI abstraction for use when setting css::URLValues; r=heycam
MozReview-Commit-ID: 4QKKzJ1DVYP

--HG--
extra : rebase_source : 22c92d2803281abbeda20f0f8244b7eb7e4f8116
2017-02-09 17:43:52 -08:00
Bobby Holley eaee1dbb37 Bug 1340022 - Implement "handled for descendants" tracking for RestyleDamage. r=emilio
MozReview-Commit-ID: Bbk99ogILXC

--HG--
extra : rebase_source : 2998f39a67c39073ea66e3e12815e1a7a25f7c9d
2017-02-15 19:36:57 -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
Cameron McCormack 267ff12653 Bug 1331294 - Part 2: Call nsIPresShell::SetNeedStyleFlush after propagating dirty descendants bits up the tree. r=bholley
MozReview-Commit-ID: 4k5AXK5J4pi
2017-02-10 10:42:29 +08:00
Bobby Holley 0e51a14782 Bug 1335308 - Assert against non-length units in Gecko_CSSValue_SetAbsoluteLength. r=emilio 2017-02-08 17:04:45 -08:00
Bobby Holley b5140be91a Bug 1335308 - Assert main thread in Gecko_LoadStyleSheet. r=emilio 2017-02-08 17:04:45 -08:00
Hiroyuki Ikezoe 287d10e9c5 Bug 1332657 - Part 2: Implement clone_transform. r=heycam,manishearth
The implementation of clone_transform is an adaptation of set_transform.

MozReview-Commit-ID: ESE1ha0x666
2017-02-03 14:41:29 +09:00
Hiroyuki Ikezoe c219cb14f4 Bug 1332657 - Part 1: Use more proper function to set nsCSSValue. r=heycam
MozReview-Commit-ID: 94o9qXXUyXN
2017-02-03 14:41:28 +09:00
Bobby Holley c35f772b59 Bug 1335863 - Inline common case parent access. r=emilio 2017-02-02 11:24:43 -08:00
Bobby Holley bd672b2ad1 Bug 1335863 - Inline Gecko_IsHTMLElementInHTMLDocument. r=emilio 2017-02-02 11:24:37 -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
Hiroyuki Ikezoe 94cf7d46a6 Bug 1335261 - Initialize StyleAnimation value when expanding the array. r=heycam
MozReview-Commit-ID: 3G0fnVId6nd
2017-01-31 17:09:18 +09:00
Hiroyuki Ikezoe e4b48af5ae Bug 1328787 - Part 4: Add Gecko_AnimationAppendKeyframe. r=heycam
This is a function which is called in Servo_StyleSet_FillKeyframesForName to
append a Gecko's Keyframe into nsTArray<Keyframe>.

Without this function we need to end up exposing ComputedTimingFunction class
and Maybe<> as FFI.

MozReview-Commit-ID: 2EpltR4rMVh
2017-01-29 12:58:39 +09:00
Emilio Cobos Álvarez 1c4f61bf3d Bug 1334579: Ensure constructors for nsStyleContentData run. r=bholley
MozReview-Commit-ID: 9Y6tQ6BD2c8
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-28 14:38:27 +01:00
Boris Chiou d45e2346f6 Bug 1317209 - Part 6: Support transition cascade level. r=heycam
Implement the mapping between EffectCompositor::CascadeLevel in Gecko and
EffectCompositor_CascadeLevel in Servo, so we can pass it as a parameter into
Gecko_GetAnimationRule.

MozReview-Commit-ID: GRedooyGE8c

--HG--
extra : rebase_source : c18d54dabb093242c66d46be8ca03424a2c6ca78
2017-01-24 15:33:10 +08:00
Boris Chiou f338c9e47d Bug 1317209 - Part 5: Trigger composeStyle if there is an animation. r=heycam
1. Add one new FFI, Gecko_GetAnimationRule, which will try
   to update the animation rule and retrieve a ServoAnimationRule
   from EffectSet.
2. Add GetServoAnimationRule, which calls Animation::ComposeStyle and updates
   mElementsToRestyle.
3. There is no eRestyle_{CSSAnimations|CSSTransitions}, so we use
   eRestyle_Self and eRestyle_Subtree for stylo.

MozReview-Commit-ID: 9RpJurPSFMk

--HG--
extra : rebase_source : 6f1246b73a920aee86faeeaccc42b7f51ed2a6c8
2017-01-24 15:27:56 +08:00
Emilio Cobos Álvarez 672bb172f2 Bug 1331213: Add an API to drop a nsCSSValue in the stack. r=heycam
The getter function may create an nsCSSValue with allocated stuff, and we don't
want to leak it.

MozReview-Commit-ID: DYkUD8CW88E
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:20:08 +01:00
Emilio Cobos Álvarez 367ac14b53 Bug 1331213: Add an API to get nsMediaFeatures::features. r=heycam
We can't use the generated ones if we want a windows build.

MozReview-Commit-ID: 200LNgWl5Lm
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:19:57 +01:00
Manish Goregaokar a14215063b Bug 1297322: stylo: Hook property parsing into Gecko prefs; r=heycam
MozReview-Commit-ID: 7evWOUFwa3K

--HG--
extra : rebase_source : 7144248eee3f8af6863a4a401b6e504d3704e597
2017-01-09 16:05:18 -08:00
Boris Zbarsky cb9a17ea4c Bug 1330060 part 3. Update comment to correctly describe when we may have a Gecko style decl in Gecko_GetServoDeclarationBlock. r=heycam 2017-01-11 19:03:16 -05:00
Boris Zbarsky 635056e199 Bug 1330060 part 2. Gecko_GetServoDeclarationBlock should use Element::GetInlineStyleDeclaration instead of reinventing it. r=heycam 2017-01-11 19:03:16 -05:00
Hiroyuki Ikezoe 4c6a6fbadb Bug 1328786 - Part 1: Add an FFI function for expanding nsStyleAutoArray. r=heycam 2017-01-06 21:45:16 +09:00
Xidorn Quan d1ef4e2659 Bug 1329076 part 3 - Add :-moz-browser-frame pseudo-class. r=heycam
MozReview-Commit-ID: 8W9jqD4iJlN

--HG--
extra : source : fcb6a787f0cd4dc015af8801f9820fd3dbcf389d
2017-01-06 21:12:08 +11:00
Bobby Holley 1c5b9be020 Bug 1323678 - Support off-main-thread snapshot destruction. r=heycam 2017-01-04 17:49:07 -08:00
Boris Zbarsky e080ecc8e9 Bug 1298588 part 16. Remove StyleStructContext. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky e95482db38 Bug 1298588 part 15, gecko piece. Rip out the initial() methods on style structs in stylo. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky 6104ba14f9 Bug 1298588 part 3, gecko piece. Add a default ComputedValues member to PerDocumentStyleData. r=bholley 2017-01-04 14:52:26 -05:00
Cameron McCormack 171e45e09c Bug 1328223 - stylo: Ignore invalid URLs from @import rules. r=emilio
MozReview-Commit-ID: BTEPxCXiR9O
2017-01-03 18:35:15 +08:00
Emilio Cobos Álvarez f5651bd75d Bug 1304792: Use borrowed types for ServoImportRule. r=Manishearth r=heycam
MozReview-Commit-ID: HKjsOaE2qAp
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2016-12-30 16:30:42 +01:00
Emilio Cobos Álvarez a25a3083ce Bug 1304792: stylo: Implement @import. r=heycam
MozReview-Commit-ID: Hw1V66JxIBD
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2016-12-30 16:30:41 +01:00
Cameron McCormack e686107ee8 Bug 1324983 - Don't persist styles on elements not in the document. r=emilio
MozReview-Commit-ID: 4Z8IxPS6rfE
2016-12-29 15:04:32 +08:00
Xidorn Quan f7070d6e85 Bug 1321176 - Handle unresolved url value gracefully. r=heycam,manishearth
This changes as_slice_components() to return the original url if the url
is not resolved. It returns Ok() vs. Err() to distinguish between the
two cases because we cannot assign an unresolvable url to -moz-bindings.

MozReview-Commit-ID: FrWyDTIQfgH

--HG--
extra : source : 16d65b9c32c3beab744dbca93e7689ee616c0add
2016-12-21 10:13:00 +11:00
Cameron McCormack bd110300be Bug 1321284 - Part 3: Make Servo-based styling use the "flattened tree parent for style". r=bholley
MozReview-Commit-ID: BnW5VZ3xLpG

--HG--
extra : rebase_source : 2315408fb39fc52f272731ce0e936ec6ba4ea195
2016-12-01 14:55:49 +08:00
Daniel Holbert 560110f36c Bug 1321495 part 3: Add needed #includes to various .cpp files in layout/style, to preemptively fix unified-build bustage. r=TYLin
MozReview-Commit-ID: GEjKZqc06FO

--HG--
extra : rebase_source : 3b710c576a590b97251512d875d3365fd6fb0314
2016-12-01 10:40:04 -08:00
Boris Chiou c8c82c263f Bug 1317179 - Use nsAString as the parameter type and drop Gecko_Utf8SliceToString. r=manishearth
MozReview-Commit-ID: TtA9P8FIAZ

--HG--
extra : rebase_source : 3d3339e2f648db34e4cc917ae0d90d0b8d785c8a
2016-11-23 19:24:46 +08:00
Xidorn Quan b329a010de Bug 1319614 - Move Servo Arc types to a list file. r=manishearth
MozReview-Commit-ID: JiLwcmN7Oig

--HG--
extra : rebase_source : 45716e10101ae9e2192db9e8d27481f17d32310e
2016-11-23 11:35:55 +11: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
Cameron McCormack bc2ee20052 Bug 1319982 - Move Servo_GetStyleVariables definition to the Servo side. r=manishearth
MozReview-Commit-ID: roXO95icic
2016-11-25 09:41:41 +08:00
Xidorn Quan caacda2881 Bug 1307357 part 4 - Add impl class of CSSStyleRule for stylo. r=heycam,manishearth
MozReview-Commit-ID: CNrvA0HuuL6

--HG--
extra : source : 0444c8f08953fe4d32ea6f6fa0ecf2c33eb97b05
2016-11-23 10:26:20 +11:00
Xidorn Quan e887e33696 Bug 1307357 part 3 - Implement CSSRuleList interface for stylo. r=heycam,manishearth
MozReview-Commit-ID: Ecnbj66yKOE

--HG--
extra : source : e2e51877116f4dde6bd054e9b6e681f3e7f4250b
2016-11-23 10:26:20 +11:00
Cameron McCormack 21cc93d13e Bug 1310560 - Part 3: Add FFI functions for setting cursor url() lists. r=xidorn
MozReview-Commit-ID: 7SYA5BPELPe

--HG--
extra : rebase_source : 089a1cbcbdbec1812d488ce18e9da5f8357e4f30
2016-11-21 14:34:17 +08:00
Manish Goregaokar c34e67ff4d Bug 1314200 - stylo: support transform; r=heycam
MozReview-Commit-ID: 50YhZtjF3vH

--HG--
extra : rebase_source : 9aaf3f1bdd317c8c0e541a5ff6ff6d734a3e3f32
2016-10-31 16:30:43 -07:00
Cameron McCormack e627525329 Bug 1310463 - Part 3: Add FFI functions for setting list-style-image. r=xidorn
MozReview-Commit-ID: LNK4UbfMfRk
2016-11-03 09:40:53 +08:00
Cameron McCormack 86283397d9 Bug 1288302 - Part 6: Add FFI function to set nsStyleImageRequest values. r=xidorn
MozReview-Commit-ID: 448vAeDiKX7
2016-11-02 16:58:32 +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