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
Simon Sapin
c066377fc5
Add support for changing the viewport size in reftests.
...
Usage example, in `*.list` files:
resolution=200x300 == something.html something_ref.html
2015-03-05 16:52:16 +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
bors-servo
34289943e3
auto merge of #5144 : Adenilson/servo/removeFlushLayout01, r=Manishearth
...
Due to changes on Page/Window interfaces, we no longer have use for flush_layout().
2015-03-04 16:54: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
373a720dfd
auto merge of #5141 : SimonSapin/servo/silent-submodule-sync, r=Manishearth
...
This eliminates the
Synchronizing submodule url for 'support/android-rs-glue'
Synchronizing submodule url for 'tests/wpt/web-platform-tests'
messages that appeared for every `mach build` command.
2015-03-04 05:51:44 -07:00
Simon Sapin
b613519a52
Make submodule sync silent (and recursive).
...
This eliminates the
Synchronizing submodule url for 'support/android-rs-glue'
Synchronizing submodule url for 'tests/wpt/web-platform-tests'
messages that appeared for every `mach build` command.
2015-03-04 13:43:51 +01: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
bors-servo
07a3ce2ce1
auto merge of #5130 : bjwbell/servo/inline_block_overflow_ref_test, r=glennw
...
For https://github.com/servo/servo/issues/3725
2015-03-03 21:48:43 -07:00
Bryan Bell
3b32178962
Add inline-block overflow ref test
...
For https://github.com/servo/servo/issues/3725
2015-03-03 20:44:49 -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
Josh Matthews
b89339d055
Add missing crate to gonk.
2015-03-03 17:56:55 -05: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
9a3d58032d
Update WPT expectations.
2015-03-03 16:25:40 -05: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
0ff54a9773
auto merge of #5136 : iamdanfox/servo/replace-uint-with-usize, r=metajack
...
Clears up some warnings.
2015-03-03 14:24:47 -07:00
bors-servo
621150db1c
auto merge of #5124 : Adenilson/servo/cleanupWarning01, r=Ms2ger
2015-03-03 13:51:48 -07:00
Dan Fox
522b0ea3b9
uint -> usize
2015-03-03 20:27:19 +00: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
Simon Sapin
e1b5acb56c
Revert "Remove expected failure markers on a couple of WPT reftests that now pass."
...
This reverts commit 4c8bde5736
.
2015-03-03 21:15:49 +01: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
Simon Sapin
1c4b0dda55
Fix up libstyle unit test for background-size.
2015-03-03 18:48:17 +01:00
bors-servo
5cd6316add
auto merge of #5067 : servo/servo/counters, r=SimonSapin
...
Only simple alphabetic and numeric counter styles are supported. (This
is most of them though.)
Although this PR adds a sequential pass to layout, I verified that on
pages that contain a reasonable number of ordered lists (Reddit
`/r/rust`), the time spent in generated content resolution is dwarfed by
the time spent in the parallelizable parts of layout. So I don't expect
this to negatively affect our parallelism expect perhaps in pathological
cases.
Moved from #4544 , because Critic.
Fixes #4544 .
2015-03-03 10:42:52 -07:00
Simon Sapin
4c8bde5736
Remove expected failure markers on a couple of WPT reftests that now pass.
2015-03-03 18:24:33 +01:00
Patrick Walton
09c53f461d
layout: Implement image-rendering
per CSS-IMAGES-3 § 5.3 and
...
`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.
2015-03-03 17:54:12 +01:00
Simon Sapin
e209f5e0da
Tidy.
2015-03-03 17:46:14 +01:00
Simon Sapin
50800940dc
Refactor content property parsing.
...
It wasn’t wrong, but it could be a lot shorter.
* Use try! and match_ignore_ascii_case! macros whenever possible
* Use expect_comma() instead of parse_comma_separated() when comma-separated values don’t have the same syntax
* Prefer Parser::expect_* methods over doing the same with Parser::next
* Take advantage of parse_nested_block returnin the return value of the closure
* Use try! more.
2015-03-03 17:31:19 +01:00
Patrick Walton
30fd28d107
layout: Implement ordered lists, CSS counters, and quotes
per CSS 2.1
...
§ 12.3-12.5.
Only simple alphabetic and numeric counter styles are supported. (This
is most of them though.)
Although this PR adds a sequential pass to layout, I verified that on
pages that contain a reasonable number of ordered lists (Reddit
`/r/rust`), the time spent in generated content resolution is dwarfed by
the time spent in the parallelizable parts of layout. So I don't expect
this to negatively affect our parallelism expect perhaps in pathological
cases.
2015-03-03 17:31:19 +01:00
bors-servo
6fcc02e92f
auto merge of #5132 : servo/servo/overflow-xy, r=SimonSapin
...
Rebase of #4567 . Fix #4567 .
2015-03-03 09:06:55 -07:00
Patrick Walton
a82fc00806
layout: Implement overflow-x
and overflow-y
per CSS-OVERFLOW § 3.
...
Fragmentation is not yet supported.
2015-03-03 17:03:27 +01:00
bors-servo
417a932e30
auto merge of #5131 : aweinstock314/servo/master, r=jdm
...
...78).
2015-03-03 07:18:53 -07:00
Avi Weinstock
bcc27d9bd0
Replace borrow with borrow_for_gc_trace in JSTraceable::trace (Issue #4778 ).
2015-03-03 09:06:45 -05:00
Keith Yeung
a07a0cf39f
Added type parameter to PartialEq on JSRef ( fixes #5112 , #3960 )
2015-03-03 11:46:13 +08:00
bors-servo
315a2349e8
auto merge of #5122 : aweinstock314/servo/master, r=kmcallister
...
...t based on sys.stdout.isatty() (Issue #5043 ).
2015-03-02 20:18:49 -07:00