Brandon Fairchild
d1186eda7a
Move DocumentState to script_traits
...
Fixes #9224 .
2016-01-12 13:30:33 -05:00
bors-servo
3680e82cab
Auto merge of #9261 - bholley:geckolib_nomsg, r=Manishearth
...
Remove the msg dependency from style
This is part of slimming down the dependencies of geckolib.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9261 )
<!-- Reviewable:end -->
2016-01-12 09:23:31 +05:30
Bobby Holley
384cdfcfff
Hoist ParseErrorReporter into style and remove the dependency on msg.
...
The pipeline id stuff is currently unused. If someone needs it, they can add
an additional trait bound on their css error reporter to get the pipeline id.
2016-01-11 18:01:48 -08:00
Matt McCoy
a2bf5b6b51
Moving MouseEventType from msg to script_traits
2016-01-11 19:54:51 -05:00
bors-servo
bd7255dd24
Auto merge of #9249 - Ms2ger:msg, r=nox
...
Remove unused dependencies from the msg crate.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9249 )
<!-- Reviewable:end -->
2016-01-12 02:18:47 +05:30
bors-servo
fed41a42da
Auto merge of #9257 - fmmartins:refactor-scripttraits, r=jdm
...
Move IFrameLoadInfo and IFrameSandboxState to script_traits
Hi, this should fix #8841 !
Any change that might be needed please tell me
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9257 )
<!-- Reviewable:end -->
2016-01-12 01:44:27 +05:30
Fernando Martins
0ef003c20a
moved IFrameLoadInfo and IFrameSandboxState to script_traits
2016-01-11 18:24:08 +00:00
Ms2ger
7e3d1f88a0
Remove unused dependencies from the msg crate.
2016-01-11 14:25:40 +01:00
John DeSilva
f32995543d
Move Epoch to gfx_traits
...
Resolves #9222 . Moved Epoch from components/msg/compositor_msg to
components/gfx_traits/lib. Updated use statements to reflect the move.
2016-01-10 17:36:52 -05:00
bors-servo
d3889b4be4
Auto merge of #9236 - tgummerer:fix-9220, r=Wafflespeanut
...
Move LayerType enum to gfx_trait
The LayerType enum is only used in gfx_traits and layout, so it
shouldn't be defined in msg. Move the definition to gfx_traits
instead.
Fixes #9220
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9236 )
<!-- Reviewable:end -->
2016-01-10 21:18:45 +05:30
Thomas Gummerer
70a2179cd2
Move LayerType enum to gfx_trait
...
The LayerType enum is only used in gfx_traits and layout, so it
shouldn't be defined in msg. Move the definition to gfx_traits
instead.
Fixes #9220
2016-01-10 16:20:37 +01:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Brandon Fairchild
637afecec9
Move LayerKind and ScrollPolicy enums to gfx_traits
...
This also moves LayerId and LayerProperties to gfx_traits.
Fixes #8836 .
2015-12-20 20:43:31 -05:00
bors-servo
a900196b3f
Auto merge of #9035 - Ms2ger:warnings, r=nox
...
Remove some unused imports.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9035 )
<!-- Reviewable:end -->
2015-12-21 05:58:59 +05:30
Ms2ger
0cc75b731c
Remove some unused imports.
2015-12-20 22:26:07 +01:00
bors-servo
9a4d82c314
Auto merge of #8863 - simartin:issue_8352, r=jdm
...
Issue #8352 : Dispatch mozbrowsershowmodalprompt event for alert().
Fixes https://github.com/servo/servo/issues/8352
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8863 )
<!-- Reviewable:end -->
2015-12-21 02:28:32 +05:30
Beomjin Kim
82f39d5a1c
Moved ScriptToCompositorMsg enum and EventResult enum to script_traits
...
Moved ScriptToCompositorMsg enum and EventResult enum to script_traits
(rebased)
2015-12-20 11:53:41 +09:00
bors-servo
95eabdb4db
Auto merge of #9022 - mskrzypkows:PaintMsg_refactoring, r=jdm
...
Move PaintMsg enum to gfx_traits #8844
re-PR of https://github.com/servo/servo/pull/9007 , because homu seems stuck
Fixes #8844 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9022 )
<!-- Reviewable:end -->
2015-12-20 01:34:26 +05:30
Beomjin Kim
2637d30c2a
Moved ScriptToCompositorMsg enum and EventResult enum to script_traits
...
Moved ScriptToCompositorMsg enum and EventResult enum to script_traits
resolving issue #8835 .
2015-12-20 00:31:33 +09:00
Simon Martin
0d910bb934
Issue #8352 : Dispatch mozbrowsershowmodalprompt event for alert().
2015-12-19 12:51:33 +01:00
Mathieu Agopian
11234f5370
Use Url.join instead of UrlParser.base_url(...).parse ( #9002 )
2015-12-18 17:02:41 +01:00
Maciej Skrzypkowski
3f7f323556
Move PaintMsg enum to gfx_traits #8844
2015-12-18 08:33:32 +01:00
bors-servo
9570b51565
Auto merge of #8618 - paulrouget:reload, r=jdm
...
Browser API: implement iframe.reload()
fixes #8575
The implementation is naive, and doesn't support the `hardreload` parameter.
And for the test, I'm not sure how else I can test the reload.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8618 )
<!-- Reviewable:end -->
2015-12-17 19:45:44 +05:30
Glenn Watson
b670430cb2
Add test to constellation to avoid writing reftest image if there are pending frames.
...
Also change when pipelines become active.
This makes the constellation activate a pipeline as the current frame
when it is ready to do initial reflow, rather than when it is ready
to paint.
This fixes a number of intermittent failures that could previously occur
if an iframe was not visible - which would mean it was never moved from
a pending frame in the constellation to an active frame.
(It happens that webrender exposes these intermittents as permanent failures).
2015-12-17 12:30:19 +10:00
GauriGNaik
fc81276c8e
Add pipeline information to CSS error reporting.
2015-12-14 11:18:30 -05:00
bors-servo
9f0c6d75d1
Auto merge of #8939 - cnaj:msg_refactoring, r=Ms2ger
...
Move PaintListener to gfx_traits, Fixes #8834
Adding layers and msg dependency to gfx_traits.
Fixes #8834 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8939 )
<!-- Reviewable:end -->
2015-12-12 04:27:55 +05:30
Tomas Cernaj
701aebee48
Move PaintListener to gfx_traits, Fixes #8834
...
Adding layers and msg dependency to gfx_traits.
2015-12-11 18:43:10 +01:00
Tetsuharu OHZEKI
7df8dc6177
Fix warning: unused_imports in constellation_msg.rs.
2015-12-11 09:58:43 -05:00
Beomjin Kim
729812f383
Moved CompositorMsg enum into compositing crate.
...
moved from components/msg/constellation_msg.rs
to components/compositing/lib.rs
dependencies on compositing crate added in ports/cef/Cargo.lock
2015-12-11 13:42:14 +09:00
Tomas Cernaj
5507be2653
Move ScriptMsg from msg crate into script_traits
2015-12-09 20:50:11 +01:00
Paul Rouget
2a86f9d165
Browser API: implement iframe.reload()
2015-12-08 04:40:16 +01:00
Florian Strübe
b81f712ce1
Moved WorkerId type to devtools_traits
2015-12-07 20:11:26 +01:00
Roman Klauke
bcc53edda4
move FocusType enum to the script crate
...
This commit moves the FocusType enum to the script crate and replaces
all usages with the new `usage`.
Fixes #8840
2015-12-06 15:39:45 +01:00
bors-servo
bc62b5aadb
Auto merge of #8785 - mbrubeck:fixed-hit-test, r=pcwalton
...
Add slow path for hit testing of iframe behind positioned content layer
Fixes browser.html blocker #8759 . r? @pcwalton
This adds a slow path for cases where the compositor's layer-based hit testing is incorrect. If the script task discovers that a mouse event should have been dispatched to an iframe, it bounces the event back to the constellation to be forwarded to the correct pipeline.
This isn't terribly slow (on the slow path, it adds one extra round-trip message between script and constellation), but if we want to optimize this better we could instead replace the compositor's layer hit testing with display list hit testing in the paint task. This would be a more complicated change that I think we should save for a follow-up.
This only fixes mouse input for now. A basically-identical change will be needed for touch-screen input, whether we stick with this approach or switch to the paint task.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8785 )
<!-- Reviewable:end -->
2015-12-04 02:54:22 +05:30
Matt Brubeck
9551363bfb
If a mouse event is targeting an iframe, forward it to the iframe's inner window
...
Fixes #8759 .
This adds a slow path for cases where the compositor's layer-based hit testing
is incorrect. To optimize for this case, we could instead replace the
layer hit testing with display-list hit testing done in the paint task.
2015-12-03 08:19:41 -08:00
Matt Brubeck
8c4fed42b0
Minor refactoring of mouse event types
...
* Move some types into the `msg` crate so they can be shared more.
* Use MouseEventType instead of duplicating it in other enums.
2015-12-03 08:19:40 -08:00
bors-servo
8b95d7b8d8
Auto merge of #8757 - servo:skia, r=mbrubeck
...
Use skia and deps from crates.io.
This makes the initial download for skia go from a 300 MB git repository to a 5 MB tarball. This should help with issues like #6132 and #7687 .
Fix https://github.com/servo/skia/issues/70
This builds, but the at the moment causes a number of tidy errors for duplicated crates.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8757 )
<!-- Reviewable:end -->
2015-12-03 12:58:29 +05:30
Simon Sapin
aa1eba4f5a
Use skia and deps from crates.io.
...
Fix https://github.com/servo/skia/issues/70
2015-12-02 19:07:59 +01:00
Josh Matthews
c23cbd4163
Dispatch load events for cross origin iframes. Resolves #6672 .
2015-11-30 17:37:16 -05:00
bors-servo
a877a56e0e
Auto merge of #8661 - craftytrickster:8623/some-webdriver-commands, r=jgraham
...
Webdriver - GetWindowSize/IsEnabled/IsSelected
Added handlers for https://github.com/servo/servo/issues/8623 :
GetWindowSize
IsEnabled(WebElement)
IsSelected(WebElement)
I am not sure how to actually verify my webdriver code works, if someone can give advice I would make the necessary changes.
Thanks!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8661 )
<!-- Reviewable:end -->
2015-11-30 03:42:54 +05:30
David Raifaizen
8d451076e1
Removed duplicate webdriver_traits file and added webdriver handler for GetWindowSize, IsSelected and IsEnabled
2015-11-29 15:48:23 -05:00
bors-servo
dbff1ab336
Auto merge of #8692 - GuillaumeGomez:patch-1, r=Wafflespeanut
...
Ensure crate are alphabetically sorted
cc @nox
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8692 )
<!-- Reviewable:end -->
2015-11-28 19:34:11 +05:30
Guillaume Gomez
6e7de62b38
Add check up on extern crate order and sort extern crates alphabetically
2015-11-28 03:11:08 +01:00
Manish Goregaokar
dc0e467945
Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
...
… and libc 0.2 and many other dependencies
2015-11-27 00:15:29 -05:00
bors-servo
5e7306bf19
Auto merge of #8598 - g-k:split-scriptmsg, r=KiChjang
...
Split paint task messages from ScriptMsg
Refs: https://github.com/servo/servo/issues/8592
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8598 )
<!-- Reviewable:end -->
2015-11-26 03:02:47 +05:30
Greg Guthe
7668fd0503
Split paint task messages from ScriptMsg
...
Refs: https://github.com/servo/servo/issues/8592
2015-11-25 14:35:52 -05:00
Patrick Walton
2843000810
Update ipc-channel
to pick up the improved error reporting.
...
Intended to help diagnose intermittent failures.
2015-11-23 16:38:39 -08:00
James Graham
f7258e4fcc
Add support for getting an element's computed style through WebDriver.
2015-11-20 13:23:38 +00:00
Patrick Walton
1c130819ca
compositing: Split Servo up into multiple sandboxed processes.
...
Multiprocess mode is enabled with the `-M` switch, and sandboxing is
enabled with the `-S` switch.
2015-11-19 16:38:04 -05:00
bors-servo
7f95693288
Auto merge of #8564 - jgraham:webdriver_attr, r=Ms2ger
...
Implement Get Element Attribute WebDriver command
This intentionally doesn't implement the special handling for boolean
attributes yet, since that requires some kind of exhaustive list of all
such attributes
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8564 )
<!-- Reviewable:end -->
2015-11-19 23:16:25 +05:30