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

163 Коммитов

Автор SHA1 Сообщение Дата
Boris Chiou a699413b9a Bug 1343753 - Part 5: Support ServoComputedValues in ExtractNonDiscreteComputedValue. r=birtles,hiro,manishearth
We use ServoComputedStyleValues as the argument here, instead of
ServoComputedValues, because I will use template for nsStyleContext and
ServoComputedValuesWithParent in UpdateTransitions() and
ConsiderInitiatingTransition(). Besides, add an FFI to check if a
proeprty is discrete animation type.

MozReview-Commit-ID: 7VtcMDtgl55

--HG--
extra : rebase_source : eeef2e634887b66bb6650d66fb2e3929a5ea1855
2017-04-12 16:31:12 +08:00
Boris Chiou fb53a02a99 Bug 1343753 - Part 4: Introduce AnimationValue::IsInterpolableWith. r=birtles,manishearth
We have different interpolation implementations on Gecko and Servo, so
wrap the "Can be Interpolated" in AnimationValue. This patch also introduces
the FFI, Servo_Animationvalues_IsInterpolable.

MozReview-Commit-ID: 92Yf1u84A3c

--HG--
extra : rebase_source : 544d9db1b0d377006ae42b1242dc064bd5fa65d2
2017-04-12 16:26:59 +08:00
Boris Chiou 6b6ab8a902 Bug 1343753 - Part 2: Update GetTransitionKeyframes for stylo. r=birtles,manishearth
Use AnimationValue as arguments, and add one FFI to uncompute the
value. Therefore, we can use GetTransitionKeyframes for both Gecko and
Servo backends. However, there are many "mGecko"s, which will be removed
later.

MozReview-Commit-ID: Dg5hrDdlIWb

--HG--
extra : rebase_source : 0ed36ee5a48e4d452ba812f912de6110a3139510
2017-04-12 15:51:55 +08:00
Brad Werth 50b320d9d3 Bug 1346256 Part 1b: (Gecko) Add FFI interfaces for exposing style sources. r=heycam
MozReview-Commit-ID: FOQCgXD68E9

--HG--
extra : rebase_source : b393f646df3a4115bc9417c6b8a90b3be0d8dceb
2017-04-06 10:19:00 -07:00
J. Ryan Stinnett 7f0b8b2dd6 Bug 1345206 - Wire up bindings for @page rule. r=xidorn
Connect the Servo types and functions for working with @page rules to Gecko.

This also adjusts the Stylo test expectations to match the current state with
@page support.

MozReview-Commit-ID: 513d05m51wK

--HG--
extra : rebase_source : aa92dc1ad4b3949418759b3893a918663ec6ee0c
2017-03-30 21:25:22 -05:00
Cameron McCormack 9ce0d4d3d2 Bug 1351535 - Part 4: Add a TraversalRestyleBehavior argument to traversal functions. r=bholley
This argument will be used to control whether we are restyling in preparation
for reframing a subtree, which can avoid generating any change hints, as we
aren't preserving the frames that they would otherwise apply to.

MozReview-Commit-ID: DkLVCUnNGt

--HG--
extra : rebase_source : cb3537cea26cb9805b2ec1556cf5ca6eb9d38ab8
2017-04-08 22:57:08 +08:00
Xidorn Quan 514feab11a Bug 1343964 part 2 - Move dummy url data to be a static member of URLExtraData. r=heycam
MozReview-Commit-ID: I6pc9WmrLW0

--HG--
extra : rebase_source : 9af2e97d22c58f480603eef97a833539bf69ced9
2017-04-04 13:21:16 +10:00
Hiroyuki Ikezoe 2614ef2eac Bug 1311257 - Use underlying value for missing keyframes. r=birtles,heycam
mBaseStyleValuesForServo is a nsRefPtrHashtable<nsUint32HashKey, RawServoAnimationValue>
In this patch, we use void* instead of exposing nsRefPtrHashtable in FFI
because we just use the hash table as an argument of a C++ function, it means
we don't touch the hash table in Rust at all.

MozReview-Commit-ID: 1wM6NeF2S0t

