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

293 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan 8d534d8df5 Bug 1345697 part 1 - Various fix for adding new files. r=heycam
MozReview-Commit-ID: 33Ssd7tNZ2K

--HG--
extra : source : 407e3aa3f1b84931b5808861aa9160ce9a733ab9
2017-05-19 16:12:34 +10:00
Ravi Shankar 22e28d36ee Bug 1363664 - Add bindings for StyleGridTemplate and nsTArray<nsString>; r=heycam
MozReview-Commit-ID: AsVxzu4SUu9

--HG--
extra : rebase_source : e8650549bd6adb80fde898474e06a3f851982fdb
2017-05-18 23:26:21 +05:30
cku 5e40c4609b Bug 1310885 - Part 11. (gecko) Clean up unused things. r=heycam
MozReview-Commit-ID: CxHbNyVNSz8

--HG--
extra : rebase_source : c9b3600e31023d79736f4df871ed741c37b1647f
extra : intermediate-source : d650a2abb555fb2bed3d832bc8f007ec7909c99e
extra : source : 33e2a248ed4da28bba3b0e4b745e3d894c68ed4d
2017-04-28 19:47:04 +08:00
Boris Zbarsky 3e16b62a08 Bug 1365362. Make Gecko_AtomAttrValue work correctly when the attr's value is not an atom. r=emilio
MozReview-Commit-ID: Btf7ZI4ZdMX
2017-05-17 00:53:52 -04:00
Xidorn Quan 3cf4744214 Bug 1328319 part 8 - Make stylo use counter-style for list-style-type and counter functions. r=heycam,SimonSapin
MozReview-Commit-ID: AUU3AbwOpPs

--HG--
extra : rebase_source : 0c59d9182506361558320c90ebce763456a1be52
2017-05-15 14:36:43 +10:00
Xidorn Quan a27d9254df Bug 1328319 part 5 - Add bindings for list and pair list value of nsCSSValue. r=manishearth
MozReview-Commit-ID: KO0UCkrlxBi

--HG--
extra : rebase_source : 9725485a38d32caf1fcd6b1420c9d05b1da0ca2e
2017-05-15 14:20:52 +10:00
Xidorn Quan 25a2a50c79 Bug 1328319 part 4 - Add binding for setting pair value of nsCSSValue. r=manishearth
MozReview-Commit-ID: 2bAH90Mh4GP

--HG--
extra : rebase_source : 1830ed73cf319932b63b55533e61755d3362e116
2017-05-09 22:36:03 +10:00
Xidorn Quan aa48508a9a Bug 1328319 part 3 - Add support for auto value in nsCSSValue sugar. r=manishearth
MozReview-Commit-ID: 9QQ9fdU0all

--HG--
extra : rebase_source : acd0ae6193ae9b8ec43068be19e4d05a39b587c4
2017-05-15 14:14:59 +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
Fernando Jimenez Moreno 727a9d6d27 Bug 1350175 - Part 3: Set source position for the different rules. r=SimonSapin,xidorn
MozReview-Commit-ID: 6AGNOLqoNHx

--HG--
extra : rebase_source : 476d440c18e98e3fa690fd064bf42483e63ae057
2017-05-15 14:02:13 +02:00
Xidorn Quan 8c54e3ce73 Bug 1363699 part 1 - Make named CounterStyle objects not refcounted. r=heycam
This change does the following:
* Introduce a new smart pointer called CounterStylePtr which either
  holds an AnonymousCounterStyle strongly, or a named CounterStyle
  managed by CounterStyleManager weakly, and use it to replace all
  RefPtr<CounterStyle> around the codebase.
* Rename CounterStyleManager::mCacheTable to mStyles to reflect the
  fact that it is used to manage all styles, not just for caching.
* Add a retired styles list which collect all named CounterStyle
  evicted from mStyles, and post a PostRefreshObserver to destroy
  objects in that list after next flush.
* Remove helper functions for counter style in nsStyleList and expose
  mCounterStyle directly, to make code simpler with the new pointer.

Reason for adding a new smart pointer type rather than making their
AddRef/Release behave like BuiltinCounterStyle is that, it is possible
that after a flush, some stale style structs may still be alive. They
can contain pointer to destroyed CounterStyle objects. Although the
actual content may never be accessed anymore, RefPtr may still access
the object for refcounting during destruction.

MozReview-Commit-ID: xxegwSDhNb

--HG--
extra : rebase_source : bb5443f0eb56eee51cbdfd08e0400335648610e8
2017-05-13 21:42:23 +10:00
Sebastian Hengst 484d2b7f51 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Jduo3F6TzgF
2017-05-14 18:04:29 +02:00
Hiroyuki Ikezoe cbcc8022b4 Bug 1354947 - Drop Gecko_AnimationAppendKeyframe. r=birtles
MozReview-Commit-ID: 9B9TjkJ5CxO

