Commit graph

5232 commits

Author SHA1 Message Date
bors-servo
b94a5ab6d1 auto merge of #614 : metajack/servo/float-height-width, r=pcwalton
We were overshooting on height by including margins, and undershooting on
width by not including margins, borders, and padding.
2013-07-22 17:12:19 -07:00
Jack Moffitt
7e57b88336 Fix calculation of float height and width.
We were overshooting on height by including margins, and undershooting on
width by not including margins, borders, and padding.
2013-07-22 18:05:08 -06:00
bors-servo
25fdcb3dca auto merge of #608 : kmcallister/servo/script-exit, r=metajack 2013-07-22 13:33:20 -07:00
bors-servo
9b06d01891 auto merge of #613 : metajack/servo/basic-width-reftest, r=pcwalton 2013-07-22 10:18:25 -07:00
Keegan McAllister
4d76e7570e Bump layout data ref count in unsafe_set_layout_data
We need this or else we double-free the layout data box and crash.
2013-07-22 10:04:28 -07:00
bors-servo
4f227e0a98 auto merge of #612 : metajack/servo/float-children, r=jdm
They were being positioned outside their parent's box in some cases.
2013-07-22 09:51:27 -07:00
Jack Moffitt
806ebe09dd Add a reftest for relative widths. 2013-07-22 10:47:28 -06:00
Jack Moffitt
82765c2f6b Float children are now positioned relative to the float's box. 2013-07-22 10:45:19 -06:00
Jack Moffitt
94d83f96f1 Fix flow tree debug printing.
Nested `debug!()` calls are no-ops, so change it now does a `println`. Also
moved to the `debug!()` calls out of the profiled block.
2013-07-22 10:43:02 -06:00
bors-servo
ddbe1c9c41 auto merge of #610 : metajack/servo/fix-reftest, r=pcwalton
This adds a sha1 hash to the output filenames based on the test. Rust runs
tests in parallel by default, so the test files were stomping on each other.
2013-07-19 21:36:23 -07:00
Jack Moffitt
4598149199 Fix reftest for parallel test runs.
This adds a sha1 hash to the output filenames based on the test. Rust runs
tests in parallel by default, so the test files were stomping on each other.
2013-07-19 22:26:17 -06:00
bors-servo
841b91f1b6 auto merge of #609 : metajack/servo/broken-css, r=pcwalton
The fix for #606 broke all inline CSS, and this fixes it correctly.
2013-07-19 18:12:22 -07:00
Jack Moffitt
587738d1b1 Use complete_style instead of bogus unref. 2013-07-19 19:09:25 -06:00
Jack Moffitt
52e8a9be28 Fix busted iterator. 2013-07-19 18:39:14 -06:00
Keegan McAllister
4fd6ad3d5c Move script local_data_pop out of dtor
Fixes #570, which was caused by a second reentrant call to the dtor.
2013-07-19 16:47:57 -07:00
bors-servo
cca33c2027 auto merge of #606 : metajack/servo/broken-inline-css, r=jdm
This add a new children iterator to abstract node and fixes a bug where inline stylesheets got parsed piecewise due to \r style line endings.
2013-07-19 14:45:19 -07:00
Jack Moffitt
2b44efbbef Remove spurious whitespace. 2013-07-19 15:36:42 -06:00
Jack Moffitt
a6bcd5595f Bump rust-css. 2013-07-19 15:24:27 -06:00
bors-servo
d27b1a8c2c auto merge of #605 : rfielding/servo/master, r=metajack
assertion will fail if msttcorefonts is not installed.  the page will come up successfuly now  when literally following the README.md (a segfault when the window is closed, but good progress now).
2013-07-19 14:21:19 -07:00
Jack Moffitt
34106d7e45 Fix broken inline CSS parsing and add a iterator for children.
If '\r' appears in an inline <style> element, libhubbub splits the text nodes
there, creating multiple text children. The inline style logic assumed that
each <style> element had only one child.

