Hiroyuki Ikezoe
56dc7294e5
Add FFI functions to get progress value and current position in a segment.
...
Two functions added in this patch get progress value from ComputedTiming
or get the position in a given AnimationPropertySegment.
Without these FFIs, we need to expose Maybe<> and Nullable<> and handle
them in Rust.
2017-04-06 10:30:39 +09:00
Hiroyuki Ikezoe
f1d3f23bfa
Expose ComputedTiming to FFI.
...
This will be also used for animation value composition in Rust.
2017-04-06 10:30:38 +09:00
Hiroyuki Ikezoe
68be131165
Move AnimationPropertySegment in a separate header and expose it in FFI.
...
This will be used for animation value composition in Rust.
2017-04-06 10:30:37 +09:00
Xidorn Quan
0a97a0df0c
Create URLExtraData for holding base uri, referrer, and principal.
2017-04-03 14:30:33 +10:00
bors-servo
54e2b7b2d5
Auto merge of #16192 - upsuper:bug1350810, r=emilio
...
Output binding files to dist dir in addition
https://bugzilla.mozilla.org/show_bug.cgi?id=1350810
2017-03-30 08:23:31 -05:00
Xidorn Quan
f3a5e28949
Output binding files to dist dir in addition.
2017-03-31 00:22:15 +11:00
Xidorn Quan
0a57dbc110
Provide @font-face rules for stylo backend.
2017-03-30 11:41:13 +11:00
Xidorn Quan
e0c9a3fa12
Add function for sugar of nsCSSValue.
2017-03-30 11:41:08 +11:00
Xidorn Quan
e36b92507e
Add FFI for nsCSSFontFaceRule.
2017-03-30 10:46:46 +11:00
Xidorn Quan
83badaa718
Lots of fixup for the next patch.
2017-03-30 10:46:32 +11:00
Hiroyuki Ikezoe
4183b0dff2
Introduce UpdateAnimationTasks to perform a bunch of animation's tasks in a SequentialTask.
...
The UpdateAnimationsTasks is a bitflags and each bit is generated from
Gecko's UpdateAnimationsTasks (enum class) values for matching values
between C++ and Rust. For this reason, the bitflags is annotated as
(feature = "gecko"), as a result update_animations() which uses this bitflags
also became gecko-only function.
2017-03-27 17:38:09 +09:00
Manish Goregaokar
fddddc9711
stylo: Calculate font-size keywords based on base size
...
MozReview-Commit-ID: Ff6kt8RLChI
2017-03-24 10:54:06 -07:00
Bobby Holley
63e8367eee
Don't resolve URLs at parse time for Stylo.
...
It's a bit unfortunate the use separate implementations of SpecifiedUrl for Servo
and Gecko, but they're different enough at this point that I don't think it really
makes sense to try to share everything. Splitting them out has some nice
simplifications as well.
I recognize that there's still some potential correctness issues for Servo using
the resolved URI in various places where the original URI may be the right thing,
but I've got too much on my plate to look into that for now.
MozReview-Commit-ID: BeDu93TQ4Ow
2017-03-22 19:11:30 -07:00
Boris Chiou
708f446364
Bug 1343153 - Support Servo_ParseEasing.
2017-03-21 16:34:58 +08:00
Emilio Cobos Álvarez
e348940296
stylo: Sequentialize binding generation if logging is enabled.
...
Otherwise the log is useless, and it's even slower than in parallel mode due to
the high lock contention.
2017-03-20 11:42:41 +01:00
Emilio Cobos Álvarez
a1930fc554
stylo: Add a build log mechanism.
...
MozReview-Commit-ID: 4Zo1EveUYkK
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-03-18 13:21:10 +01:00
Hiroyuki Ikezoe
254d5f6229
Drop Servo_AnimationValues_Uncompute.
2017-03-17 17:57:22 +09:00
Hiroyuki Ikezoe
52bee9a4cf
Add AnimationValueMap and expose it in FFI.
...
Current Gecko composes all of effects in the composite order at once.
We can put each computed value into this AnimationValueMap every time composing
an effect.
2017-03-17 12:29:34 +09:00
Manish Goregaokar
6b9a6806b8
stylo: Support system colors
...
MozReview-Commit-ID: HUfTdcMRoEx
2017-03-15 22:33:45 -07:00
Manish Goregaokar
07723eba7a
stylo: Implement remaining content
values
...
MozReview-Commit-ID: 9fLM5bdR8hr
2017-03-14 09:24:58 -07:00
Xidorn Quan
3cbc1aa279
Add char_traits to blacklist
2017-03-14 15:54:19 +11:00
Hiroyuki Ikezoe
d8f08b80e0
Implement Gecko_StyleAnimationsEquals for checking nsStyleAutoArray<StyleAnimation> equality in servo side.
...
Later we update CSS animations if this function returns false.
2017-03-10 11:07:18 +09:00
Manish Goregaokar
eda6a4fc4f
stylo: Pass parser URL data in Servo_DeclarationBlock_SetProperty*
...
MozReview-Commit-ID: EVk4aEoyiXv
2017-03-09 14:44:17 -08:00
Hiroyuki Ikezoe
b45e3f1011
Add RawGeckoComputedKeyframeValuesList in build_gecko.rs.
2017-02-24 19:13:04 +09:00
bors-servo
07debf5dc0
Auto merge of #15669 - upsuper:bindgen-arc-type, r=heycam
...
Read ServoArcTypeList.h for list of arc types
r? @heycam
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15669 )
<!-- Reviewable:end -->
2017-02-21 18:56:41 -08:00
Xidorn Quan
c2de28de1a
Read ServoArcTypeList.h for list of arc types
2017-02-22 11:51:44 +11:00
bors-servo
ed731c80d7
Auto merge of #15675 - Manishearth:resync, r=mbrubeck
...
Resync bindings, use StyleShapeSource for clip-path
The bindings are getting harder to rebase over since the checked-in bindings differ from the generated ones.
Also includes https://bugzilla.mozilla.org/show_bug.cgi?id=1339314
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15675 )
<!-- Reviewable:end -->
2017-02-21 10:05:01 -08:00
Manish Goregaokar
c49c5ec224
Update clip-path glue to use StyleShapeSource
2017-02-21 09:44:47 -08:00
Ravi Shankar
6d4cf7424c
Regen bindings to include StyleGridTrackBreadth
2017-02-20 14:30:47 +05:30
Nazım Can Altınova
d7941d5e35
stylo: Support lang property
2017-02-18 20:37:07 -08:00
Manish Goregaokar
31945c287f
stylo: Add necessary stubbed-out bindings for ServoSpecifiedValues
2017-02-18 20:30:59 -08:00
Manish Goregaokar
fa9881b829
stylo: Add mako template for URLOrNone, use for marker-* properties
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:43:31 -08:00
Manish Goregaokar
51b03fbc7d
stylo: Add Gecko bindings for <paint>, use for stroke/fill
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:42:57 -08:00
Manish Goregaokar
2942e3b2ea
stylo: Support URL filters
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:42:53 -08:00
Manish Goregaokar
e965b4e345
stylo: Add ServoBundledURI abstraction for use when setting css::URLValues
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:42:47 -08:00
Jan Beich
883ded0b02
Bug 1339033 fixup - Add forgotten semicolons after 7afc681ac8
.
2017-02-13 17:59:12 +00:00
Jan Beich
7afc681ac8
Bug 1339033 - Unbreak stylo bindgen on BSDs and Solaris.
2017-02-13 13:28:36 +00:00
Boris Chiou
873cb98302
Bug 1335942 - Part 3: Support GetTransform FFI. r=manishearth
2017-02-08 12:32:25 +08:00
Ms2ger
2ddf1f2d91
Fix some build warnings.
2017-02-07 16:11:56 +01:00
Xidorn Quan
33a9c4383c
Use -stdlib=libc++ on mac for stylo bindgen
2017-02-07 12:15:31 +11:00
Bobby Holley
e78f2404e1
Bug 1335863 - Inline Gecko_IsHTMLElementInHTMLDocument. r=emilio
2017-02-02 14:32:23 -08:00
Hiroyuki Ikezoe
a4cafe7106
Bug 1328787 - Part 6: Update build_gecko.rs and bindings. r=heycam
...
'RawServoDeclarationBlock' in structs_types in build_gecko.rs and the change in
conversion.rs are needed for using set_arc_leaky() for
PropertyValuePair.mServoDeclarationBlock. Without this change,
mServoDeclarationBlock.set_arc_leaky() is called against RawServoDeclarationBlockVoid.
MozReview-Commit-ID: FZkZ0OclXcP
2017-01-29 09:07:41 +09:00
Cameron McCormack
2f39b49e22
Regenerate bindings and tweak some geckolib code for it.
2017-01-26 17:32:08 +08:00
bors-servo
e4a1cb6f87
Auto merge of #15175 - BorisChiou:animation/interpolate_and_cascade, r=heycam
...
Interpolate servo animation values and add them to the cascade
These are the servo-side changes for [bug 1317209](https://bugzilla.mozilla.org/show_bug.cgi?id=1317209 ). @Manishearth, @emilio, and @heycam have already reviewed them there. Please merge these patches until the gecko-side changes for [bug 1317209](https://bugzilla.mozilla.org/show_bug.cgi?id=1317209 ) is landed.
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [bug 1317209](https://bugzilla.mozilla.org/show_bug.cgi?id=1317209 ).
- [X] These changes do not require tests because there are existing tests for this in mozilla-central
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15175 )
<!-- Reviewable:end -->
2017-01-25 23:36:33 -08:00
Emilio Cobos Álvarez
14692bd26e
Bindgenup.
...
MozReview-Commit-ID: 7s0GsWaEjwe
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-25 10:42:44 +01:00
Boris Chiou
4f0791a94b
Bug 1317209 - Part 1: Implement uncompute FFI. r=manishearth
2017-01-24 15:47:35 +08:00
Manish Goregaokar
9c69b3d0a5
Regen bindings
2017-01-21 16:54:17 -08:00
bors-servo
1755ad7b75
Auto merge of #15077 - emilio:stylo-medialist, r=heycam,Manishearth,upsuper
...
Media query parsing and evaluation in stylo using nsMediaFeatures
<!-- Please describe your changes on the following line: -->
Reviewed in the bug.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15077 )
<!-- Reviewable:end -->
2017-01-18 05:39:57 -08:00
Emilio Cobos Álvarez
646258e5a0
Bug 1331213: Don't make the pres context pointers opaque. r=heycam
...
I don't know why they were that way, but it makes no sense and tests still pass.
MozReview-Commit-ID: HAIuQhqlTtF
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:18:51 +01:00
Emilio Cobos Álvarez
5b5243b8af
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:05:23 +01:00