--HG--
extra : rebase_source : 1930b77481e1f3be46a2bf4750445e4f72292d15
2017-05-13 16:34:38 +09:00
Hiroyuki Ikezoe c115978360 Bug 1354947 - Fill in missing keyframe values. r=birtles
This is mostly a mimic of what we do in
GeckoCSSAnimationBuilder::FillInMissingKeyframeValues().

In Gecko we iterate over the properties just once because we can take the
index for both the synthesized start and end keyframe and easily look them up
as needed. However, in this patch we synthesize the start and end keyframes
separately and iterate over the properties twice because that's easier than
getting two indices and then later calling another FFI to dereference each of
them, and neater than getting back two pointers

MozReview-Commit-ID: 1e0R9AKzgaG

--HG--
extra : rebase_source : a37c406480c2d0ce2b8c4d4ad804622cac2083fa
2017-05-13 16:34:38 +09:00
Hiroyuki Ikezoe 8fd511dac1 Bug 1354947 - Merge keyframe values at the same offset and of the same timing function. r=birtles
MozReview-Commit-ID: 4BTYAGjFb3V

--HG--
extra : rebase_source : 6c49d3bf381b71ce8e9a161e50c3f357356e551c
2017-05-13 16:34:38 +09:00
cku 4877f8d094 Bug 1310885 - Part 3. (gecko) Create a new API to receive cached ImageValue from stylo.
This patch implement several things:
1. Implement a new constructor for nsStyleImageRequest to receive an existing
   ImageValue from the caller.
2. Implement Gecko_ImageValue_Create to allow stylo to create a gecko::ImageValue
   object.
3. Implement Gecko_SetXXXXImageValue to allow stylo to pass a created ImageValue
   back to gecko.

MozReview-Commit-ID: 1SbW5w8FSV2

--HG--
extra : source : 63777ecf4c7138a0ce5847753a41efcbfc8e2b20
extra : intermediate-source : dced488c119da7e3ae27c903c0dcc76593d8a06d
2017-05-02 16:20:01 +08:00
Julian Seward 83969e88eb Bug 1361258 - Add a jemalloc_thread_local_arena API with a binding for rust. r=glandium
The intent of the API is to allow threads to opt-in to use a separate
mozjemalloc arena.

This indroduces a dummy shell with no actual implementation.
2017-05-12 18:08:08 +09:00
Phil Ringnalda 0b5026dbf2 Backed out 3 changesets (bug 1310885) for heap write hazard failures
Backed out changeset 77352010d8e8 (bug 1310885)
Backed out changeset 9245a2fbb974 (bug 1310885)
Backed out changeset 7c2db290c4b6 (bug 1310885)

MozReview-Commit-ID: 7JWuxt9QDO0
2017-05-11 23:03:31 -07:00
cku bbbef1e5fb Bug 1310885 - Part 3. (gecko) Create a new API to receive cached ImageValue from stylo. r=heycam
This patch implement several things:
1. Implement a new constructor for nsStyleImageRequest to receive an existing
   ImageValue from the caller.
2. Implement Gecko_ImageValue_Create to allow stylo to create a gecko::ImageValue
   object.
3. Implement Gecko_SetXXXXImageValue to allow stylo to pass a created ImageValue
   back to gecko.

MozReview-Commit-ID: 1SbW5w8FSV2

--HG--
extra : rebase_source : f3ce46922ded8414dabb70ef0e58177f48c4bb14
extra : intermediate-source : c146e6dcac12ed597e785dbf4f3d9c1ad323023e
extra : source : 63777ecf4c7138a0ce5847753a41efcbfc8e2b20
2017-05-02 16:20:01 +08:00
Boris Zbarsky 3ec9d2495f Bug 1363961. Fix the order of arguments to FindInReadable in AttrHasSubstring. r=heycam
MozReview-Commit-ID: BAsd9bN4dtA
2017-05-11 13:25:14 -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
Wes Kocher c7918207d5 Backed out changeset feea2db3ddbe (bug 1363664) at developer's request a=backout
MozReview-Commit-ID: 83nv6jxNwoL
2017-05-10 09:51:38 -07:00
Ravi Shankar bacca6ee5c Bug 1363664 - Add bindings for StyleGridTemplate and nsTArray<nsString>; r=heycam
MozReview-Commit-ID: AsVxzu4SUu9

--HG--
extra : rebase_source : 55f6b62e574aba07c21ac0d4041de6a15a4c3f41
2017-05-10 17:51:39 +05:30
Wes Kocher e2902f93a3 Merge inbound to m-c a=merge
MozReview-Commit-ID: Fp2oBAcru51
2017-05-09 14:34:34 -07:00
Fernando Jimenez Moreno 6b3f90e5b4 Bug 1355408 - Part 1: Support @-moz-document rule in stylo. r=xidorn
MozReview-Commit-ID: BMoA7tb7ixj