--HG--
extra : rebase_source : 17908ff84d061e189f21641bf660dc9720b964bc
2017-04-06 10:34:51 +09:00
Hiroyuki Ikezoe fa100db77c Bug 1311257 - Move stuff of KeyframeEffectReadOnly::ComposeStyleRule in Rust. r=heycam
After this, we will implement additive or accumulative calculation
in this Rust function.

MozReview-Commit-ID: 4xAvLz1oTIZ

--HG--
extra : rebase_source : c0672cb1c894eadaaebec94dce2f0d1c1a77d244
2017-04-06 10:34:51 +09:00
Hiroyuki Ikezoe 88423b4e0b Bug 1311257 - Add an FFI function that returns an AnimationValue for a given nsCSSPropertyID from computed values. r=heycam
When we compose style for a given nsCSSPropertyID in the case where
we have no specified values in target keyframe, we use this AnimationValue
for composition as if it's specified.

MozReview-Commit-ID: 2CTLIGgeLIO

--HG--
extra : rebase_source : 3be5bdaf3d226ff004bb0af0f832e5af88f15b6d
2017-04-06 10:34:50 +09:00
Hiroyuki Ikezoe 3f28d7ec76 Bug 1311257 - Add a function that returns a base computed values (i.e. computed values without any animations rules). r=heycam
This base value will be used for additive, accumulative animations
and also SMIL.

MozReview-Commit-ID: LHV8ZnxSzjb

--HG--
extra : rebase_source : 507a8dd74961e7f439b90fd4c5f90a98706aa434
2017-04-06 10:34:50 +09:00
Xidorn Quan 2da48b454d Bug 1352025 part 2 - Stop passing in url as string for parsing. r=manishearth
MozReview-Commit-ID: CRgOO7NyYd9

--HG--
extra : rebase_source : 6b04d1c001082740abfc344fdb2a7f0351c3d7d9
2017-04-01 16:17:55 +11:00
Xidorn Quan 1e6b39eb51 Bug 1352763 part 4 - Pass CSS loader to Servo for insertRule. r=emilio
MozReview-Commit-ID: 6yalz8D8BWc

--HG--
extra : rebase_source : a76c8ee72806b0326cab9fe251ce23d4bf935609
2017-04-03 20:04:32 +10:00
Xidorn Quan e3e4554871 Bug 1351957 - Create URLExtraData for holding base uri, referrer, and principal. r=heycam
MozReview-Commit-ID: 1wqTb3kvvWh

--HG--
extra : rebase_source : cae3dba21c916ab0f52056bd9db215249b650cd3
2017-03-30 18:54:48 +11:00
Xidorn Quan be843c7162 Bug 1345696 part 7 - Provide @font-face rules for stylo backend. r=heycam
MozReview-Commit-ID: CHPxz7iOLg6

--HG--
extra : rebase_source : 56371228e08b1accbdd30f738622bc211e6daee8
2017-03-27 17:53:27 +11:00
Xidorn Quan 8f66ffc743 Bug 1345696 part 5 - Support CSSOM access to @font-face rules. r=manishearth
MozReview-Commit-ID: Gm4Bm0zgsh3

--HG--
extra : rebase_source : 26972312c5dcdb3de4033786e21ab7eecac23d6e
2017-03-27 14:49:26 +11:00
Cameron McCormack c4f1f8e321 Bug 1350671 - stylo: Allow resolving out of date styles when explicitly reconstructing frames for an element. r=bholley
MozReview-Commit-ID: 7w9pehHNXQ

--HG--
extra : rebase_source : 1476b4397a4384046c324f0176ecd9f699b026bd
2017-03-28 15:31:41 +08:00
Iris Hsiao 5bed2bfda5 Backed out changeset 6e4ccddb5c4b (bug 1350671) for build bustage 2017-03-28 15:23:59 +08:00
Cameron McCormack e945f00cd0 Bug 1350671 - stylo: Allow resolving out of date styles when explicitly reconstructing frames for an element. r=bholley
MozReview-Commit-ID: A7ssy7ygWLh

