Mátyás Mustoha
c98bca6130
Canvas: added arc().
2015-03-09 21:55:40 +01:00
Avi Weinstock
7803f2b216
Subsume ScriptMsg::WorkerDispatchErrorEvent into ScriptMsg::RunnableMsg via introduction of Worker::WorkerErrorHandler ( Closes #5171 ).
2015-03-09 09:24:40 -04:00
James Gilbertson
fafc357308
Fix broken viewport percentage length units after a viewport resize.
...
When a viewport is resized, the computed values for a style containing viewport percentage length units become stale. However, there's no way for those styles to be invalidated after a resize. As a solution, this commit invalidates the computed values cache after a resize has occurred, which is probably over-kill.
A better solution would probably be to track under what conditions computed values remain valid, and invalidate them as indicated.
2015-03-08 13:06:27 -06:00
bors-servo
da880af742
auto merge of #5170 : metajack/servo/update-cocoa-glutin, r=pcwalton
...
This just requires updating glutin and cocoa to pick up some backported fixes.
2015-03-07 20:45:48 -07:00
bors-servo
4f3feed2be
auto merge of #5150 : Adenilson/servo/reflowNotifications03, r=jdm
2015-03-06 21:48:50 -07:00
Jack Moffitt
43c82b9076
Fix scrolling on OS X.
...
This just requires updating glutin and cocoa to pick up some backported fixes.
2015-03-06 16:37:29 -07:00
bors-servo
73e5bbec43
auto merge of #5054 : psdh/servo/scriptimplementation, r=jdm
...
Fixes #4089
2015-03-06 13:36:53 -07:00
Adenilson Cavalcanti
618f56410d
Implements reflow events debugging.
...
Start servo with -Z relayout-event and you should have
reflow events printed to the terminal.
2015-03-06 12:27:18 -08:00
bors-servo
4bd5aed500
auto merge of #5153 : cyndis/servo/check-font-result, r=jdm
...
Thread font load errors from platform font loading code to
FontContext::get_layout_font_group_for_style, and cache the failure
result, instead of panicing the thread when a font fails to load.
Before this patch, a failed font load would panic a LayoutTask,
causing a cascade of panics, eventually aborting the whole engine
during a panic within panic.
On my Arch Linux machine almost every page would crash in this manner,
including e.g. reddit.com and cnn.com. Mosf of the requested fonts would
load fine but some single variant of Helvetica would fail always. Not sure
how to create a test for this as it seems pretty system-specific.
Cheers,
cyndis
2015-03-06 10:31:05 -07:00
Mikko Perttunen
92a4bba785
Handle font load errors in FontContext
...
Thread font load errors from platform font loading code to
FontContext::get_layout_font_group_for_style, and cache the failure
result, instead of panicing the thread when a font fails to load.
Before this patch, a failed font load would panic a LayoutTask,
causing a cascade of panics, eventually aborting the whole engine
during a panic within panic.
2015-03-06 18:18:22 +02:00
Guro Bokum
bf26d61d5e
ScriptTask::mouse_over_targets is not traced #4985
2015-03-06 20:22:41 +07:00
bors-servo
1a73766db2
auto merge of #5105 : gilles-leblanc/servo/issue-5063, r=jdm
...
Adds hostsfile parsing support for:
* Tabs
* Comments (line and end of line)
* IPv4 address validation
* Basic IPv6 address validation
* End of line whitespaces
* Host name alias (multiple host names per address)
Fixes #5063
2015-03-05 20:03:55 -07:00
Gilles Leblanc
70aa253a65
Specify regex and regex_macros version numbers
...
For compatibility with current Rust version.
Issue #5063
2015-03-05 21:09:41 -05:00
bors-servo
a557b51c28
auto merge of #5154 : luniv/servo/viewpoint-percent-lengths, r=SimonSapin
...
Spec: http://dev.w3.org/csswg/css-values-3/#viewport-relative-lengths
2015-03-05 18:55:02 -07:00
Gilles Leblanc
0faa55d2ce
Add more robust hostsfile parsing
...
Adds hostsfile parsing support for:
* Tabs
* Comments (line and end of line)
* IPv4 address validation
* Basic IPv6 address validation
* End of line whitespaces
* Host name alias (multiple host names per address)
Fixes #5063
2015-03-05 20:33:33 -05:00
Prabhjyot Singh Sodhi
64ba4a914e
implement missing steps from "prepare a script" algorithm
...
Fixes #4089
2015-03-06 03:16:59 +05:30
James Gilbertson
1931a69ad2
Remove un-used use statement
2015-03-05 12:45:59 -07:00
James Gilbertson
a8cd40e270
Remove the 'ch' font-relative length unit
2015-03-05 12:45:58 -07:00
James Gilbertson
dc5a9e56c7
The 'font-size' property needs to use context.inherited_font_size, not context.font_size
2015-03-05 12:45:58 -07:00
Dan Fox
559ff68b31
Get rid of servo_util
2015-03-05 17:42:05 +00:00
Dan Fox
19686acdec
Merge in servo/master
2015-03-05 17:34:18 +00:00
Ms2ger
ff2f7ea567
Remove an unused import from properties.rs.
2015-03-05 16:21:57 +01:00
James Gilbertson
bc1c44bbc2
Implement viewport percentage length units ('vw', 'vh', 'vmin', 'vmax')
2015-03-05 07:11:34 -07:00
James Gilbertson
16a8047343
Defer media query width computation until evalation
2015-03-05 07:09:10 -07:00
James Gilbertson
41786c4cb4
Refactor style::values::specified::Length to store length by kind (absolute, font-relative or character width)
2015-03-05 07:09:10 -07:00
James Gilbertson
00785ecf63
Make the initial viewport size available to style::properties::cascade
2015-03-05 07:09:10 -07:00
bors-servo
67548a6244
auto merge of #5127 : KiChjang/servo/partial-eq-jsref, r=Ms2ger
...
Fixes #5112 , #3960
2015-03-05 01:15:44 -07:00
Adenilson Cavalcanti
a31d3d7f70
Due to changes on Page/Window interfaces, we no longer have use
...
for flush_layout().
2015-03-04 11:39:29 -08:00
bors-servo
761f7f056c
auto merge of #5137 : Adenilson/servo/cleanupWarning02, r=jdm
2015-03-04 07:51:44 -07:00
bors-servo
9d58c086e7
auto merge of #5128 : bjwbell/servo/inline-block_fix_min-width, r=jdm
...
With inline-block elements set the width to max(min width,
specified width) instead of only using the specified width.
Fixes https://github.com/servo/servo/issues/4945
2015-03-03 22:24:44 -07:00
Bryan Bell
a35ffe1c6e
For inline-block correctly use min-width
...
With inline-block elements set the width to max(min width,
specified width) instead of only using the specified width.
2015-03-03 21:06:57 -08:00
Adenilson Cavalcanti
463f03826f
Cleanup compilation warning in OSX (should still work on Linux).
2015-03-03 16:01:25 -08:00
bors-servo
72f8898990
auto merge of #5118 : jdm/servo/pageload, r=Ms2ger
...
Rebased and improved version of #4967 .
2015-03-03 16:03:45 -07:00
bors-servo
e19fbc686c
auto merge of #5125 : glennw/servo/remove-iframe-layers, r=larsbergstrom
2015-03-03 15:12:45 -07:00
Glenn Watson
86baef2cc0
Remove compositor layers when iframes are removed from doc or display:none.
2015-03-04 07:51:46 +10:00
Josh Matthews
1fb12b11f4
Remove the newly-created Page from the tree if loading fails.
2015-03-03 16:25:40 -05:00
Josh Matthews
4972b623e1
Separate disposing of layout data from the GCing of the DOM object reflectors. Change the order of operations when shutting down the script task to ensure that Window globals aren't used after they've been GCed.
2015-03-03 16:25:40 -05:00
Josh Matthews
c816975750
Documentation and cleanup.
2015-03-03 16:25:40 -05:00
Josh Matthews
6351fc75fd
Only store the url inside a pipeline instead of the rest of the LoadData.
2015-03-03 16:25:40 -05:00
Josh Matthews
e2c4f5ed67
Move everything unrelated to the frame tree out of Page and into Document or Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
2015-03-03 16:25:40 -05:00
Josh Matthews
d9f04180a5
Split page load into separate network and parsing stages. Delay Page creation until the load is finished. Make session history traversal simply activate existing pipelines, rather than potentially loading them from the network.
2015-03-03 16:25:40 -05:00
bors-servo
621150db1c
auto merge of #5124 : Adenilson/servo/cleanupWarning01, r=Ms2ger
2015-03-03 13:51:48 -07:00
Simon Sapin
4c1d778ced
Revert "layout: Implement ordered lists, CSS counters, and quotes
per CSS 2.1"
...
This reverts commit 30fd28d107
.
2015-03-03 21:16:24 +01:00
Simon Sapin
7a218b3f08
Revert "Refactor content property parsing."
...
This reverts commit 50800940dc
.
2015-03-03 21:16:03 +01:00
Simon Sapin
e590f9b7f4
Revert "Tidy."
...
This reverts commit e209f5e0da
.
2015-03-03 21:16:01 +01:00
Dan Fox
3441b2c329
layout/layout_data.rs -> layout/data.rs
2015-03-03 19:59:38 +00:00
bors-servo
e1a50c7719
auto merge of #5133 : servo/servo/background-size, r=SimonSapin
...
`background-size` per CSS-BACKGROUNDS § 3.9.
Nearest neighbor interpolation is used for `crisp-edges`, like Firefox.
A note has been added that we could do better if we wanted to.
Multiple backgrounds are not yet supported.
Rebase of #4368 . Fixes #4368 .
2015-03-03 11:48:54 -07:00
Dan Fox
3f9032c1a1
Re-alphabetise imports
2015-03-03 18:16:50 +00:00
Dan Fox
dd0df4e9c5
Rename util.rs -> layout_data.rs
2015-03-03 18:12:06 +00:00
Dan Fox
564d12435a
Move ToGfxColor to display_list_builder.rs
2015-03-03 17:59:44 +00:00