--HG--
extra : rebase_source : 1329b4c008b4ee3e2623a496c8ef82f610d6e3ce
2017-04-18 18:59:43 +02:00
cku 2f9aebf9b0 Bug 1310885 - Part 1. (gecko) Export RefPtr<ImageValue> from gecko to stylo.
MozReview-Commit-ID: BK5TXhl8jjP

--HG--
extra : source : ebc098ac4add22c0696937f52d14d9a4ac085bae
2017-04-28 21:38:27 +08:00
Xidorn Quan aa5784a8cf Bug 1362302 part 2 - Fix stylo issue after changing counter style names to nsIAtom. r=manishearth
Only counter() and counters() functions are affected so far, since
list-style-type hasn't been hooked with counter-style yet.

MozReview-Commit-ID: EAuT3KvPpNY

--HG--
extra : rebase_source : ed561f7f644d638af6d8bcb57182946f5ee1a7f2
2017-05-05 21:56:57 +10:00
Manish Goregaokar 08fe0e004f Bug 1358634 - Handle fallback to default variable font in case of nonexistant generic ; r=heycam
MozReview-Commit-ID: GHUfkmJNgqG
2017-05-05 12:26:00 -07:00
Anthony Ramine a2e7b85307 Bug 1361985 - Add Servo bindings for GridTemplateAreasValue. r=Manishearth
MozReview-Commit-ID: fi5j076kwH

--HG--
extra : rebase_source : 380b1a60a5385d762ee2f73bb089aaefb86c0c53
2017-05-04 12:24:01 +02:00
Cameron McCormack a3bfc246a5 Bug 1356103 - Part 10: Re-enable font metrics querying for ch and ex units in Servo traversal. r=bholley
MozReview-Commit-ID: 9rKsTyfgEIl

--HG--
extra : rebase_source : 818937cb2ca540cd78fce82e3d432e95cfe4d8b6
2017-05-04 16:20:14 +08:00
Cameron McCormack 23a9137f03 Bug 1356103 - Part 7: Use PostTraversalTasks to deal with FontFace's Promise during Servo traversal. r=bholley
The PostTraversalTask does not take a strong reference to the FontFace
object, since as a DOM object, we can't call AddRef/Release on it
from the Servo style worker threads.  The FontFace objects that we
encounter are all held on to by the FontFaceSet, and none of the
work that we do during font loads should drop FontFace objects
from the FontFaceSet.  (That only happens under
nsIDocument::FlushUserFontSet, which is only called on the
main thread.)

MozReview-Commit-ID: 5CdtGQYC9aL

--HG--
extra : rebase_source : 8ce5ff0c4ca306ccc240a86e7cacb588cc6c94c7
2017-04-30 14:51:29 +08:00
Cameron McCormack 115e900d63 Bug 1356103 - Part 2: Add functions to assert the Servo font metrics mutex is locked. r=bholley
MozReview-Commit-ID: QtydYSYvxW

--HG--
extra : rebase_source : 50adc555668ae7c24fc01b6a32fc006fe609b0d5
2017-04-30 13:15:42 +08:00
Iris Hsiao 0a6db9e69f Backed out 12 changesets (bug 1356103) for build bustage at PostTraversalTask.h
Backed out changeset 9fb487252c28 (bug 1356103)
Backed out changeset 301237c65945 (bug 1356103)
Backed out changeset 7bc3a4861a39 (bug 1356103)
Backed out changeset 2f383d89184b (bug 1356103)
Backed out changeset a03112e1c9d5 (bug 1356103)
Backed out changeset c60b4c9cbd83 (bug 1356103)
Backed out changeset 34280baeaabe (bug 1356103)
Backed out changeset 31a0881cfb47 (bug 1356103)
Backed out changeset 529d037f9c33 (bug 1356103)
Backed out changeset 1c7831db6b07 (bug 1356103)
Backed out changeset 559f06e32df3 (bug 1356103)
Backed out changeset 784865d234cd (bug 1356103)
2017-05-04 17:56:25 +08:00
Cameron McCormack 63d057a7b8 Bug 1356103 - Part 10: Re-enable font metrics querying for ch and ex units in Servo traversal. r=bholley
MozReview-Commit-ID: 9rKsTyfgEIl

--HG--
extra : rebase_source : 69d06a1857cf687d8b1857c1d243c3dce756b953
2017-05-04 16:20:14 +08:00
Cameron McCormack 2870acb23f Bug 1356103 - Part 7: Use PostTraversalTasks to deal with FontFace's Promise during Servo traversal. r=bholley
The PostTraversalTask does not take a strong reference to the FontFace
object, since as a DOM object, we can't call AddRef/Release on it
from the Servo style worker threads.  The FontFace objects that we
encounter are all held on to by the FontFaceSet, and none of the
work that we do during font loads should drop FontFace objects
from the FontFaceSet.  (That only happens under
nsIDocument::FlushUserFontSet, which is only called on the
main thread.)

