Commit graph

4520 commits

Author SHA1 Message Date
bors-servo
a834bc1ec7 Auto merge of #11086 - heycam:radius, r=bholley
Support border/outline-radius properties in geckolib.

<s>Because of the way Gecko stores outline-width in nsStyleOutline::mOutlineWidth (i.e., as its specified value for keywords) we need separate property implementations for servo/gecko products.</s>

The -moz-outline-radius parsing is a bit of a hack; I was just avoiding the effort of factoring out the parsing into a separate method. Let me know if I should do that.

<s>Gecko-side changes are https://bugzilla.mozilla.org/show_bug.cgi?id=1271168.</s>

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11086)
<!-- Reviewable:end -->
2016-05-10 19:00:09 -07:00
Cameron McCormack
a12493f5fe Support -moz-outline-radius-* in geckolib. 2016-05-11 11:10:41 +10:00
Cameron McCormack
3491e16f06 Support border-*-radius in geckolib. 2016-05-11 11:10:40 +10:00
bors-servo
40be84df26 Auto merge of #11115 - mbrubeck:openssl-verify, r=jdm
Use openssl-verify to check certificate + hostname

Fixes #4954.  r? @jdm

This is based on hyperium/hyper#472, though it doesn't re-use that code directly because Servo configures its own OpenSSL context.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11115)
<!-- Reviewable:end -->
2016-05-10 15:00:48 -07:00
Matt Brubeck
5695da0c38 Use openssl-verify to check certificate + hostname
Fixes #4954.
2016-05-10 11:30:11 -07:00
Fabrice Desré
c56b30b218 Cargo updates to build with armv7-unknown-linux-gnueabihf target 2016-05-09 10:01:17 -07:00
Connor Brewster
dec047eabe update xml5ever to 0.1.3 2016-05-09 07:25:41 -06:00
bors-servo
aa62a1466e Auto merge of #11058 - bholley:minor_wikipedia_fixes, r=mbrubeck,bholley
Geckolib: minor robustness fixes

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11058)
<!-- Reviewable:end -->
2016-05-07 04:25:31 -07:00
Bobby Holley
50b2490d38 Match both <pair> and <utility>, since apparently the results vary by system. 2016-05-06 16:48:58 -07:00
Bobby Holley
ceb7dcb605 Match "utility" rather than "pair" when generating style struct bindings. 2016-05-06 16:36:25 -07:00
Bobby Holley
a778b03f36 Tweak the bindgen setup scripts. 2016-05-06 14:40:01 -07:00
Bobby Holley
286da1bbe4 Regenerate bindings after cached margin and padding removal. 2016-05-06 14:40:00 -07:00
Bobby Holley
38a6b58a0a Hackily return default computed values for unstyled nodes. 2016-05-06 14:39:59 -07:00
Matt Brubeck
9b680ad58a Update hyper, openssl, wayland, threadpool, offscreen_gl_context
Gets rid of duplicate versions of bitflags and xml-rs!
2016-05-06 08:42:00 -07:00
bors-servo
d7fa1d8eed Auto merge of #11050 - mskrzypkows:css_issue, r=Ms2ger
Update cssparser to fix CSS.escape test failures

Fixes #10685

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11050)
<!-- Reviewable:end -->
2016-05-06 06:39:18 -07:00
Maciej Skrzypkowski
43b72537dc Update cssparser to fix CSS.escape test failures
Fixed failing tests #10685
2016-05-06 13:54:26 +02:00
bors-servo
50f2349551 Auto merge of #11045 - heycam:non-element, r=bholley
Add Servo_GetComputedValuesForOtherNonElement.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11045)
<!-- Reviewable:end -->
2016-05-06 04:30:47 -07:00
Cameron McCormack
01c42693d4 Add Servo_InheritComputedValues. 2016-05-06 17:23:30 +10:00
bors-servo
0558687d71 Auto merge of #11043 - heycam:attr, r=bholley
Pass in string lengths to Gecko_GetAttrAsUTF8.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11043)
<!-- Reviewable:end -->
2016-05-05 23:51:54 -07:00
bors-servo
6c326cd372 Auto merge of #11034 - mbrubeck:always-be-updating, r=SimonSapin
Update libc, url, image, app_units

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11034)
<!-- Reviewable:end -->
2016-05-05 19:05:55 -07:00
Cameron McCormack
603a19929c Pass in string lengths to Gecko_GetAttrAsUTF8. 2016-05-06 11:58:53 +10:00
bors-servo
b29ae6383a Auto merge of #11018 - bholley:list_style_type, r=mbrubeck
Geckolib: Implement list-style-type

Corresponding Gecko patch: https://bugzilla.mozilla.org/show_bug.cgi?id=1269933

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11018)
<!-- Reviewable:end -->
2016-05-05 12:23:37 -07:00
Matt Brubeck
f7c82e639e Update libc, url, image, app_units 2016-05-05 11:12:24 -07:00
bors-servo
52adcf38ac Auto merge of #11002 - heycam:text-transform, r=bholley
Support text-transform in geckolib.

Needs https://bugzilla.mozilla.org/show_bug.cgi?id=1270001.  I just edited gecko_style_structs.rs manually.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11002)
<!-- Reviewable:end -->
2016-05-05 11:03:54 -07:00
Fabrice Desré
073bd6ad21 Update to Rust nightly 2016-04-29 2016-05-05 08:12:59 -07:00
bors-servo
95a1f7668c Auto merge of #11023 - emilio:geckolib-up, r=bholley
geckolib: Update bindings to unlock nsStyleAutoArray

