Lars Bergstrom
442bfb716b
Update various Cargo patches and deal with the fallout
2015-05-22 16:16:50 -05:00
Mike Blumenkrantz
25f87aa8ab
fix compile after pcwalton's multi-event handling PR
2015-05-21 21:16:24 -04:00
Mike Blumenkrantz
f53fc1900d
update pkg-config for cargo
2015-05-21 21:16:23 -04:00
Mike Blumenkrantz
9b8585f20d
update cargo layers rust thing checkout
2015-05-21 21:15:23 -04:00
Mike Blumenkrantz
82cf1d53e3
bump rust-layers version
2015-05-21 21:15:22 -04:00
Mike Blumenkrantz
5697d9ff2c
add back browser_host::composite() method for embedding
...
this changes the way that applications will use servo. whereas previously
it was only necessary to call initialize() -> makecurrent, it's now necessary
to explicitly call the composite() method in order to trigger the gl rendering.
any other composite attempts (by servo) will trigger the on_paint() method,
informing the app that a frame is ready. it's then up to the app to schedule
the composite() such that the frame is rendered in a timely manner
2015-05-21 21:15:21 -04:00
Mike Blumenkrantz
12d792f427
only create our own Display* in embedding when using OSR
2015-05-21 21:15:20 -04:00
Mike Blumenkrantz
789a4973f7
check method existence for hidpi_factor(), handle platforms other than macos
2015-05-21 21:15:19 -04:00
Mike Blumenkrantz
1aed319684
add pointer checks for cef method calls to avoid crashing on nonexistent methods
2015-05-21 21:15:18 -04:00
Mike Blumenkrantz
ca7fc036fe
ensure window protocol handling occurs during cef browser loop updating
...
fixes window events when using cef windowed rendering
2015-05-21 21:15:18 -04:00
Mike Blumenkrantz
1cd850b121
add window member to servo cef browser object to fix framebuffer size method
...
platforms other than macos will not need/use a get_backing_rect() method since
there is no virtual pixel scaling, and this method will need to be usable
even before browsers are finished setting up, so ensure we can at least pass
initial window size back
also check method pointer availability before calling into a null function
2015-05-21 21:15:17 -04:00
Mike Blumenkrantz
e5a274b467
call XInitThreads() before creating our cef Display* object
2015-05-21 21:15:16 -04:00
Mike Blumenkrantz
09aba1f9de
remove misleading FIXME(pcwalton) regarding gtk event loops in cef window
2015-05-21 21:15:15 -04:00
Mike Blumenkrantz
fb72a64833
pass width and height information through to cef paint callback
2015-05-21 21:15:15 -04:00
Mike Blumenkrantz
9f7aacdacf
add check for self.context existence in composite_specific_target()
2015-05-21 21:15:14 -04:00
Mike Blumenkrantz
8330eabac1
temp re-set default url for cef while I figure out wtf is going on
2015-05-21 21:15:13 -04:00
Mike Blumenkrantz
42179cf6e7
create x11 Display connection on cef_initialize() as expected
...
this is how cef does it, we must obey our chromium overlords
2015-05-21 21:15:12 -04:00
Mike Blumenkrantz
bf1d12e5e9
add note that cef_render_handler_t::get_backing_rect() is only for os
2015-05-21 21:15:11 -04:00
Mike Blumenkrantz
52fb8562d6
add embedding macro for checking pointer existence
...
needed for determining whether an interface or callback has been provided
2015-05-21 21:15:11 -04:00
Mike Blumenkrantz
a296b2d073
add back cef_browser_host::composite() method
2015-05-21 21:15:10 -04:00
bors-servo
ef7fa99bd2
Auto merge of #6156 - Manishearth:warn_fix, r=larsbergstrom
...
r? @larsbergstrom
(The diff is borked here, but I only just added `if let`s and wrapped/unwrapped in `Annotatable`s)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6156 )
<!-- Reviewable:end -->
2015-05-21 13:27:27 -05:00
Manish Goregaokar
8394b82350
Fix deprecated plugin APIs
2015-05-21 23:10:54 +05:30
bors-servo
dd319c1a99
Auto merge of #5727 - jdm:parserinterrupt2, r=mbrubeck
...
...r parsing. Hook up document loading to async networking events.
Relies on https://github.com/servo/html5ever/pull/107 , so we'll likely need to backport it rather than wait for the next rustc upgrade.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5727 )
<!-- Reviewable:end -->
2015-05-21 12:37:06 -05:00
bors-servo
a0fccea670
Auto merge of #6155 - servo:rustup_2015-05-21, r=Manishearth
...
r? @Manishearth
(there's just the one plugins-related change required)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6155 )
<!-- Reviewable:end -->
2015-05-21 10:50:53 -05:00
Lars Bergstrom
fd4afc93a8
Update plugins API
2015-05-21 10:13:48 -05:00
Lars Bergstrom
3d30dfc652
Upgrade to a 1.2.0 rust compiler
2015-05-21 10:13:27 -05:00
Josh Matthews
512927eb34
fixup! Update test expectations. Mark script loads as complete when the response is complete.
2015-05-21 09:57:24 -04:00
Josh Matthews
ef8a127156
Update test expectations. Mark script loads as complete when the response is complete.
2015-05-21 09:53:19 -04:00
bors-servo
b84aa41c22
Auto merge of #6154 - Nashenas88:websocket-parse-url-typo, r=jdm
...
This is a really small typo fix for an issue I worked on recently.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6154 )
<!-- Reviewable:end -->
2015-05-21 06:59:06 -05:00
Paul Faria
d4be93613b
Adding in a missed algorithm step number in the comments.
2015-05-20 22:17:07 -04:00
bors-servo
1060cfde68
Auto merge of #6152 - glennw:runnable-panic, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6152 )
<!-- Reviewable:end -->
2015-05-20 20:01:32 -05:00
bors-servo
7ae5d1129f
Auto merge of #6151 - servo:rustup-2015_05_13, r=larsbergstrom
...
(Tue May 19 05:39:29 2015 +0000)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6151 )
<!-- Reviewable:end -->
2015-05-20 18:23:13 -05:00
Glenn Watson
b84c6fa5db
Fix document load event firing after pipeline is closed.
2015-05-21 08:39:09 +10:00
Manish Goregaokar
4bc9445b9e
Upgrade rust to 716f920b7e234b450f272346fea961832505c06e (Tue May 19 05:39:29 2015 +0000)
2015-05-20 15:39:02 -07:00
bors-servo
77099b25d5
Auto merge of #5586 - pcwalton:no-broken-background-image-redux, r=glennw
...
r? @jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5586 )
<!-- Reviewable:end -->
2015-05-20 16:43:31 -05:00
bors-servo
ad53e95080
Auto merge of #6083 - ecoal95:layerize-canvas, r=pcwalton
...
I've done a bit of job to get this done. Right now readback is still used, but we have a `LayerId` -> `CanvasRenderer` map on the paint task, that we can use to get rid of that.
I'd want review, to see if this is a good approach (I know it's not the initial `CanvasId` -> renderer approach, but it's pretty similar, since a canvas involves a `PaintLayer`).
I had to do a bit of refactoring to avoid cyclic dependencies between canvas and gfx. I'd want you to review them too.
It's mergeable and doesn't break any tests :P
Some of my main concerns:
* Does the canvas render really need to be behind an `Arc<Mutex<T>>`?
* I can't clone a `NativeSurface` right now (that's why the `SendNativeSurface()` msg is unimplemented in the WebGL task). It should be easy to add that to rust-layers, supposing the caller is responsible to mark it as non-leaking, any reason to not do it?
cc @jdm @pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6083 )
<!-- Reviewable:end -->
2015-05-20 15:42:06 -05:00
bors-servo
fada39164c
Auto merge of #5858 - pgonda:tabindex-focus-flag, r=jdm
...
Added support for the tabindex field, also added its correct defaults (-2 TODOs for things not supported in Servo yet). Also added tabindex logic into Element::is_focusable_area.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5858 )
<!-- Reviewable:end -->
2015-05-20 14:34:31 -05:00
Patrick Walton
7e7675c1dc
net: Don't load the placeholder image for background images, only for
...
image fragments.
This also changes the way the placeholder is handled in the image cache
task to decode it up front instead of each time an image fails to load,
both because it was more convenient to implement that way and because
it saves CPU cycles to do so.
This matches the behavior of Gecko and WebKit. It improves the look of
our cached copy of Wikipedia.
2015-05-20 12:00:33 -07:00
bors-servo
ee147c164a
Auto merge of #5577 - pcwalton:iframe-size-attributes, r=jdm
...
Improves Amazon and Ars Technica.
r? @jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5577 )
<!-- Reviewable:end -->
2015-05-20 13:51:05 -05:00
Josh Matthews
8082df7d0d
Make external script sources load asynchronously, yet still block further parsing. Hook up document loading to async networking events.
2015-05-20 14:22:09 -04:00
Patrick Walton
1a3395e077
script: Implement the width
and height
attributes for iframes per
...
HTML5 § 4.8.6.
Improves Amazon and Ars Technica.
2015-05-20 11:15:25 -07:00
bors-servo
071f89aa5f
Auto merge of #6077 - pcwalton:multiple-events-per-frame, r=glennw
...
Improves scrolling performance significantly on Mac.
r? @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6077 )
<!-- Reviewable:end -->
2015-05-20 13:06:52 -05:00
Patrick Walton
0098d9e9e8
compositing: Support multiple events per frame.
...
Improves scrolling performance on Mac.
2015-05-20 10:53:48 -07:00
ecoal95
3350522306
Layerize canvas
...
Note that this keeps using readback right now, `NativeSurface` painting
will be implemented soon.
Also see https://github.com/servo/servo/issues/6142
2015-05-20 19:10:50 +02:00
bors-servo
e52197d126
Auto merge of #6147 - mbrubeck:experimental, r=SimonSapin
...
No longer needed after #6138 . r? @SimonSapin
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6147 )
<!-- Reviewable:end -->
2015-05-20 11:29:01 -05:00
bors-servo
d68730a0fc
Auto merge of #6074 - pgonda:lint-fix-struct-enum-variants, r=Manishearth
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6074 )
<!-- Reviewable:end -->
2015-05-20 10:29:48 -05:00
Matt Brubeck
9355186fa6
Remove "experimental" from direction:rtl reftests
...
No longer needed after #6138 .
2015-05-20 08:17:02 -07:00
Peter
717b443eec
fixes #6069
2015-05-20 10:58:30 -04:00
Peter
1c96eed544
fixes #5603 , adds support for tabindex
2015-05-20 10:34:16 -04:00
bors-servo
165bfd6d5f
Auto merge of #6143 - michaelwu:truetype-only, r=pcwalton
...
I have a number of pcf fonts installed. One of them is Adobe Helvetica, and it turns out many websites try to use Helvetica. This crashes servo.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6143 )
<!-- Reviewable:end -->
2015-05-20 02:36:43 -05:00