Commit graph

3647 commits

Author SHA1 Message Date
bors-servo
4eb1e88e8f auto merge of #553 : pcwalton/servo/cpu-rendering, r=pcwalton
r? @metajack
2013-10-25 17:01:22 -07:00
Patrick Walton
3d0bfa5040 Implement CPU rendering. Replace texture sharing with native OS surface sharing. 2013-10-25 16:58:30 -07:00
bors-servo
d5bd4bfdb7 auto merge of #1131 : pcwalton/servo/update-dependencies, r=metajack
r? @kmcallister
2013-10-24 17:07:05 -07:00
bors-servo
4301c2f4a4 auto merge of #1130 : kmcallister/servo/contenttest, r=metajack
**This build is expected to fail** at first, because `test_img_width_height` is broken on `master`. It's the simplest way I know to check that with this change, buildbot will indeed catch failing content tests.

After that happens I'll push the commits to fix `test_img_width_height` and request a re-review.
2013-10-24 16:48:54 -07:00
Patrick Walton
74dcb6fccf mk: Update dependencies. 2013-10-24 16:44:05 -07:00
Keegan McAllister
895191c3a6 contenttest: Exit with non-zero status when tests fail
This makes buildbot reject commits with failing contenttests.
2013-10-24 16:16:15 -07:00
bors-servo
0490cc09dd auto merge of #1128 : pcwalton/servo/revert-document-node, r=metajack
This reverts commit 4e47d59165.

Conflicts:

	src/components/script/dom/domparser.rs

r? @metajack
2013-10-24 15:54:50 -07:00
Patrick Walton
baba35adc9 Revert "Make Document a Node." for breaking Acid1
This reverts commit 4e47d59165.

Conflicts:

	src/components/script/dom/domparser.rs
2013-10-24 15:08:09 -07:00
bors-servo
bce5285506 auto merge of #1127 : Ms2ger/servo/DOMParser, r=metajack 2013-10-24 14:27:52 -07:00
Ms2ger
4c69d748bd Cleanup DOMParser binding. 2013-10-24 19:20:03 +02:00
bors-servo
13644ccab1 auto merge of #1079 : jdm/servo/docnode, r=jdm,metajack
The bit I don't like about these changes is that I ended up hiding the document node from the CSS selecting/matching code, so it continues thinking of the document's first child as the root. When I tried to send the full tree including the document node to layout, the layout code refused to create any child flows. When I sent the document's first child without hiding the document, it saw inherited values for properties like font-family, and later tried to treat the document node as an Element when searching for named nodes.
2013-10-24 09:15:55 -07:00
Josh Matthews
4e47d59165 Make Document a Node. 2013-10-24 18:07:46 +02:00
bors-servo
a9e2329939 auto merge of #1126 : Ms2ger/servo/get_scope_and_cx, r=jdm 2013-10-24 08:00:58 -07:00
bors-servo
b1c068b203 auto merge of #1125 : Ms2ger/servo/ClientRectList, r=jdm 2013-10-24 07:42:59 -07:00
Ms2ger
5d1eea5f03 Remove unused get_scope_and_cx functions. 2013-10-24 16:37:56 +02:00
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