Commit Graph

204 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
0bbe4a681c Bug 1288590: Use GetAttrInfoAt in ServoBindings.cpp. r=bholley
MozReview-Commit-ID: 5tglYnx8pJk
2016-07-27 11:18:33 -07:00
Jonathan Kingston
556ed99119 Bug 1173199 - Create preference to disable MathML. r=heycam, r=huseby, r=smaug
If the mathml.disabled preference is true, treat <math> and other MathML
elements as generic XML elements.

This patch disables the rendering code of MathML however preserves the
namespace so to reduce the breakage.

Original patch by: Kathy Brade <brade@pearlcrescent.com>

MozReview-Commit-ID: A2f2Q2b4eqR

--HG--
extra : rebase_source : 3c8530816727c01b68a831d560bfe16e7b02bd9d
2016-06-28 15:24:48 +01:00
Emilio Cobos Álvarez
253dfd8aad Bug 1287951: stylo: Add support for computing style hints from Servo. r=heycam
MozReview-Commit-ID: ALuJxcfAMuL
2016-07-21 16:57:52 -07:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
Cameron McCormack
c233ad3334 Bug 1287382 - Hook up the 1-arg version of CSS.supports() to the Servo backend. r=dholbert
MozReview-Commit-ID: EDQGXOVgWEC

--HG--
extra : rebase_source : 66583e4a5961404d9c6da9a21466041d710a87ed
2016-07-18 16:29:04 +08:00
Cameron McCormack
037f4f8a4b Bug 1287383 - Support style="" attributes longer than 255 characters when using the Servo style backend. r=emilio
MozReview-Commit-ID: 9o5Go7lnAhG

--HG--
extra : rebase_source : 822420930ae7c74f56258a82d90cf3b46c7317c9
2016-07-18 16:36:59 +08:00
Manish Goregaokar
25cbdb0042 Bug 1285235 - Use fully qualified inner types instead of casting; r=emilio 2016-07-12 13:40:39 +05:30
Manish Goregaokar
53070c2807 Bug 1285235 - Add EnsureLengthAtLeast function to nsStyleImageLayers for Stylo; r=bholley 2016-07-14 14:29:48 +05:30
Manish Goregaokar
4d3c9798eb Bug 1285235 - Add bindings for growing nsTArrays; r=bholley 2016-07-14 14:29:37 +05:30
Emilio Cobos Álvarez
474ff66ca4 Bug 1285474: stylo: Add dirtiness-tracking hooks for Servo and convenient methods. r=bholley
Also, guard with asserts the access to the new shared flags.

MozReview-Commit-ID: H9UFFHRPmiu
2016-07-12 00:33:57 -07:00
Bobby Holley
91a48b929e Bug 1283620 - Implement attribute API for servo. r=mrbkap 2016-07-07 09:59:09 -07:00
Cameron McCormack
3265f73629 Bug 1280772 - Part 3: Store Servo-parsed style="" attributes in nsAttrValues. r=bholley 2016-06-24 13:35:12 +10:00
Cameron McCormack
fcd9433659 Bug 1280746 - Remove Gecko_HashAtom in favor of stylo poking at mHash directly. r=dholbert 2016-06-22 09:36:43 +10:00
Emilio Cobos Álvarez
7d1a406c3f Bug 1276085: followup: Remove Gecko_SetGradientStop now we have nsTArray bindings r=heycam
See https://github.com/servo/servo/pull/11456, when they where added.

MozReview-Commit-ID: FsHMk9FjOo1
2016-06-09 13:33:21 +02:00
Matt Brubeck
618e68471e Bug 1278647 [stylo] Add font family bindings for Servo r=heycam
MozReview-Commit-ID: IlEB0f1xrKF

