Commit graph

80 commits

Author SHA1 Message Date
Keegan McAllister
307f1074d3 For loops and misc changes 2013-08-15 13:56:29 -07:00
Keegan McAllister
1bdaff0fad Reorganize tree ref / node traits
rustc is no longer happy with

    impl<NR:TreeNodeRef<N>,N:TreeNode<NR>> TreeUtils for NR
2013-08-15 13:55:40 -07:00
Keegan McAllister
be061a9aa0 Library changes 2013-08-15 13:55:40 -07:00
Josh Matthews
ddf4bee6df Generate HTMLIFrameElement bindings. 2013-08-08 09:34:08 -04:00
Junyoung Cho
00c3ffb7a4 Add a getter of 'document.head' according to HTML spec.
Add a getter and a setter of 'document.title' according to HTML spec.
Modify the test file.
2013-08-08 09:42:56 +09:00
Josh Matthews
8e2c39d2dd Generate bindings for HTMLImageElement. 2013-08-06 21:54:37 -04:00
Josh Matthews
65a33f60e5 Generate bindings for HTMLDivElement, and pass abstract type to methods that need access to the opaque wrappers. 2013-08-06 19:03:09 -04:00
Josh Matthews
9a545b13c3 Generate bindings for HTMLHeadElement. 2013-08-05 11:29:12 -04:00
Josh Matthews
fd4efad70c Generate bindings for Node, CharacterData, Text, Element, and HTMLElement. Hook up text nodes to use the new bindings. 2013-08-05 11:29:12 -04:00
Keegan McAllister
a9a5e90787 Move is_root() into AbstractNode 2013-08-01 15:31:57 -07:00
Keegan McAllister
c047a4b436 Replace some Option matching with higher order methods
This shrinks the code and should be easier to read if we are used to the
idioms.

Also change one copy to clone() while we're here.
2013-08-01 15:31:57 -07:00
Josh Matthews
a2bdab7989 Generate bindings for Window. 2013-07-30 16:30:46 -04: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
Tim Kuehn
e9888b299c structural changes to support Iframes 2013-07-29 11:03:17 -07:00
Josh Matthews
09d50147f7 Autogenerate DOM bindings for Document. 2013-07-28 12:04:11 -04:00
bors-servo
25fdcb3dca auto merge of #608 : kmcallister/servo/script-exit, r=metajack 2013-07-22 13:33:20 -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
Jack Moffitt
52e8a9be28 Fix busted iterator. 2013-07-19 18:39:14 -06: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
bors-servo
821192d5a8 auto merge of #577 : jdm/servo/autogen, r=jdm,metajack 2013-07-12 11:27:29 -07:00
Josh Matthews
4f24ef1619 DOM bindings: Autogenerate list of prototypes and binding registration goop. 2013-07-12 14:06:23 -04:00
bors-servo
0c4119b496 auto merge of #573 : jdm/servo/domevent, r=metajack 2013-07-12 08:45:33 -07:00
Josh Matthews
1a4ea09205 WIP iframe handling. 2013-07-11 13:16:15 -07:00
Josh Matthews
65f9aefb78 Generate DOM bindings for UIEvent and MouseEvent. 2013-07-10 16:41:08 -04:00
bors-servo
34a35054e9 auto merge of #563 : metajack/servo/glfw, r=metajack
This code replaces glut with glfw. The motivation here is address the GPU driver bugs on Linux when using multiple `Display *` pointers with shared GL contexts instead of a single common one. GLFW has native access methods which provide access to its `Display *`, which appears to be unique among all the similar toolkits.

Details:
- Adds glfw and glfw-rs to the build
- Removes GLUT code and replaces it with GLFW versions
- Fixes hard coded initial window values
- Fixes clean targets
- Event loop doesn't block on windowing events anymore
2013-07-10 06:57:36 -07:00
Jack Moffitt
870db39836 Update to latest Rust. 2013-07-09 14:37:53 -06:00
Keegan McAllister
cfffd05424 Derive more Eq implementations
Fixes #181.
2013-07-09 13:09:14 -07:00
Tim Kuehn
a6eaffcd93 forward/back navigation with shift+backspace and backspace
script caches last loaded url -- currently no caching policy
naive caching of render layers for near-instant forward/back
handling evicted pipelines is currently broken
2013-07-02 17:26:30 -07:00
Brian Anderson
56e5ba1b82 Update for language changes 2013-06-26 13:44:26 -07:00
Patrick Walton
bf82bc54f3 Separate the DOM and layout into separate crates. 2013-05-28 17:13:40 -07:00
Renamed from src/components/main/dom/node.rs (Browse further)