--HG--
extra : rebase_source : 7f8fa109f1a739b68525e3ff662024267189d93f
2017-03-28 13:46:59 +08:00
Boris Chiou 07c4d7dc13 Bug 1343153 - Part 3: Replace pointer to const with immutable reference for nsTimingFunction. r=emilio,hiro
MozReview-Commit-ID: BcY4mTtCtjn

--HG--
extra : rebase_source : c0884e86971bbb50028247b11c4f93ad72babc21
2017-03-21 14:29:43 +08:00
Boris Chiou 384142c233 Bug 1343153 - Part 2: Use Servo css-parser for ParseEasing. r=birtles,emilio
We use Servo css-parser to parse keyframe property-value pairs, so we
should also use it to parse easing for Web Animations.

MozReview-Commit-ID: FsfHQaNT2xO

--HG--
extra : rebase_source : 8eb6489f257839f2c0de943b63cc1c04b44ff7a5
2017-03-21 14:27:46 +08:00
Sebastian Hengst 1ba83457d7 Backed out changeset 9de875f31238 (bug 1343153) 2017-03-21 11:03:19 +01:00
Sebastian Hengst b3d7478b27 Backed out changeset b2c7ea6392fc (bug 1343153) 2017-03-21 11:03:14 +01:00
Boris Chiou 7959166d09 Bug 1343153 - Part 3: Replace pointer to const with immutable reference for nsTimingFunction. r=emilio,hiro
MozReview-Commit-ID: BcY4mTtCtjn

--HG--
extra : rebase_source : 413283a8ff766d683c6b2dfb61c0a98656b50cf7
2017-03-21 14:29:43 +08:00
Boris Chiou bc0746fe3d Bug 1343153 - Part 2: Use Servo css-parser for ParseEasing. r=birtles,emilio
We use Servo css-parser to parse keyframe property-value pairs, so we
should also use it to parse easing for Web Animations.

MozReview-Commit-ID: FsfHQaNT2xO

--HG--
extra : rebase_source : f0426f90e4698363b0ce0271943b31418458301d
2017-03-21 14:27:46 +08:00
Hiroyuki Ikezoe 53cd62387d Bug 1340958 - Drop Servo_AnimationValues_Uncompute. r=boris
MozReview-Commit-ID: 4CMzaCOnY7z

--HG--
extra : rebase_source : a0e988af6cdde93f47ee2089a281a49c815d953a
2017-03-17 13:24:42 +09:00
Hiroyuki Ikezoe 3b9f585232 Bug 1340958 - Put computed values into AnimationValueMap instead of hashtable in gecko. r=heycam
Before this patch, we store each computed values in a hashtable,
nsRefPtrHashtable<nsUint32HashKey, RawServoAnimationValue>, for all
KeyframeEffectReadOnly on an element, and convert the ServoAnimationValues of
the hashtable into an nsTArray<ServoAnimationValue*> and then convert
the ServoAnimationValues of the nsTArray into PropertyDeclarationBlock
in rust.  This way was really inefficient.
In this patch, we store the computed values into AnimationValueMap and
convert all AnimationValue in the map into PropertyDeclarationBlock
after EffectCompositor::GetAnimationRule.

MozReview-Commit-ID: EJ2Kl65fVeF

--HG--
extra : rebase_source : e30a9d440dc9855e21b94501b07a3501d31bc345
2017-03-17 13:23:21 +09:00
Xidorn Quan 0e0511338c Bug 1345698 part 2 - Add bindings for namespace rule. r=heycam
MozReview-Commit-ID: 5QHeVqfiEGh

--HG--
extra : rebase_source : 191fe0a8ff0742ec00022062d819da8e92137e8a
2017-03-14 15:44:37 +11:00
Xidorn Quan c0a293e41b Bug 1345698 part 1 - Unify common code for implementing a rule type. r=heycam
MozReview-Commit-ID: ABwAq2HXrkC

--HG--
extra : rebase_source : 76dd1436234ae351d13ccc218c31754705d70bfe
2017-03-14 17:52:37 +11:00
Boris Zbarsky 30ae26f67d Bug 1346481. Add stylo support for skipping parent-display-based fixup for anonymous boxes. r=emilio
MozReview-Commit-ID: Ahd95HP6xiD

