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

107 Коммитов

Автор SHA1 Сообщение Дата
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
Cameron McCormack 5948e5280e Bug 1310463 - Part 3: Add FFI functions for setting list-style-image. r=xidorn
MozReview-Commit-ID: LNK4UbfMfRk
---
 layout/style/ServoBindings.cpp | 60 +++++++++++++++++++++++++++++++++---------
 layout/style/ServoBindings.h   |  9 +++++++
 2 files changed, 57 insertions(+), 12 deletions(-)
2016-10-20 08:53:45 +08:00
Cameron McCormack 3b86d2992f Bug 1288302 - Part 6: Add FFI function to set nsStyleImageRequest values. r=xidorn
MozReview-Commit-ID: 448vAeDiKX7
2016-10-20 08:36:26 +08:00
Shing Lyu d2c96de863 Bug 1310117 - Implement Stylo CSS filter except url and drop-shadow. r=manishearth
MozReview-Commit-ID: HoF7KZdfuGe

--HG--
extra : rebase_source : 29f490a0e6055c538c1d5602bdc7f9c49088c88b
2016-10-17 14:16:16 +08:00
Xidorn Quan 403c55a07b Bug 1309109 followup - Fix bustage.
MozReview-Commit-ID: 7n2YM7JjRlw
2016-10-18 16:11:15 +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 05ef8466c6 Bug 1309109 part 5 - Store ServoDeclarationBlock rather than RawServoDeclarationBlock in nsAttrValue. r=heycam
MozReview-Commit-ID: HWqgjwif1qF

--HG--
extra : source : cf3b1baff3d1d6233c72e32cf01cd28a2b344ebf
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
Xidorn Quan 2e8b536eff Bug 1309868 part 5 - Use const pointer in C++ side for immutable borrowed reference. r=manishearth,heycam
MozReview-Commit-ID: 3aSOgckBtS7

--HG--
extra : source : 75117a5bef6ed1bd81864059f45429838686b2c7
2016-10-18 15:29:03 +11:00
Xidorn Quan be6a724c94 Bug 1309868 part 4 - Use mutable reference for Gecko_GetNextStyleChild. r=heycam
MozReview-Commit-ID: FIrh34PSOZy

--HG--
extra : source : 4ba2850ebc605a8e006f0331a06d59d515c115b2
2016-10-18 15:29:03 +11:00
Manish Goregaokar 6539d8d64f Bug 1309848 - Add bindings for constructing nsStyleQuoteValues; r=bholley,emilio
MozReview-Commit-ID: EjuzgZKMpPp

--HG--
extra : rebase_source : 75ee5c123b5a4754975c4568391c882ac149a01f
2016-10-13 17:15:01 +05:30
Cameron McCormack e05a781a4f Bug 1309081 - Initialize image layer as part of Gecko_EnsureImageLayersLength. r=manishearth
MozReview-Commit-ID: 4MszPafvcKs
2016-10-11 17:55:15 +08:00
Brian Birtles 0f8222d843 Bug 1302949 - Add a method to serialize a declaration block as a single value; r=heycam
MozReview-Commit-ID: 59CCT0P4CBm

--HG--
extra : rebase_source : 4a44d4265603c982483e5d7ef9460a7ab35c1e1e
2016-09-15 16:55:08 +09:00
Nathan Froyd 0f64a29d16 Bug 1306617 - use nsDependentAtomString for Gecko_AtomEquals* functions; r=bholley
This change should avoid a little bit of memory traffic, as we don't
have to copy the string data out of the atom or atomically increment the
refcount on the atom's string buffer.
2016-10-04 04:16:50 -04:00
Bobby Holley 6351b3ffb8 Bug 1304913 - Have Servo manage node data directly without FFI calls. r=Manishearth
MozReview-Commit-ID: H8f8VP18TbM
2016-09-23 15:58:48 -07:00
Manish Goregaokar 72b2c59e0f Bug 1300731 - stylo: Implement mask-image; r=heycam
MozReview-Commit-ID: DyGNnP07tZm

--HG--
extra : rebase_source : eadea6aa867eeeade198d30fa339f695bab10745
2016-09-06 18:20:30 +08:00
Manish Goregaokar 532f240619 Bug 1299392 - stylo: Add safety glue for borrowed and owned types, use for nodes/documents/iterators; r=bholley,mystor
--HG--
extra : rebase_source : 1b1ba19ce6149bed70fa464d41e82c36c8cd7670
2016-08-23 18:41:02 +05:30
Emilio Cobos Álvarez 1c69b29535 Bug 1296556: Don't store change hints for non-elements. r=heycam
MozReview-Commit-ID: 1pIajBpt4CT

