Commit graph

5232 commits

Author SHA1 Message Date
bors-servo
404e3881b6 auto merge of #1121 : kmcallister/servo/client-rect, r=metajack
This broke in ab0d620 and in trying to fix it, it's become clear that I don't understand the intended behavior of `getClientRects()`.  In fact I only see one rect in Firefox even when all three `<div>`s have drawn borders, which confuses me compared to [the spec](http://www.w3.org/TR/cssom-view/#the-getclientrects-and-getboundingclientrect-methods).  Let's remove the test for now and someone who understands what's going on (which could be future me!) will re-add it.
2013-10-24 07:22:02 -07:00
bors-servo
ecf741f3ad auto merge of #1119 : Ms2ger/servo/dead-init_wrapper, r=kmcallister 2013-10-24 07:04:07 -07:00
bors-servo
d97249cc8c auto merge of #1118 : Ms2ger/servo/NodeList, r=kmcallister 2013-10-24 06:43:03 -07:00
bors-servo
d222443b38 auto merge of #1117 : Ms2ger/servo/HTMLCollection, r=kmcallister 2013-10-24 06:22:16 -07:00
bors-servo
86ec0a32f5 auto merge of #1116 : Ms2ger/servo/ClientRect, r=kmcallister 2013-10-24 06:01:15 -07:00
bors-servo
21270738ae auto merge of #1102 : Ms2ger/servo/dead-document-code, r=jdm
I don't think it's useful to keep those lying around, in particular because we should never even implement some of those (`mozHidden`, `mozVisibilityState`, …)
2013-10-24 05:40:24 -07:00
bors-servo
5168d4237a auto merge of #1114 : metajack/servo/reftest-sha-fix, r=larsbergstrom
`dirname()` now returns a `&'a [u8]` instead of a `Path`, which was serialized
to `[ 1 2 3 4 5 ]`.
2013-10-24 05:22:26 -07:00
bors-servo
45b7c9eee8 auto merge of #1122 : metajack/servo/fix-hubbub-deps, r=metajack,me
This fixes a parallel build issue where hubbub is built before libparserutils.
2013-10-24 04:37:23 -07:00
Jack Moffitt
493bdec07c Make hubbub depend on libparserutils. 2013-10-24 04:03:04 -06:00
Jack Moffitt
0b8e53f762 Update glfw to fix the build on the mac slave. 2013-10-24 02:33:04 -06:00
Keegan McAllister
20613390f9 Remove broken test_getClientRects.html
This broke in ab0d620 and in trying to fix it, it's become clear that I don't
understand the intended behavior of getClientRects().  In fact I only see one
rect in Firefox even when all three <div>s have drawn borders, which confuses
me.  Let's remove the test for now and someone who understands what's going on
(which could be future me!) will re-add it.
2013-10-23 17:31:06 -07:00
Ms2ger
8a9129abb8 Remove unused init_wrapper functions. 2013-10-23 21:20:36 +02:00
Ms2ger
5ee3bc7450 Cleanup NodeList bindings. 2013-10-23 21:13:18 +02:00
Ms2ger
8cb4976136 Cleanup HTMLCollection binding. 2013-10-23 20:59:14 +02:00
Ms2ger
6af555ab23 Cleanup ClientRectList binding. 2013-10-23 20:44:22 +02:00
Ms2ger
f75568e939 Cleanup ClientRect binding. 2013-10-23 20:15:36 +02:00
Jack Moffitt
b65e3ea86e Fix reftests.
`dirname()` now returns a `&'a [u8]` instead of a `Path`, which was serialized
to `[ 1 2 3 4 5 ]`.
2013-10-23 10:19:28 -06:00
Jack Moffitt
d2b57ba7c1 Update submodules.
Fixes build on 10.9.
2013-10-23 09:51:36 -06:00
bors-servo
1ed87f94b4 auto merge of #1112 : SimonSapin/servo/newnewcss, r=metajack
Following up on #1109. These three commits are independent.
2013-10-23 06:19:03 -07:00
Simon Sapin
ab0d620025 Remove the 'border-width: 0' hack.
This was to work-around a netsurfcss quirk.
2013-10-23 14:47:39 +02:00
Simon Sapin
2045f6a068 Remove (now unused) NetSurf’s libcss and libwapcaplet.
This removes four submodules (two C libraries and their Rust bindings.)
2013-10-23 14:42:29 +02:00
Simon Sapin
86da932927 Attempt to fix incremental layout
I have no idea how to test it,
but this code builds and is close enough to what it was befor #1109.

Review much needed.
2013-10-23 14:23:51 +02:00
bors-servo
9b25df1968 auto merge of #1109 : sanxiyn/servo/new-style, r=SimonSapin
Regressions are:
* Incremental layout is broken
* `:link` is broken
* Source URL is not passed to CSS parser
* `text-decoration` propagation for block containers establishing an inline formatting context is not handled

This also does not remove NetSurf libcss from the build. That can be done in a followup.

This was a team effort. Credits to Deokjin Kim, Ilyong Cho, Jaeman Park, Junyoung Cho, Ryan Choi, Sangeun Kim, Yongjin Kim, Youngmin Yoo, Youngsoo Son.
2013-10-23 03:57:55 -07:00
bors-servo
71a43dd219 auto merge of #1101 : Ms2ger/servo/vs-eager, r=jdm 2013-10-23 02:04:01 -07:00
bors-servo
c2116c3aa1 auto merge of #1110 : ILyoan/servo/parentNode, r=jdm
In this implemantation `GetParentNode()` just returns `self.parent_node`.
But according to MDN(https://developer.mozilla.org/en-US/docs/Web/API/Node.parentNode), it says.
"parentNode returns null for the following node types: Attr, Document, DocumentFragment, Entity, and Notation."

should this be checked?

r? @jdm
2013-10-23 01:43:05 -07:00
Ilyong Cho
a4aa8b05f7 Implementation of node.parentNode/parentElement 2013-10-23 17:04:57 +09:00
Seo Sanghyeon
b2431912d3 Use the new style system
Credits to:
    Deokjin Kim
    Ilyong Cho
    Jaeman Park
    Junyoung Cho
    Ryan Choi
    Sangeun Kim
    Yongjin Kim
    Youngmin Yoo
    Youngsoo Son
2013-10-23 16:49:35 +09:00
Ms2ger
66a76961cc Wrap ValidityState eagerly. 2013-10-23 09:05:06 +02:00
bors-servo
f3f6e62f7f auto merge of #1104 : ibnc/servo/script_dev, r=jdm
Fixes #845
2013-10-22 16:07:34 -07:00
Isabelle Carter
0e94eb5720 Implemented HTMLScriptElement.Src 2013-10-22 17:27:40 -05:00
bors-servo
f4df246f9d auto merge of #1092 : kmcallister/servo/headless, r=metajack 2013-10-22 13:52:14 -07:00
Keegan McAllister
67c35ef625 Simplify opts.rs 2013-10-22 13:35:09 -07:00
Keegan McAllister
dcc697c8b1 Use headless mode for content tests 2013-10-22 13:35:09 -07:00
Keegan McAllister
1b785f150c Add a headless null compositor
We also have to disable rendering in headless mode because it uses OpenGL calls
for now.

Fixes #471.
2013-10-22 13:35:09 -07:00
Keegan McAllister
ecc3db7b1f Split out the part of the compositor which makes OpenGL calls 2013-10-22 13:35:09 -07:00
bors-servo
14d34e73b9 auto merge of #1103 : kmcallister/servo/eager-wrap, r=jdm 2013-10-22 13:13:14 -07:00
Keegan McAllister
65a8546fc4 Fix Event and MouseEvent contenttests 2013-10-22 12:52:04 -07:00
Keegan McAllister
5a5223d24e Eagerly reflect {,UI,Mouse}Event 2013-10-22 12:52:04 -07:00
Keegan McAllister
30a9fb2f45 Factor out a helper for eagerly creating JS wrappers 2013-10-22 12:52:04 -07:00
bors-servo
797143a1d3 auto merge of #1067 : metajack/servo/rust-up-20131014, r=jdm
This upgrades to this morning's master. We have unfortunately broken the Android build, but I will update that in a second pull request as I think it's more than a single upgrade behind.
2013-10-22 09:16:17 -07:00
Jack Moffitt
2558c723c9 Disable contenttest on linux because it doesn't work anyway. 2013-10-22 10:07:38 -06:00
Jack Moffitt
641fa2d968 Run one contenttest at a time. 2013-10-22 06:50:45 -06:00
Jack Moffitt
39f119ddd3 Renderer might have exited before compositor knows its gone.
This works around the problem, which will need a more detailed fix when it
gets revamped.
2013-10-22 04:30:31 -06:00
Jack Moffitt
94202661c0 Update to latest Rust. 2013-10-21 17:38:34 -06:00
Jack Moffitt
8b47221ff8 Small bugfixes in sub.mk. 2013-10-21 17:11:14 -06:00
Jack Moffitt
5b131ef165 Don't build package by default. 2013-10-21 17:11:13 -06:00
Ms2ger
e418e4d830 Remove no-op implementations from Document and HTMLDocument. 2013-10-21 19:51:12 +02:00
bors-servo
4d8f7fd056 auto merge of #1099 : Ms2ger/servo/abstract-borrowed-pointers, r=jdm 2013-10-21 09:37:03 -07:00
Ms2ger
b90766404c Replace Document::{with_base, with_mut_base} by Document::{document, mut_document}. 2013-10-21 17:57:44 +02:00
bors-servo
f274106029 auto merge of #1093 : larsbergstrom/servo/shutdown_window_destruction, r=metajack
We were removing the Window from TLS and thus destroying it after terminating the windowing system, which caused an error due to calling a glfw function when it was not inititalized.
2013-10-21 08:46:01 -07:00