--HG--
extra : rebase_source : 0824a9f3a4aa699290c0ecea24fa9f8922b0e0e6
2017-03-13 12:53:45 -04:00
Xidorn Quan 7941bea334 Bug 1315601 part 5 - Implement MediaList for Stylo. r=heycam,manishearth
MozReview-Commit-ID: 1NSyoqguoJr

--HG--
extra : rebase_source : 63e482fa74ef1f88777d9fbe7cdc4c4cb7832666
2017-03-09 17:56:31 +11:00
Xidorn Quan 6f6f7ace2c Bug 1315601 part 4 - Add raw Servo types for MediaList and MediaRule. r=manishearth
MozReview-Commit-ID: HaeqBVL700g

--HG--
extra : rebase_source : cfa00f45b4ff00857956cad9094a68a22149a692
2017-03-09 15:10:11 +11:00
Manish Goregaokar 802cd7c207 Bug 1341690 - stylo: Make URLs work in inline style; r=emilio
MozReview-Commit-ID: 6Tc0kBw4V8c
2017-03-10 18:28:02 -08:00
Emilio Cobos Álvarez fb3b444270 Bug 1303229: Get the proper viewport size for animations. r=heycam,hiro
While we're here, don't re-recompute the default computed values, just grab them
from the device.

MozReview-Commit-ID: GqqnPLIwN2F
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-03-11 14:29:38 +01:00
Manish Goregaokar 07fc7c5b25 Bug 1329093 - Part 1: stylo: Handle SVG presentation attributes; r=bz
MozReview-Commit-ID: 9cymo3c9HIn
2017-03-09 17:46:21 -08:00
Hiroyuki Ikezoe f78e12aaf6 Bug 1338927 - Part 8: Drop Servo_AnimationValues_Populate. r=birtles
MozReview-Commit-ID: 83WCbKL35h

--HG--
extra : rebase_source : e56a070443a0502b1a69a7ec8bcab2dccbf09557
2017-02-23 09:52:44 +09:00
Hiroyuki Ikezoe 64f3fa3651 Bug 1338927 - Part 2: Generate ComputedKeyframeValues array from servo's computed values. r=birtles,manishearth
Servo_GetComputedKeyframeValues is almost the same as what we do in
KeyframeUtils::GetComputedKeyframeValues() for Gecko. Unlike the function
for Gecko, this function does not allocate each ComputedKeyframeValues element,
the allocation has been done before calling Servo_GetComputedKeyframeValues.

MozReview-Commit-ID: LRbriWoal2l

--HG--
extra : rebase_source : 785bb1bc6a62a2f9764fff09f5047942855e3c25
2017-02-23 09:52:43 +09:00
Shing Lyu 18c071c4c5 Bug 1337229 - Implement the deep operator== for RawServoAnimationValue r=hiro,manishearth
MozReview-Commit-ID: BiNNrIFXqtf

--HG--
extra : rebase_source : 78586bdf49b9d96db81af3e04b4a7522c1efce02
2017-02-24 15:05:23 +08:00
Iris Hsiao 7a962a70f2 Backed out changeset 2d21596af124 (bug 1337229) for developer's request 2017-02-22 17:40:13 +08:00
Shing Lyu 6ebbfba25f Bug 1337229 - Implement deep operator== for RawServoAnimationValue r=hiro,manishearth
MozReview-Commit-ID: Euvv9zarFe3