MozReview-Commit-ID: 5CdtGQYC9aL

--HG--
extra : rebase_source : 8e4f21a12ae5ca81017293d5b06f1551e307ea5d
2017-04-30 14:51:29 +08:00
Cameron McCormack f6dd5eb7bb Bug 1356103 - Part 2: Add functions to assert the Servo font metrics mutex is locked. r=bholley
MozReview-Commit-ID: QtydYSYvxW

--HG--
extra : rebase_source : 50adc555668ae7c24fc01b6a32fc006fe609b0d5
2017-04-30 13:15:42 +08:00
Wes Kocher 5b73758a65 Merge m-c to inbound, a=merge
MozReview-Commit-ID: ILz91Vj4gT5
2017-05-02 17:39:58 -07:00
Robert Longson 0c1b6c1fcc Bug 1347409 part 2 - serialise fill and stroke fallback properly r=cam 2017-05-02 22:12:59 +01:00
KuoE0 6107d7ca3c Bug 1356104 - (Part 1) The implementation inn Gecko of the FFI function `Gecko_GetAppUnitsPerPhysicalInch`. r=xidorn
MozReview-Commit-ID: IVmmpQIw0JG

--HG--
extra : rebase_source : cc994caaff5143a888e02605ef991424bbf37e8d
2017-04-25 16:29:46 +08:00
Wes Kocher dec0a5e74d Backed out changeset 404075957700 (bug 1362843) for stylo build bustage a=backout CLOSED TREE
MozReview-Commit-ID: FVWtqRDNjjU
2017-05-08 14:48:04 -07:00
Ravi Shankar a89898688c Bug 1362843 - Add bindings for StyleGridTemplate and nsTArray<nsString>; r=heycam,xidorn
MozReview-Commit-ID: DYpihGT5ngd

--HG--
extra : rebase_source : 135ca9dfd3cbd581546cd93a51582158e0493fff
2017-05-08 14:16:32 +05:30
Nazım Can Altınova 3614d47845 Bug 1360659 - stylo: Support other unit types in computed angle r=emilio
MozReview-Commit-ID: 7pwoXpHAxlz

--HG--
extra : rebase_source : 4bbb6fcb542ac61415f734dca6e0a4abbf034b1c
2017-04-28 18:33:00 +03: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 d77548d239 Bug 1331047: Implement the new traversal semantics for stylo. r=bholley,hiro
MozReview-Commit-ID: 4BXx9JpGZKX
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-27 17:06:11 +02:00
Brian Birtles (:birtles) 9325ab468e Bug 1355348 - Fix hazard bustage by duplicating code in Gecko_GetStyleAttrDeclarationBlock and Gecko_GetSMILOverrideDeclarationBlock on a CLOSED TREE; r=me a=bustage-fix 2017-04-27 11:54:26 +02:00
Brian Birtles f37fe9b84d Bug 1355348 - Move ServoComputedValuesWithParent to separate file; r=hiro
We will use this type later in this patch series in nsSMILCSSProperty so this
patch moves it to a separate file so it can be re-used.

MozReview-Commit-ID: 4Z7YbsQ9xz4

--HG--
extra : rebase_source : 0f6f7248d1a4dfc77360829f3a0e6ed263f156db
2017-04-26 13:00:11 +09:00
Brian Birtles f8eabbbd4d Bug 1355348 - Add FFI for getting SMIL override styles; r=heycam
MozReview-Commit-ID: 7grK3meDOZD

--HG--
extra : rebase_source : 2abaf2f99b5850f3b1a07c667e9801c8dc14b30b
2017-04-27 11:09:55 +09:00
Boris Chiou afec853085 Bug 1357357 - Part 1: Add one FFI to set unsupported transition property. r=emilio
We need an FFI, Gecko_StyleTransition_SetUnsupportedProperty, to set the
mProperty and mUnknownProperty of StyleTransition. In Servo, we put
non-animatable, custom, and unrecognized property together, so this FFI
should look up the nsCSSPropertyID of the input string, and then store the
value and the unknown property string (if any) back to StyleTransition.

MozReview-Commit-ID: 4iZNKXNSrzj

--HG--
extra : rebase_source : 088daa620133418afdc6b1c97b6e90ceb7cf3b75
2017-04-26 17:41:45 +08:00
Jeremy Chen 3e5064f08f Bug 1348173 - stylo: combined gecko side patch for -moz-border-*-colors support. r=heycam
MozReview-Commit-ID: 53gWkWKJNmV

--HG--
extra : rebase_source : 5bd1ddaf954533094c77a3ca5bdf9f3c3441056f
2017-04-25 14:50:44 +08:00