Commit graph

31 commits

Author SHA1 Message Date
Patrick Walton
cf773ab0f2 servo: Merge #1424 - Harden layout (from pcwalton:harden-layout); r=pcwalton
This changeset gets rid of the `FooView` phantom type in favor of a more brute force approach that just whitelists methods that layout is allowed to call. The set is surprisingly small now that layout isn't going to the DOM for much.

If this approach turns out not to scale, we can do something fancier, but I'd rather just have it be safe and secure first and then refactor later for programmer happiness.

r? @kmcallister

Source-Repo: https://github.com/servo/servo
Source-Revision: 824c7ac613ebb80bb432ff6425c5e25c642b6afb
2013-12-17 18:16:05 -08:00
Patrick Walton
dace488433 servo: Merge #1422 - script: Make trees less generic (from pcwalton:less-generic-trees); r=metajack
r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: e4495453c8b06f31bdbb984e92a184eb2d67c3d6
2013-12-17 13:49:17 -08:00
Simon Sapin
525a29a0b7 servo: Merge #1368 - Fix #1264: support namespaced attribute selectors (from SimonSapin:master)
Source-Repo: https://github.com/servo/servo
Source-Revision: fc80be982a75e02093b4096bea6799953fe904b9
2013-12-11 09:16:47 -08:00
Ms2ger
36d5f6f60b servo: Merge #1198 - Remove GetParentObject (from Ms2ger:GetParentObject); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b023b98b2c704c264cd3a377e4c0c4bd33c87662
2013-11-06 13:13:32 -08:00
Ms2ger
2ecf2a175b servo: Merge #1193 - Remove Reflectable::wrap_object_shared (from Ms2ger:wrap_object_shared); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 9d8c97d3b0ac932c1db8c71016eab531e5aeefa0
2013-11-06 07:49:35 -08:00
Ms2ger
6af2f152be servo: Merge #1191 - Rewrite Document creation and reflection (from Ms2ger:new-document); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4ae26a7fd443a744fbb867c5d423c15804d62068
2013-11-05 12:37:26 -08:00
Josh Matthews
9ff8840630 servo: Merge #1161 - Make Document a Node (from jdm:docnode); r=metajack
r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: d54994a4003481aad8a2b6611d30a2f64b50f071
2013-10-31 13:31:42 -07:00
Patrick Walton
cee348e4ef servo: Merge #1128 - Revert "Make Document a Node." for breaking Acid1 (from pcwalton:revert-document-node); r=metajack
This reverts commit 4e47d59165d186d0938fe9ffd726b2c1b83d50f4.

Conflicts:

	src/components/script/dom/domparser.rs

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 0490cc09ddc0f06d2a65cc6e43faffe994850aa6
2013-10-24 15:54:50 -07:00
Josh Matthews
3a9a8a3d73 servo: Merge #1079 - Make Document a Node (from jdm: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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 13644ccab1942c053c3fd5e4a19bb75d9ebe8739
2013-10-24 09:15:55 -07:00
Ms2ger
ef568aa920 servo: Merge #1102 - Remove no-op implementations from Document and HTMLDocument (from Ms2ger: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`, …)

Source-Repo: https://github.com/servo/servo
Source-Revision: 21270738ae0b49097472aa6f861fac7cf465038e
2013-10-24 05:40:24 -07:00
Ms2ger
b1e1c83284 servo: Merge #1086 - Merge BindingObject and Reflectable (from Ms2ger:GetParentObject); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 284ad5ee8eb43274036b05ae400fccb823313d15
2013-10-18 08:13:05 -07:00
Ms2ger
f329585e76 servo: Merge #1078 - Remove unused aTriedToWrap argument (from Ms2ger:triedToWrap); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 34f89b27b36220748a344b32b4ba0cb4e8efd5a4
2013-10-17 08:19:11 -07:00
Simon Sapin
4080bdd5ac servo: Merge #1075 - More style system (from SimonSapin:newnewcss); r=kmcallister
I believe this is all the preparatory work discussed in #1006 and #1057: The new 'style' crate implements the whole style system (including parsing, matching and cascading) and only depends on cssparser and util, so that gfx, script and main can all depend on it.

Next: porting the layout code to this. (Really, this time! I think.)

Source-Repo: https://github.com/servo/servo
Source-Revision: 6db57e6f72c85cd5233f431817f9344aed8eab87

--HG--
rename : servo/src/components/gfx/geometry.rs => servo/src/components/util/geometry.rs
2013-10-16 15:37:42 -07:00
Ms2ger
a307fb4023 servo: Merge #1072 - Issue #1071 - Ensure that Documents always have a non-null Window (from Ms2ger:crash-domparser); r=jdm
Turns out that documents without a window `fail!` a lot, because we need the `cx` all over.

Source-Repo: https://github.com/servo/servo
Source-Revision: 509934cf65acb1061cf4b012556ff6782e3203c9
2013-10-16 02:37:09 -07:00
Ms2ger
f6d158d953 servo: Merge #1051 - Make Document::root private (from Ms2ger:private-root); r=jdm
In preparation for removing it as part of making Document a Node.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8d3c7a2ded69f035f8fc98a38dd337237cb7db2a
2013-10-14 10:22:00 -07:00
Ms2ger
e1396c9d8b servo: Merge #1050 - Implement Window::get_cx() to reduce code repetition (from Ms2ger:get_cx); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 5d00b52055212cf4dec5f526390fc62fad6b32f3
2013-10-14 09:37:14 -07:00
Tim Taubert
6245763aea servo: Merge #1018 - Implement Nodelist and consolidate common scope and context retrieval (from ttaubert:nodelist); r=jdm
This should fix #652 and #775. I'm not sure if that's all that is needed to properly implement NodeList? Should we add tests somewhere? Sorry for any stupid stuff I might have done :)

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: fc9fdf30a6b4b4437cfe7a624c52c9a8b5e5a645