--HG--
extra : rebase_source : b67bb89ed35dca04d6dc81afdfbea701fdede449
2017-02-17 14:39:24 +08:00
Nazım Can Altınova 6d162a15e1 Bug 1338936 - Part 3: stylo: Support lang property; r=emilio
MozReview-Commit-ID: 6wg32flypt7
2017-02-19 14:03:45 -08:00
Manish Goregaokar d328a13fbb Bug 1338936 - Part 2: stylo: Add necessary stubbed-out bindings for ServoSpecifiedValues; r=bz,emilio
MozReview-Commit-ID: 6wg32flypt7
2017-02-19 14:03:41 -08:00
Sebastian Hengst a64b195d9b Backed out changeset 7d7457d5ca8a (bug 1338936) 2017-02-19 10:37:26 +01:00
Sebastian Hengst c7c107adf2 Backed out changeset 38de3820ca81 (bug 1338936) 2017-02-19 10:37:21 +01:00
Nazım Can Altınova 016d247d64 Bug 1338936 - Part 3: stylo: Support lang property; r=emilio
MozReview-Commit-ID: 6wg32flypt7
2017-02-18 21:51:14 -08:00
Manish Goregaokar 0a65788e4b Bug 1338936 - Part 2: stylo: Add necessary stubbed-out bindings for ServoSpecifiedValues; r=bz,emilio
MozReview-Commit-ID: 6wg32flypt7
2017-02-18 21:51:12 -08:00
Boris Chiou 921bec7548 Bug 1338087 - Part 2: Drop the computation of StyleAnimationValue on stylo. r=hiro
MozReview-Commit-ID: 4oAzC6m2vie

--HG--
extra : rebase_source : 139674c8059a918b6850b74e4bdeb8a49b4a2571
2017-02-10 15:51:00 +08:00
Carsten "Tomcat" Book 3ed98bee2a merge mozilla-inbound to mozilla-central a=merge 2017-02-10 13:49:56 +01:00
Boris Chiou 3382ea746c Bug 1337313 - Part 3: Rename Servo_AnimationValues_XXX with Servo_AnimationValue_XXX. r=hiro
MozReview-Commit-ID: 7sAEBtR8BQq

--HG--
extra : rebase_source : 3e66e4564c70753b83c7a54a5ba83ca2bba85a73
2017-02-10 12:03:08 +08:00
Boris Chiou 606e52ba0f Bug 1337313 - Part 2: Add AnimationValue::SerializeSpecifiedValue. r=hiro
Move the implementation of uncomputing to string into AnimationValue,
and add one more FFI for RawServoAnimationValue.

MozReview-Commit-ID: JFnXnGO3mlp

--HG--
extra : rebase_source : 83c0e084ef4202a5c98c668d68bfe9066196d735
2017-02-09 11:33:17 +08:00
Cameron McCormack 41cbd56383 Bug 1331294 - Part 6: Remove RestyleManager::HasPendingRestyles and Servo_Element_ShouldTraverse. r=bholley
MozReview-Commit-ID: 2ST5i7M4QZ4
2017-02-10 10:42:30 +08:00
Cameron McCormack 53ffd368aa Bug 1331294 - Part 4: Make ServoStyleSet::StyleDocument call Servo_TraverseSubtree unconditionally, and return whether a post-traversal is required. r=bholley
MozReview-Commit-ID: 6jgH6NDz3h
2017-02-10 10:42:30 +08:00
Boris Chiou 03d760be1b Bug 1335942 - Part 4: Support transform in SetAnimatable. r=hiro,manishearth
MozReview-Commit-ID: 97aTuUNa1RT

--HG--
extra : rebase_source : 7af2a826bafad0e93b9101a6bd01231311154e23
2017-02-08 11:36:41 +08:00
Boris Chiou 4fdebcb4a3 Bug 1335942 - Part 3: Use AnimationValue as the argument in layers::SetAnimatable. r=hiro,manishearth
MozReview-Commit-ID: 4XnLL6I291q

--HG--
extra : rebase_source : 1edb2bbe678f6ecb900945d8cacb776c138fa834
2017-02-08 11:31:15 +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 8d8004331b Bug 1328787 - Part 3: Add functions for filling each servo's animation keyframes into nsTArray<Keyframe>. r=heycam
The argument, ServoComputedValues*, will be used the case where keyframe is not specified.

MozReview-Commit-ID: HqqEXuYajCi
2017-01-29 12:58:28 +09:00
Boris Chiou 93204df88d Bug 1317209 - Part 2: Call Servo's Interpolation from Gecko. r=heycam,manishearth
1. Call Servo's interpolation from KeyframeEffectReadOnly::ComposeStyle().
2. Store the results into ServoAnimationRule.

