Commit graph

2007 commits

Author SHA1 Message Date
bors-servo
d9e71edb10 auto merge of #628 : tkuehn/servo/master, r=metajack
Completed:
  * Replace pipeline navigation context with frame tree navigation context
  * Reuse script task for same origin iframes
  * Block on size future for iframe reflow
  * Remove global script context
  * Change codegen to use specific page context rather than script context.

Still to do:
  * Compositor's handling of relative frame positions
  * Compositor currently only asks for tiles from outermost frame
  * Window events are forwarded to the outermost frame's script. Should be routed to proper script via constellation.
  * Layout's sending of updated iframe sizes to constellation or size future (initial size only) as reflow is performed
2013-07-29 21:21:19 -07:00
Tim Kuehn
572f4825ec updated rust-http-client submodule 2013-07-29 21:18:10 -07:00
Tim Kuehn
2e6ad0a4a3 fix borrow check failures by reverting to storing *mut Page in window 2013-07-29 20:22:01 -07:00
Tim Kuehn
2b94dd6664 remove unused arg from script_task::handle_navigate_msg
remove unnecessary commented-out code
2013-07-29 15:53:28 -07:00
Tim Kuehn
ec30e97ddf removed a call to copy in servo.rc and renamed NavigationContext.navigate ==> NavigationContext.load 2013-07-29 15:02:06 -07:00
Tim Kuehn
df5306e358 switched window.page from *mut Page to @mut Page 2013-07-29 14:14:31 -07:00
Tim Kuehn
43491d5b23 navigation bug fix 2013-07-29 13:50:41 -07:00
Tim Kuehn
b7e2eab2f4 handle pipeline exiting properly 2013-07-29 12:43:41 -07:00
Tim Kuehn
e9888b299c structural changes to support Iframes 2013-07-29 11:03:17 -07:00
bors-servo
eaa20edcd7 auto merge of #627 : jdm/servo/docgen, r=kmc,jack 2013-07-28 09:15:27 -07:00
Josh Matthews
09d50147f7 Autogenerate DOM bindings for Document. 2013-07-28 12:04:11 -04:00
bors-servo
07267c634a auto merge of #620 : sonwow/servo/bindings, r=jdm
It's just a part of bingings for Document.
2013-07-25 10:27:18 -07:00
bors-servo
f34a13a8b5 auto merge of #619 : kmcallister/servo/script-redisplay, r=jdm
Stuff I found in the process of working on incremental layout.
2013-07-25 09:51:23 -07:00
bors-servo
b219262f0a auto merge of #618 : kmcallister/servo/test-html, r=jdm,jdm
I wanted this for testing incremental layout, but it's also useful to illustrate a bug I just found.

(PR attempt #2, hopefully Bors won't flip out this time)
2013-07-25 08:45:27 -07:00
Josh Matthews
a9d548f496 Update rust-png pointer. 2013-07-25 11:43:59 -04:00
Youngsoo Son
65d2ea2ffd Add a test for getElementsByName 2013-07-25 13:57:21 +09:00
Youngsoo Son
f8f9d203f5 Add binding for Document (getElementsByName) 2013-07-25 13:51:36 +09:00
Keegan McAllister
dc9f7560b0 Reflow and redisplay after script timers fire
We don't know what the script changed.  This will be less painful with
incremental layout.

Fixes a crash from calling reflow() with self.damage = None.
2013-07-24 16:52:48 -07:00
Keegan McAllister
de65ac7127 Fail the script task when page URL load fails
It's confusing that specifying a nonexistent file on the command line just
gives me a blank page.  Until we have a real 404 page let's just crash.
2013-07-24 16:52:48 -07:00
Keegan McAllister
c4adbd47f2 debug: Send flow tree dump to stderr for consistency 2013-07-24 14:52:43 -07:00
Keegan McAllister
350c0a61c6 Add an HTML file where JavaScript changes text color
I wanted this for testing incremental layout, but it's also useful to
illustrate a bug I just found.
2013-07-24 13:10:10 -07:00
bors-servo
fe91f6e238 auto merge of #616 : recrack/servo/copy_name, r=metajack 2013-07-23 16:54:19 -07:00
Youngmin Yoo
bd60e9b79c 'copy name' to name.to_owned() 2013-07-23 15:27:57 +09:00
bors-servo
edca186d52 auto merge of #615 : metajack/servo/pretty-make, r=jdm 2013-07-22 19:51:20 -07:00
Jack Moffitt
2539bf744f Prettify make output during builds. 2013-07-22 20:44:24 -06:00
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