--HG--
extra : rebase_source : c91a1ddac66f4e64909220d4425c49e5605ac7a4
2016-08-20 00:20:36 -07:00
Manish Goregaokar 97989b02e7 Bug 1298655 - Add bindings for constructing nsCSSShadowArray; r=bholley
MozReview-Commit-ID: IFaQwuhsKqH

--HG--
extra : rebase_source : 4ecc974b4edef66a48ae1d46d2fec382994f6a29
2016-08-28 10:11:17 +05:30
Manish Goregaokar 71b464a2fc Bug 1297064 - stylo: Add bindings for filling nsStyleImageLayers lists; r=heycam
MozReview-Commit-ID: Bstgf23gMRu

--HG--
extra : rebase_source : 7c98dcbd2cc1ae730ce788e9db0071c1595ceb6b
2016-08-22 18:31:41 +05:30
Bobby Holley 35238ecf4d Bug 1292662 - Temporarily switch off frame reconstruction hints for native anonymous nodes. r=heycam 2016-08-25 21:36:55 -07:00
Bobby Holley 515ceaa2f9 Bug 1292662 - Use GetFlattenedTreeParent in Servo parent hooks where appropriate. r=heycam
Otherwise explicit children bound to insertion points will appear to have a
placeholder XBL children element as their parent, which will break during style
traversal because we never traverse or style such nodes.
2016-08-25 21:36:48 -07:00
Bobby Holley 7681e4498e Bug 1292662 - Add an API for the Servo style system to traverse anonymous children. r=heycam 2016-08-25 21:36:43 -07:00
Xidorn Quan b1014aeb0c Bug 1296186 part 2 - Make ServoDeclarationBlock refcounted. r=heycam
MozReview-Commit-ID: 2X0JX8HA4ej

--HG--
extra : rebase_source : e5e888be0fb98f995a7ac17bd0985177206914a2
extra : source : 53ce9619813b91b26a5bc51b7417c55e8b9cb505
2016-08-23 10:32:20 +10:00
Xidorn Quan 0fab79f248 Bug 1296186 part 1 - Make borrowed type just alias of corresponding pointer type. r=bholley
Compilers would complain about using user-defined type as return type
of extern "C" functions. A struct is considered a user-defined type if
there is any non-trivial constructor.

Having a type without non-trivial constructor for borrowed type would
be very inconvenient. Actually the currently borrowed type doesn't seem
to provide any additional safety / benefit over a plain pointer.

MozReview-Commit-ID: ncxmCEWCkv

--HG--
extra : rebase_source : 43a95bbcb05759f27837629daec6ce915a68b062
extra : source : 2a544c24bfb6a3412e59acbee89a5a393c31d5b6
2016-08-23 10:32:20 +10:00
Emilio Cobos Álvarez 3c832018ee Bug 1292618: Add Gecko_CopyStyleContentsFrom. r=heycam
This allows to copy the `content` property value from one nsStyleContent to
another, in order to implement content: inherit.

MozReview-Commit-ID: 75mQpGRKKba
Signed-off-by: Emilio Cobos Álvarez <ecoal95@gmail.com>
2016-08-19 20:24:28 -07:00
Emilio Cobos Álvarez e7bc43ddc7 Bug 1292618: Support basic pseudo-element restyling. r=heycam
:before and :after only, for now.

MozReview-Commit-ID: 9hLFvVhqIrN
2016-08-19 20:24:27 -07:00
Emilio Cobos Álvarez 00ab304ee2 Bug 1292618: Add Gecko_ClearPODTArray to clear arrays of types without destructors. r=heycam
MozReview-Commit-ID: 3RRvrXn6ZTD
Signed-off-by: Emilio Cobos Álvarez <ecoal95@gmail.com>
2016-08-19 20:24:24 -07:00
Xidorn Quan 6cde2b431b Bug 1296594 - Move Servo binding functions to a list file. r=bholley
MozReview-Commit-ID: GvF8E7LXM1g

--HG--
extra : rebase_source : d2fbe617368bf8d216ca0d6ac6bc394dc4a26b24
2016-08-19 21:44:43 +10:00
Manish Goregaokar ef51453f37 Bug 1295662 - stylo: Add bindings for StyleClipPath; r=heycam
MozReview-Commit-ID: E1ALXo7qd43