MozReview-Commit-ID: LOp2mbXforg

--HG--
extra : rebase_source : eda5e275e81f2413b2a729e8d06663eae496c15c
2017-01-24 15:21:52 +08:00
Boris Chiou 05b18b1257 Bug 1317209 - Part 1: Introduce ServoAnimationRule and implement uncompute FFI. r=heycam,manishearth
1. Introduce ServoAnimationRule, which is an equivalent of AnimValuesStyleRule.
2. Wrap ServoAnimationRule and AnimValuesStyleRule into a struct, and
   use it as the parameter of Animation::ComposeStyle and
   KeyframeEffectReadOnly::ComposeStyle.
3. Uncompute the RawServoAnimationValues in ServoAnimationRule when we
   need it.

MozReview-Commit-ID: HahXDYBCAhH

--HG--
extra : rebase_source : cd8c6f3a8409abf97f04af888953ff0e77d98348
2017-01-24 15:19:18 +08:00
Emilio Cobos Álvarez 1aed15b692 Bug 1331213: Bootstrap a Gecko-side Device, and track it's dirtiness manually in the per-doc data. r=heycam
The setup is quite different to Servo-land, so add a comment about the different
setup.

Also, check viewport rules when flushing stylesheets. I believe that the
previous behavior is plain wrong, though I haven't taken the time to come up
with a test case.

In any case, it doesn't hurt any of both back-ends.

MozReview-Commit-ID: 46gtTkesOsr
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:20:03 +01:00
Manish Goregaokar cb2f1fea06 Bug 1331316 - stylo: support 1-arg CSS.supports(); r=heycam
MozReview-Commit-ID: 8di024Rxttn

--HG--
extra : rebase_source : 71b46d1f0950c96adb14c450e929d4b85b82e225
2017-01-15 23:09:42 -08:00
Manish Goregaokar 960f182e2f Bug 1317208 - Stylo: Store servo computed values for animation properties; r=birtles,heycam
MozReview-Commit-ID: IoQLN5tdIBw

--HG--
extra : rebase_source : da6a19192b639feaef828d2849fc8e4f8085c0f4
2016-11-30 17:34:54 -08:00
Bobby Holley 09ce7e77ed Bug 1325734 - Simplify ElementData and eliminate the concept of consuming styles. r=emilio 2017-01-09 11:50:16 -08:00
Boris Zbarsky 85a6ca2630 Bug 1298588 part 10, gecko piece. Pass through useful default styles to apply_declarations(). r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky eebd58fd31 Bug 1298588 part 7, gecko piece. Stop using initial_values in general in Gecko glue code. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky bd53996269 Bug 1298588 part 6, gecko piece. Stop using initial_values when doing inheritance in Gecko glue code. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky 9f8934b143 Bug 1298588 part 4, gecko piece. Recreate the default computed values for a document as needed. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky a3a6e58c68 Bug 1298588 part 2, gecko piece. Pass through an nsPresContext to the PerDocumentStyleData constructor. r=bholley 2017-01-04 14:52:26 -05: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
Bobby Holley 533ab579fc Bug 1324627 - Add a special, explicit path for lazy style resolution and use it for GetComputedStyle. r=heycam 2016-12-28 15:49:12 +08:00
Phil Ringnalda afc1c72dd2 Backed out changeset 5986d8880ad1 (bug 1324627) for a variety of computed style failures
MozReview-Commit-ID: AMTshx423hQ
2016-12-27 21:34:45 -08:00
Bobby Holley dccae432a9 Bug 1324627 - Add a special, explicit path for lazy style resolution and use it for GetComputedStyle. r=heycam
MozReview-Commit-ID: ECnoeHYkpT
2016-12-28 11:33:18 +08:00
Bobby Holley 38fbeaa270 Bug 1325728 - Simplify pseudo-element handling. r=heycam 2016-12-23 19:23:52 -08:00
Bobby Holley 3e1898e903 Bug 1325728 - Use Gecko's existing mechanism to coordinate flushing the Stylist. r=heycam 2016-12-23 19:23:50 -08:00
Cameron McCormack e9a3df412d Bug 1324341 - Part 2: Redo the cascade when CSSOM methods modify style sheets. r=xidorn
MozReview-Commit-ID: AIkwBaUlxD7
2016-12-19 14:30:14 +08:00
Xidorn Quan 200763a985 Bug 1323147 part 1 - Pass string and nsCSSPropertyID for property names across FFI. r=heycam,SimonSapin
MozReview-Commit-ID: 9m39cqaFfx