This uses the following bindgen commit:
64fe3d27be

r? @bholley

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11023)
<!-- Reviewable:end -->
2016-05-05 05:55:43 -07:00
bors-servo
38311b6fce Auto merge of #11021 - glennw:es3-android, r=larsbergstrom
Switch android GL context to ES3, now that WR has been updated.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11021)
<!-- Reviewable:end -->
2016-05-05 04:30:52 -07:00
bors-servo
319f520e4d Auto merge of #11001 - heycam:alnp, r=bholley
Support most remaining length/percentage/none/auto-taking properties in geckolib

This is on top of #10999 so no need to review 8ae820b.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11001)
<!-- Reviewable:end -->
2016-05-05 00:44:57 -07:00
Cameron McCormack
84ef0de160 Support max-{width,height} in geckolib. 2016-05-05 15:42:15 +10:00
Cameron McCormack
04f976bfb2 Support min-{width,height} and text-indent in geckolib. 2016-05-05 15:42:13 +10:00
Cameron McCormack
8d6a99b46e Support width and height in geckolib. 2016-05-05 15:42:12 +10:00
Cameron McCormack
580f58c146 Support top, right, bottom and left in geckolib. 2016-05-05 11:40:56 +10:00
bors-servo
ec5f826d18 Auto merge of #10998 - bholley:font_weight_and_logging, r=mbrubeck
Geckolib: implement font-weight and logging support

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10998)
<!-- Reviewable:end -->
2016-05-04 18:37:26 -07:00
Emilio Cobos Álvarez
0b0b675654
geckolib: Add pending pseudo-elements. 2016-05-05 02:18:47 +02:00
Emilio Cobos Álvarez
788915ca5d
geckolib: Update bindings to unlock nsStyleAutoArray
This uses the following bindgen commit:
64fe3d27be
2016-05-05 02:18:46 +02:00
Glenn Watson
2a5d846f74 Switch android GL context to ES3, now that WR has been updated. 2016-05-05 09:13:45 +10:00
Bobby Holley
f1f36efc96 Geckolib: Implement list-style-type. 2016-05-04 14:23:17 -07:00
Patrick Walton
91907f563b compositing: Send mouse events to the right pipeline when using
WebRender.

Fixes mouse events in browser.html.

Requires servo/webrender_traits#47 and servo/webrender#272.
2016-05-04 11:40:15 -07:00
bors-servo
b4f573db1a Auto merge of #10840 - ConnorGBrewster:window_alert, r=jdm
Implement alert dialogs

fix #10812

Implements alert dialogs using tinyfiledialogs

r? @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10840)
<!-- Reviewable:end -->
2016-05-04 09:10:40 -07:00
bors-servo
944a8dc25a Auto merge of #10632 - szeged:bluetooth-ipc, r=jdm
WebBluetooth impementation

Update the current WebBluetooth implementation.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10632)
<!-- Reviewable:end -->
2016-05-04 08:06:06 -07:00
bors-servo
29823cb378 Auto merge of #10934 - emilio:other-gecko-pseudos, r=bholley,mbrubeck
style: Add infrastructure to support lazy pseudo-elements

This builds on top of #10815, so it's really just the last commit the one that should be reviewed.

I tried to apply the new infrastructure to servo, but failed (for now?).

The problem with it is that it'd require `ThreadSafeLayoutElement` to implement `selectors::Element`, which is a lot of work and might be racy (not totally sure about it though). Thus, I prefered to keep selectors eager until knowing that it's safe to do it.

r? @mbrubeck for style changes, @bholley for the geckolib changes (minimal for now, glue + a list of lazy PEs must be added)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10934)
<!-- Reviewable:end -->
2016-05-04 03:42:23 -07:00
Cameron McCormack
d2f6138fb3 Support text-transform in geckolib. 2016-05-04 18:17:58 +10:00
bors-servo
1a1ea30f8c Auto merge of #10959 - heycam:color, r=bholley
Support color-typed properties in geckolib

This is on top of https://github.com/servo/servo/pull/10957 though I'm not sure how to make that PR's commits not appear in this one.

r? @bholley

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10959)
<!-- Reviewable:end -->
2016-05-04 01:00:22 -07:00
Connor Brewster
dc85be4be5 Implement alert dialogs
Fixed conflict

Fixed merge issue

Finished implementation

Disable tinyfiledialogs on Windows

addressed comments

Use ancestor's SubpageId
Move display alert from method to function
Add extra test for nested iframes

Addressed comments

Updated tinyfiledialogs
2016-05-03 22:09:35 -06:00
Bobby Holley
d4aa0288d6 Enable standard logging for geckolib. 2016-05-03 17:40:05 -07:00
Bobby Holley
aa0e3e25e2 Add a runtime-wide initialization hook for Geckolib. 2016-05-03 17:40:04 -07:00
Bobby Holley
9fdb791e93 Geckolib: Implement font-weight. 2016-05-03 17:40:03 -07:00
Cameron McCormack
d4e36556db Support color in geckolib. 2016-05-04 09:44:17 +10:00
Cameron McCormack
66a3769446 Support skip_longhands="*" on geckolib struct trait definitions. 2016-05-04 09:44:15 +10:00
Cameron McCormack
d8969e2447 Support {background,outline}-color in geckolib. 2016-05-04 09:44:14 +10:00