bors-servo
bb51a9d6fb
auto merge of #657 : tkuehn/servo/master, r=metajack
2013-08-01 11:48:31 -07:00
Tim Kuehn
95f71f8fb9
minor FP-style function refactor
2013-07-31 22:06:42 -07:00
bors-servo
13afd25679
auto merge of #656 : kmcallister/servo/dynamic-freeze, r=jdm
...
Fixes #455 (for now)
Also add a comment about how what we're doing here is unsafe (for reasons that are mostly unrelated to the warning)
r? @tkuehn
2013-07-31 21:57:33 -07:00
Keegan McAllister
e661ce66b6
Fix freeze scope extension warning
...
Fixes #455 (for now)
Also add a comment about how what we're doing here is unsafe (for reasons that
are mostly unrelated to the warning)
2013-07-31 17:54:26 -07:00
bors-servo
288eee073f
auto merge of #654 : tkuehn/servo/master, r=metajack
...
Fixes #653 .
r? @metajack
2013-07-31 16:03:23 -07:00
Tim Kuehn
c3d19c531b
use consume_iter() instead of iter().transform(|&x| x)
2013-07-31 15:52:43 -07:00
bors-servo
feee4ddcb2
auto merge of #647 : tkuehn/servo/master, r=metajack
...
This will be necessary for the constellation to properly assign sizes to iframes when a parent layout performs reflow.
2013-07-31 14:42:29 -07:00
Tim Kuehn
8eac64b0ae
refactor constellation methods to follow FP style
2013-07-31 13:12:33 -07:00
Tim Kuehn
00658b2ad0
fix how FrameTrees are copied
2013-07-31 13:12:33 -07:00
Tim Kuehn
97a60f35e3
add next_subpage_id to Page struct
2013-07-31 13:12:33 -07:00
Tim Kuehn
5d7626fa44
when loading an iframe, now searches for all instances of parent pipeline in the navigation context to append the child frame to
2013-07-31 13:12:33 -07:00
Tim Kuehn
959ed774b4
current frame tree is copied upon subframe navigation to prevent changes from being transitively received
2013-07-31 13:12:33 -07:00
Tim Kuehn
2348fbf46d
added subpage ids to map from iframe to all associated pipelines
2013-07-31 13:12:32 -07:00
bors-servo
7911ae5695
auto merge of #645 : jdm/servo/window, r=jdm
...
This one also looks larger than necessary because GetParentObject needed to be changed to return an Option.
2013-07-30 13:57:26 -07:00
Josh Matthews
a2bdab7989
Generate bindings for Window.
2013-07-30 16:30:46 -04:00
bors-servo
0c105b5307
auto merge of #641 : jdm/servo/htmldoc2, r=jdm
...
There are several mechanical changes here that make this look more intimidating than it is. DOMStrings are now passed by reference, and Event and Event_ have swapped names. Finally, there are the various places that need to use `document.with_base |doc| { document.foo }` instead of `document.foo`.
2013-07-30 13:30:24 -07:00
Josh Matthews
5546f2105b
Generate HTMLDocument bindings. Introduce invariant into generated bindings that associated DOM classes are named the same as their interfaces, so Event and Event_ need to be swapped.
2013-07-30 16:28:02 -04:00
bors-servo
ad8fa8b3d7
auto merge of #640 : recrack/servo/fixme_each_mut, r=jdm
2013-07-30 06:27:20 -07:00
Youngmin Yoo
0c1a277e8f
FIXME: uint::range to vec`s iter().advance
2013-07-30 19:28:24 +09:00
bors-servo
0acb313c55
auto merge of #638 : tkuehn/servo/master, r=metajack
...
... renderers
2013-07-29 23:06:19 -07:00
Tim Kuehn
1d4b0844b4
refactored for more code reuse in constellation
2013-07-29 22:48:19 -07:00
Tim Kuehn
80675351b3
constellation blocks on compositor before sending permission to paint to renderers
2013-07-29 22:41:05 -07:00
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