--HG--
extra : source : fda47b4012965e9e767bad8a87e9b0b1a165d13a
2016-12-16 10:02:48 +11:00
Bobby Holley 2207c01808 Bug 1322945 - Change skip_root to unstyled_children_only and use StyleNewChildren in more places. r=heycam
I noticed that our current behavior in ContentRangeInserted is incorrect. Unlike
ContentInserted (where this code lived originally), ContentRangeInserted takes a
start and end element. I'm not sure if we ever take that path for new content that
needs style, but it seemed sketchy. And generally, it seems nice to just always
style new content the same way (though we still need to style NAC by the subtree
root, since it hasn't been attached to the parent yet).

For situations where there is indeed only one unstyled child, the traversal
overhead should be neglible, since we special-case the single-element in
parallel.rs to avoid calling into rayon.

Being more explicit about what we want here also makes us more robust against
the other handful of callpaths that can take us into
nsCSSFrameConstructor::{ContentRangeInserted,ContentAppended}. Currently we
can call StyleNewSubtree on an already-styled element via RecreateFramesForContent,
which triggers an assertion in the servo traversal.

MozReview-Commit-ID: DqCGh90deHH
2016-12-12 18:39:33 -08:00
Cameron McCormack cbdbb4dafa Bug 1322098 - Tweak Servo_DeclarationBlock_SerializeOneValue declaration to match Servo definition. r=emilio 2016-12-04 22:09:32 -10:00
Cameron McCormack 72b73ba67c Bug 1321284 - Part 4.1: Add function to determine if we need to traverse from a given node for restyling. r=bholley
MozReview-Commit-ID: 3MaLp9AOJKm

--HG--
extra : rebase_source : 7481fb118731cf544524e162c947ceef730bade4
2016-12-02 16:54:43 +08:00
Carsten "Tomcat" Book 06069f9b3c Merge mozilla-central to mozilla-inbound 2016-11-29 16:49:35 +01:00
Xidorn Quan 118ed51896 Bug 1313293 - Implement CSSStyleSheet.insertRule and deleteRule. r=heycam
MozReview-Commit-ID: DLHWrNqVH0D

--HG--
extra : source : 48833e04a77f692121b691d197a02b9310bf3162
2016-11-29 22:59:55 +11: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
Boris Chiou f045a91867 Bug 1317178 - Pass the property name to Servo_DeclarationBlock_SerializeOneValue. r=birtles
In order to use single_value_to_css() in
Servo_DeclarationBlock_SerializeOneValue(), we need to pass the property name
and a flag for custom properties.

MozReview-Commit-ID: 5HfI2qOmPwP

--HG--
extra : rebase_source : 968468b3c9313c4ec3007ee9883075c8fc4ab769
2016-11-22 19:18:18 +08:00
Xidorn Quan d5356f5f67 Bug 1307357 followup 2 - Add AddRef/Release bindings to ServoBindingList.
MozReview-Commit-ID: 8U55TaPvAhs

--HG--
extra : amend_source : 6b5ec55ef9eb94e0bc93394dd862b03e1bb1af0a
2016-11-23 11:18:24 +11:00
Xidorn Quan 3646178578 Bug 1307357 part 7 - Implement ServoStyleRule::List. r=heycam
MozReview-Commit-ID: 1XRoc43RJKP

--HG--
extra : source : 9fb78fb599d0ac14d700a66fc297cba6991783e5
2016-11-23 10:26:20 +11:00
Xidorn Quan 4f4107f4b9 Bug 1307357 part 6 - Implement CSSStyleRule.style. r=heycam
MozReview-Commit-ID: 8Qvzc74wveE

--HG--
extra : source : 0661e153a0422bad7019724369e11200e92d9962
2016-11-23 10:26:20 +11:00
Xidorn Quan b30b5741f1 Bug 1307357 part 5 - Implement css text getters for ServoStyleRule. r=SimonSapin,heycam
MozReview-Commit-ID: 44bKwabU4eJ

--HG--
extra : source : f71cf6b7eb43202078462501da261a2b768a7610
2016-11-23 10:26:20 +11: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
Matt Brubeck 9c2c0561df Bug 1292275 - Stylo: Fix crash after failed stylesheet load. r=heycam
Fixes a crash ServoStyleSet::AddDocStyleSheet caused by
ServoStyleSheet::RawSheet returning null.

MozReview-Commit-ID: BdDosompqTv

--HG--
extra : rebase_source : 0b46c9f9327eec0bac3bb2ca697198887948e2e6
2016-10-25 10:15:38 -07:00
Xidorn Quan f9aa28d18d Bug 1294299 part 12 - Implemnet setter of properties. r=SimonSapin,heycam
MozReview-Commit-ID: 4tGUowsn6AK

--HG--
extra : source : 5d3d948883bac4624a62382d04e2cc036acb3525
2016-11-03 14:41:02 +11:00
Xidorn Quan 73635714ed Bug 1294299 part 11 - Implement getting and removing property. r=SimonSapin,heycam
MozReview-Commit-ID: 4xvfXR8mkfN

--HG--
extra : source : 97da71dbf3666dd5eaf4f568c1e2a13b603fd6fa
2016-11-03 14:41:02 +11:00
Xidorn Quan 3196565e73 Bug 1294299 part 9 - Implement Clone for ServoDeclarationBlock. r=heycam
MozReview-Commit-ID: 5y2h26j87Sz

--HG--
extra : source : 2e09860b35c9ab89fe959f9c6895a793858c4fee
2016-11-03 14:41:02 +11:00
Xidorn Quan d1d1109e6f Bug 1294299 part 5 - Implement getter and setter of cssText. r=heycam
MozReview-Commit-ID: Bho5PKtrT1I

--HG--
extra : source : 6db28f1d25c87fbc26125ab0a7d88d71c1a2a8ba
2016-11-03 14:41:02 +11:00
Xidorn Quan 20238e1d4c Bug 1294299 part 4 - Implement length and item getter. r=SimonSapin,heycam
MozReview-Commit-ID: IQs8Wjdsi1r

--HG--
extra : source : f1550376915d299d3aef5025107785d458788e9d
2016-11-03 14:41:02 +11:00
Xidorn Quan 92119e2034 Bug 1294299 part 3 - Make it possible to create empty ServoDeclarationBlock. r=heycam
MozReview-Commit-ID: FSdSXDFoxM

--HG--
extra : source : 47bdaffadab2dca8be8b6e49c7decf8ef02ea1e5
2016-11-03 14:41:02 +11:00
Xidorn Quan a899c1a9ac Bug 1312338 part 2 - Use nsACString to pass string parameters in binding functions. r=manishearth
MozReview-Commit-ID: BRKZBQJCrMQ

--HG--
extra : source : c0a7498ea402f1db4aca1c05508f577bacf21f0c
2016-10-25 10:19:45 +11:00
Xidorn Quan e49cb9930b Bug 1309109 part 7 - Remove the extra level of GeckoDeclarationBlock. r=manishearth,mystor
MozReview-Commit-ID: 2TzqrAWbaeD

--HG--
extra : source : fdd8dfc2cbe94dac981783c41c92188398c2f27f
2016-10-18 15:29:03 +11:00
Xidorn Quan 00100a750f Bug 1309109 part 3 - Rename ServoDeclarationBlock to RawServoDeclarationBlock. r=heycam
So that the new subclass of DeclarationBlock could just be
ServoDeclarationBlock.

MozReview-Commit-ID: 55KgfmWmmyU

--HG--
extra : source : 27c55355da341fce112b15d966eb9b2fa2c8834b
2016-10-18 15:29:03 +11:00