The logic was moved to trigger when the style element is finished parsing
completely (including the children), and then the children are concatenated
before sending it to the parser.
2013-07-19 15:18:45 -06:00
Robert Fielding
03377ce176 msttcorefonts is a requirement
build and make check will pass, but assertion will fail if msttcorefonts is not installed.
2013-07-19 17:06:41 -04:00
bors-servo
2995ecc5a3 auto merge of #603 : rfielding/servo/master, r=metajack
git port is blocked behind firewalls, use one clone protocol everywhere.
2013-07-19 09:39:32 -07:00
Robert Fielding
933fe75151 Update .gitmodules
https already works, but git doesnt work behind some firewalls
2013-07-19 12:28:52 -04:00
Robert Fielding
55ef94321c Update README.md
git firewall port is blocked in some environments
2013-07-19 12:19:22 -04:00
bors-servo
b68b573d77 auto merge of #602 : metajack/servo/relative-bpm, r=pcwalton
...d widths.
2013-07-18 19:15:38 -07:00
Jack Moffitt
11af5ffda6 Rename variables for clarity. 2013-07-18 20:11:35 -06:00
Jack Moffitt
e10b36210c Rename cb_width to containing_width. 2013-07-18 20:11:10 -06:00
Jack Moffitt
b2c042df94 Brace multi-line match patterns per coding style. 2013-07-18 20:05:32 -06:00
Jack Moffitt
4d1e21bd8e Renaming and refactoring spec_or_default.
`spec_or_default` is now `specified_or_default` and `specified_or_zero` was
added to handle the most common case.
2013-07-18 20:02:22 -06:00
Jack Moffitt
9a1d4d593b Properly account for relative CSS units in borders, margins, padding, and widths. 2013-07-18 19:31:52 -06:00
bors-servo
41f7109c63 auto merge of #600 : metajack/servo/new-reftest, r=pcwalton
This does not port the existing src/test/html/ref tests to the new framework, as it appears to me that they aren't really reftests in the sense of Gecko's reftest. This new driver uses the Gecko methodology.

Currently this will pop a window for each test due to not having a headless driver yet, and #570 means that servo segfaults when it shuts down so we can't check the exit status.

There's plenty to improve in the future, but this should get us started.
2013-07-18 15:25:10 -07:00
bors-servo
09acdcc4ec auto merge of #593 : eschweic/servo/windowing-messages, r=metajack
Replaces https://github.com/mozilla/servo/pull/520 so we don't have to go through the pain of rebasing it.
r? @pcwalton
2013-07-18 07:50:17 -07:00
bors-servo
49524a6c61 auto merge of #594 : jsyeo/servo/add-MH-configs, r=metajack
For https://bugzilla.mozilla.org/show_bug.cgi?id=891870.
2013-07-18 07:22:20 -07:00
Jack Moffitt
728330fb88 Rewrite reftest harness and add basic example reftest. 2013-07-17 20:31:12 -06:00
bors-servo
073f4240aa auto merge of #599 : kmcallister/servo/proto-array, r=jdm
Fixes #596

@jdm r?
2013-07-17 17:42:47 -07:00
Keegan McAllister
da6460ed0a Bump protoArray size for WindowProxy
Fixes #596
2013-07-17 17:25:28 -07:00
bors-servo
e5fc6484ce auto merge of #597 : eric93/servo/diplaylist-refactor, r=jdm 2013-07-17 17:00:42 -07:00
Eric Atkinson
9c5ab1545c Fix regression on clicking links 2013-07-17 16:32:02 -07:00
Jason Yeo
514d9ee04f Added mozharness config files 2013-07-17 17:36:34 -04:00
eschweic
d695b2d2bc Refactor compositor to use messages rather than callbacks. 2013-07-17 12:46:24 -07:00
bors-servo
c17ede3716 auto merge of #591 : eschweic/servo/del-tiles, r=pcwalton
The quadtree is now initialized with a memory limit, and tiles are deleted automatically if that limit is exceeded. The memory limit can also be set to None to prevent this behavior.
2013-07-17 11:46:24 -07:00
eschweic
5468885545 Update remove_tile, add automatic tile removal, fix tests for quadtree 2013-07-17 00:20:26 -07:00
bors-servo
21fa57c93e auto merge of #590 : metajack/servo/png-output, r=metajack,me
This enables the `-o FILE` command line option to render the window contents to a PNG after rendering and exit Servo.
2013-07-16 15:01:15 -07:00
Jack Moffitt
97173107e2 Update rust-png to support libpng 1.2. 2013-07-16 15:58:44 -06:00
Jack Moffitt
a4578726c9 Update README with new deps. 2013-07-16 11:14:40 -06:00
Jack Moffitt
31f7c4ba14 Write out PNG file after compositing based on -o option. 2013-07-16 09:55:19 -06:00
Jack Moffitt
12eb1e55a6 Clean up check targets in Makefiles. 2013-07-16 09:55:19 -06:00
Jack Moffitt
1e28a5c20e Bump rust-azure pointer. 2013-07-16 09:55:19 -06:00
Jack Moffitt
092e887bda Enable -o option for output_file. 2013-07-16 09:55:19 -06:00
Jack Moffitt
e9b1657df6 Add rust-png submodule. 2013-07-16 09:55:19 -06:00