--HG--
extra : rebase_source : aa9cd08f0abf281dcf149435fbb2e39fc37c8367
2016-06-07 12:13:24 -07:00
Emilio Cobos Álvarez
e149d9fa0d Bug 1276085: stylo: Support creating and setting gradient stops from Servo r=heycam
MozReview-Commit-ID: Gh6CMrf1PE5
2016-06-01 10:36:15 +02:00
Bobby Holley
70200c80e9 Bug 1275755 - Remove main-thread restrictions on atoms. r=froydnj 2016-05-28 17:08:10 +01:00
Manish Goregaokar
16e3e13447 Bug 1287435 - stylo: Add bindings for nsStyleCoord::Calc; r=heycam 2016-07-15 20:56:48 +05:30
Bobby Holley
2f28cfe4db Bug 1275766 - Implement Gecko_GetElementId and Gecko_GetClassOrClassList. r=heycam 2016-05-25 22:06:45 -07:00
Bobby Holley
d578dbf50c Bug 1275766 - Invoke the proper URLValue constructor from Servo. r=heycam
Right now these are just coercing the values and invoking the main thread
constructor.
2016-05-25 22:06:40 -07:00
Cameron McCormack
4e94a3cb48 Bug 1275452 - Part 1: Add Servo_RestyleSubtree for eagerly restyling a subtree of a document. r=bholley
--HG--
extra : rebase_source : add50774bc74cc2651b057e5a9518cf2b8b0bb12
2016-05-25 16:55:49 +10:00
Cameron McCormack
b42139ed5f Bug 1273838 - Part 4: Add FFI set/copy methods for -moz-binding. r=bholley
--HG--
extra : rebase_source : 2f635bf73bf93482a64b4e5d269ab034b20200a2
2016-05-21 10:02:54 +10:00
Cameron McCormack
b2758c810d Bug 1273838 - Part 3: Pass sheet base/referrer/principal to Servo_StylesheetFromUTF8Bytes. r=bholley
--HG--
extra : rebase_source : 79e386f605f08e07f4737f044b6bbd3b413e388d
2016-05-21 10:02:54 +10:00
Cameron McCormack
2af45ab23d Bug 1273838 - Part 2: Add stylo bindings glue for refcounting nsIPrincipals and nsIURIs. r=bholley
--HG--
extra : rebase_source : 3feef1315c4c8716952f630a38a4802e118b44ed
2016-05-21 10:02:54 +10:00
Cameron McCormack
c528f52278 Bug 1273771 - Followup: Use nsDependentCSubstrings for pointer/length pairs passed in from Servo. r=bholley 2016-05-19 16:54:58 +10:00
Bobby Holley
54e2b1cf7e Bug 1273771 - Atom infrastructure for Servo. r=heycam
This is based on earlier work by Ms2ger.
2016-05-18 18:14:02 -07:00
Sebastian Hengst
542bd271b5 Backed out changeset 48d8323378ac (bug 1273771) for Windows build bustage. r=backout on a CLOSED TREE 2016-05-18 22:32:30 +02:00
Bobby Holley
495a804524 Bug 1273771 - Atom infrastructure for Servo. r=heycam
This is based on earlier work by Ms2ger.
2016-05-18 12:22:44 -07:00
Cameron McCormack
0e7490d676 Bug 1270741 - Correctly resolve styles for non-elements. r=bholley 2016-05-06 00:32:00 +02:00
Bobby Holley
b852e0988e Bug 1269933 - Add hooks for Servo to manipulate list-style-type. r=xidorn 2016-05-06 00:09:18 -07:00
Bobby Holley
a8015a6b72 Bug 1269936 - Introduce and call a runtime-wide servo initialization hook. r=heycam 2016-05-04 15:34:21 -07:00
Bobby Holley
ef87858910 Bug 1268748 - Implement {Resolve,Probe}PseudoElementStyle. r=heycam 2016-04-29 19:21:48 -07:00
Cameron McCormack
9eeb5dc2a9 Bug 1268390 - Part 2: Add bindings for Servo_InsertStyleSheetBefore. r=bholley 2016-04-29 14:01:44 +10:00
Cameron McCormack
26c0413d34 Bug 1268392 - Make Servo_GetComputedValues take a node rather than an element. r=bholley 2016-04-29 14:01:44 +10:00
Ms2ger
e54df95e1a Bug 1268290 followup: remove stray semicolon on a CLOSED TREE. 2016-04-28 11:37:01 +02:00
Emilio Cobos Álvarez
3a00e86293 Bug 1268290: stylo: Pass SheetParsingMode to Servo, r=bholley 2016-04-28 11:13:45 +02:00
Bobby Holley
70f077146d Bug 1267833 - Pass the RawServoStyleSet to Servo_GetComputedValuesForAnonymousBox. r=heycam 2016-04-26 23:39:44 -07:00
Cameron McCormack
75c6df145e Bug 1267560 - Get style structs from ServoComputedValues rather than the rule node, when using the Servo-backed style system. r=bholley 2016-04-27 12:34:49 +10:00
Bobby Holley
9a4350598d Bug 1261552 - Add FFI hooks to construct, copy, and destroy gecko style structs from servo. r=heycam 2016-04-04 23:14:31 -07:00
Bobby Holley
3831864b3d Bug 1260310 - Create servo style contexts from ServoStyleSet. r=heycam 2016-03-29 22:16:38 -07:00
Bobby Holley
57b406bba3 Bug 1260310 - Generalize nsStyleContext to support resolving styles from either nsRuleNode or ServoComputedValues. r=heycam 2016-03-29 22:16:35 -07:00
Bobby Holley
9440c9f754 Bug 1253149 - Use bool instead of int for boolean return values. r=SimonSapin 2016-03-05 19:58:04 -08:00
Bobby Holley
5c409b2ed2 Bug 1251496 - Forward stylesheet management to RawServoStyleSet. r=heycam 2016-02-28 00:25:34 -08:00
Bobby Holley
205b124ab5 Bug 1251496 - Introduce a servo-side data structure to represent the style set. r=heycam 2016-02-28 00:25:33 -08:00
Cameron McCormack
bc4b843c37 Bug 1250788 - Part 3.3: Implement enough of ServoStyleSheet for Loader to be able to create and parse one. r=bholley 2016-02-26 12:51:01 +11:00
Bobby Holley
3b95f5b981 Bug 1250767 - Reorder Gecko EventState to match Servo's ElementState, and add an API to let Servo access it. r=heycam,r=bz 2016-02-23 17:51:47 -08:00
Bobby Holley
eb6ef53678 Bug 1250767 - Add support for hanging servo node data off Gecko nodes. r=heycam,r=bz 2016-02-23 17:28:50 -08:00
Bobby Holley
bb80449368 Bug 1250767 - Basic Servo Bindings. r=heycam 2015-11-24 17:14:39 -08:00
Sebastian Hengst
7988324ccb Backed out changeset 24309d9b5c7e (bug 1250767) for Windows bustage. r=bustage on a CLOSED TREE 2016-02-24 22:51:02 +01:00
Sebastian Hengst
48649adbe3 Backed out changeset 59ee7ae2519d (bug 1250767) 2016-02-24 22:50:51 +01:00
Sebastian Hengst
005b11b368 Backed out changeset 796b681561a7 (bug 1250767) 2016-02-24 22:50:40 +01:00
Bobby Holley
628b01c94e Bug 1250767 - Reorder Gecko EventState to match Servo's ElementState, and add an API to let Servo access it. r=heycam,r=bz 2016-02-24 13:01:18 -08:00
Bobby Holley
e1f6eb4ca5 Bug 1250767 - Add support for hanging servo node data off Gecko nodes. r=heycam,r=bz 2016-02-24 13:01:15 -08:00
Bobby Holley
3ee259b378 Bug 1250767 - Basic Servo Bindings. r=heycam 2016-02-24 13:01:04 -08:00