--HG--
rename : servo/src/components/script/dom/bindings/codegen/EventTarget.webidl => servo/src/components/script/dom/bindings/codegen/NodeList.webidl
2013-10-11 07:51:59 -07:00
Bobby Holley
caf3be779a servo: Merge #1032 - Remove unsafe casting in reflector access (from bholley:unsafe_reflector_casts); r=jdm
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 9d04be98e56f93c5ddfe6c1113707644b8ede413
2013-10-10 04:28:00 -07:00
Bobby Holley
f08243e914 servo: Merge #1028 - Rename various bits of reflector-related machinery (from bholley:reflector_rename); r=jdm
There are still a few instances of "wrapper"-ish names scattered throughout the code, but this is a good start.

Source-Repo: https://github.com/servo/servo
Source-Revision: 89dd9dd8eb2e473dffd5ad2d5d75012b15f75570
2013-10-09 05:40:12 -07:00
Ms2ger
cc1633ff33 servo: Merge #1016 - Don't require passing a root element to Document::new (needed for issue #888) (from Ms2ger:ownerdoc); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 77f8dba48b21e200b4b9c6d35db853581b9804bc
2013-10-08 05:16:01 -07:00
Josh Matthews
d882e37f23 servo: Merge #998 - Make proxy bindings generate trace and finalization hooks (from jdm:tracehook); r=metajack
Needs https://github.com/mozilla-servo/rust-mozjs/pull/38 and https://github.com/mozilla-servo/mozjs/pull/6. Fixes #819. Fixes #962.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5fc5542590ca69f778dce36ee59d07d6b61ab71f
2013-09-30 23:27:47 -07:00
Keegan McAllister
86d8c4f09c servo: Merge #955 - Bindings cleanup (from kmcallister:bindings); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 7ffcc29d54659cea63dd2769db469473343246c4
2013-09-18 19:39:47 -07:00
Josh Matthews
3b86421613 servo: Merge #914 - *Page -> @Page (from jdm:unsafepage); r=jdm,metajack
Haven't figured out what to do about page_from_context yet, but this is a big improvement.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8994dc3a1e2b62fe0fee65f84f46ac3fe17dbb9c
2013-09-12 14:48:59 -07:00
Keegan McAllister
f8dd4f7823 servo: Merge #735 - Upgrade to latest Rust (from kmcallister:rust-upgrade); r=kmcallister,metajack
Was #734.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2359587cbbc77a86d92c9628f19bc883818c563f
2013-08-16 15:46:03 -07:00
Youngsoo Son
9cf7c8f76d servo: Merge #705 - Simplify HTMLCollection predicates (from sonwow:collection); r=jdm
Simplify some APIs that returns HTMLCollection in `dom::Document`.
In order to do this, `dom::htmldocument::createHTMLCollection` is moved to `dom::document::createHTMLCollection`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 73e7b6519b64160c802acd5175c01aacfd0daba6
2013-08-08 23:00:38 -07:00
Junyoung Cho
423babd6ea servo: Merge #658 - Add a getter for document.head and document.title (from june0cho:docBindings); r=jdm
Add a getter for document.head and document.title.

Like in the modified test (document.title="changed title"), setters for elements doesn't seem to be called.

Source-Repo: https://github.com/servo/servo
Source-Revision: ad41c3acfb235a40d0230b33a3b6a8e7c44c7dd4
2013-08-07 22:27:46 -07:00
Josh Matthews
6d1f0380e3 servo: Merge #672 - Fill out various proxy binding traps as part of making setters work. Add (from jdm:proxysetter); r=metajack
... named getter and setter and indexed getter support, as well as proxy object expandos. Fixes #660.

Source-Repo: https://github.com/servo/servo
Source-Revision: e41fdc43f4d173e5ec959283105e1f4ae14a8549
2013-08-05 10:03:33 -07:00
Keegan McAllister
b7e50c541d servo: Merge #666 - Simplify HTMLCollection predicates (from kmcallister:htmldocument); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a4baa7fc6b072ef4be73a3fb46f3cdb81607192b
2013-08-02 10:54:29 -07:00
Youngsoo Son
b5fd1c8b3c servo: Merge #659 - Implement DOM tree accessors that return a HTMLCollection in HTMLDocument (from sonwow:dom); r=jdm
Basic implementation about DOM tree accessors in HTMLDocument.
(image, embeds, plugins, links, forms, scripts, anchors, applets)

Source-Repo: https://github.com/servo/servo
Source-Revision: 5f62c95437ff544bb51dbc98fae12fd0d8d24285
2013-08-02 05:39:32 -07:00
Josh Matthews
e52a394924 servo: Merge #645 - Generate bindings for Window (from jdm:window); r=jdm
This one also looks larger than necessary because GetParentObject needed to be changed to return an Option.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7911ae56954cc0ff03f77ff901233a411a30f1e7
2013-07-30 13:57:26 -07:00
Josh Matthews
33361059de servo: Merge #641 - Generate HTMLDocument bindings (from jdm: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`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c105b5307bb69e8d43a1c6263b09c1b8e52c355
2013-07-30 13:30:24 -07:00