--HG--
extra : rebase_source : 60c6dcddc13d0e5ca2c9214dc22ca232200faf56
2016-08-15 21:18:11 +05:30
Manish Goregaokar 41f64b0230 Bug 1275913 - Add Borrowed types for sharing arcs with Rust; r=bholley
MozReview-Commit-ID: 8FyVPXRogDV

--HG--
extra : rebase_source : 57880ce82632b75fd7e4ad760a6c85ead91639a1
2016-08-16 10:40:05 +05:30
Manish Goregaokar f054dcd843 Bug 1275913 - Use already_addrefed properly when dealing with arcs sent from servo to gecko; r=bholley
MozReview-Commit-ID: 5FDS8J2Fo1G

--HG--
extra : rebase_source : d58c4a9ceeaa64c522bd25452d607e3593eab619
2016-08-16 10:38:46 +05:30
Phil Ringnalda 0ba1763460 Backed out 2 changesets (bug 1275913) for static analysis bustage
CLOSED TREE

Backed out changeset 4420244e8fba (bug 1275913)
Backed out changeset 324554b04f19 (bug 1275913)
2016-08-15 22:27:16 -07:00
Manish Goregaokar f1013b42d3 Bug 1275913 - Add Borrowed types for sharing arcs with Rust; r=bholley
MozReview-Commit-ID: 8FyVPXRogDV

--HG--
extra : rebase_source : b6fde5464138b5956982ec148822adacd55d7427
2016-08-16 10:40:05 +05:30
Manish Goregaokar 3f96d89612 Bug 1275913 - Use already_addrefed properly when dealing with arcs sent from servo to gecko; r=bholley
MozReview-Commit-ID: 5FDS8J2Fo1G

--HG--
extra : rebase_source : ecbcb3c2eff5a390a24ab97f93899c87a463c791
2016-08-16 10:38:46 +05:30
Emilio Cobos Álvarez 9faca13ea4 Bug 1292930: stylo: Store the change hint generated by non-elements in their parent element. r=heycam
Otherwise, the parent style context doesn't have some inherited structs in the
cache, so it avoids comparing them entirely.

For example, the following example:

<p>Hey</p>

p { color: blue }
p:hover { color: red }

Wouldn't work as intended, because when calculating the change hint the
nsStyleColor struct in the element hasn't been accessed by layout (only the
child text frame's has), so it will report a change hint of 0 when hovering over
the paragraph, and we would ignore the nsChangeHint_ReconstructFrame generated
by the text node.

MozReview-Commit-ID: FW7Thhuh7LG
2016-08-10 22:01:35 -07:00
Bobby Holley cbb507cc3e Bug 1292278 - Zero-index the namespace manager URIs. r=bz
The current setup here tries to "save" an entry in the list by checking
for the "None" namespace everywhere and special-casing it. We can simplify
this a lot by just adding the empty atom to the beginning of the array,
which is the value that servo uses to represent "namespace none" anyway.
2016-08-09 15:28:41 -07:00
Bobby Holley ba66557dc5 Bug 1291885 - Rejigger init hook and add shutdown hook. r=emilio 2016-08-03 18:31:01 -07:00
Emilio Cobos Álvarez 7f36b64101 Bug 1290335: stylo: Allow processing change hints generated from Servo. r=heycam
MozReview-Commit-ID: Alc0wcXvHcD
2016-08-03 15:11:15 -07:00
Carsten "Tomcat" Book 423bdfd2fd Merge mozilla-central to mozilla-inbound
--HG--
rename : dom/media/platforms/apple/ReorderQueue.h => dom/media/platforms/ReorderQueue.h
2016-08-03 17:08:41 +02:00
Carsten "Tomcat" Book eeacfbeff0 merge mozilla-inbound to mozilla-central a=merge 2016-08-03 17:03:41 +02:00
Cameron McCormack 41505f6b25 Bug 1291207 - Pass base URI string to Servo_StylesheetFromUTF8Bytes. r=bholley
MozReview-Commit-ID: KrsEycGJMFl

--HG--
extra : rebase_source : 2a29870cc51aff18d91a9644a53116e26f10f065
2016-08-02 17:05:22 +08:00
Michael Layzell 5800e6b7d7 Bug 1281935 - Part 2: Remove the FakeRef hack added in Bug 1283620, r=bholley 2016-08-02 15:27:43 -04:00