saneyuki_s
2e3cd1945c
Generate bindings for HTMLHRElement.
2013-08-07 22:52:39 +09:00
saneyuki_s
ac4938b7dd
Generate bindings for HTMLScriptElement.
2013-08-07 22:22:45 +09:00
saneyuki_s
17542ee14c
Generate bindings for HTMLParagraphElement.
2013-08-07 21:23:42 +09:00
saneyuki_s
b5adb37bd2
Generate bindings for HTMLSpanElement
2013-08-07 20:43:03 +09:00
bors-servo
b017785aad
auto merge of #678 : metajack/servo/style-attributes, r=jdm
...
If a style attribute is given for a node, it is parsed and attached to the
Element. When selector matching runs on the Element, the style attribute's
stylesheet is passed in.
Fixes #86 .
2013-08-06 19:21:32 -07:00
Jack Moffitt
4d71918366
Implement support for style attributes.
...
If a style attribute is given for a node, it is parsed and attached to the
Element. When selector matching runs on the Element, the style attribute's
stylesheet is passed in.
Fixes #86 .
2013-08-06 20:18:03 -06:00
bors-servo
ff9e72a013
auto merge of #679 : jdm/servo/morenodes, r=pcwalton
...
Nothing too exciting here.
2013-08-06 18:57:35 -07:00
Josh Matthews
8e2c39d2dd
Generate bindings for HTMLImageElement.
2013-08-06 21:54:37 -04:00
bors-servo
956646a73d
auto merge of #674 : jdm/servo/nodegen, r=kmcallister
...
The first commit sets up a bunch of the infrastructure required and gets Text nodes onto the generated bindings. The remaining commits generate bindings for and convert selected element types to use them. The last one (HTMLAnchorElement) should be representative of the kind of work required for remaining elements, I've worked out and minimized the repetitive goop that's required.
2013-08-06 16:03:40 -07: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
08ed6d318e
Add missing license header.
2013-08-06 19:00:29 -04:00
Josh Matthews
186bad9924
Remove broken forward declaration.
2013-08-06 17:08:56 -04:00
bors-servo
1337583878
auto merge of #676 : metajack/servo/acid1-all-boxes, r=eric93
...
This makes acid1 have all 6 boxes show up, and almost correctly positioned.
r? @eric93
2013-08-05 16:54:36 -07:00
Jack Moffitt
3837b9538a
Fix the handling of flow_contexts in floats.
...
The num_floats was hard-coded to 1 and didn't take into account the
children. Also the float context was not being threaded through the children
properly.
2013-08-05 17:24:34 -06:00
Jack Moffitt
9fcf8b4402
Place float children of floats correctly in the flow tree.
2013-08-05 17:23:32 -06:00
bors-servo
63e7866ce3
auto merge of #673 : sanxiyn/servo/clear, r=metajack
2013-08-05 12:30:35 -07:00
Josh Matthews
7aa0027384
Generate bindings for HTMLAnchorElement.
2013-08-05 13:18:58 -04:00
bors-servo
e41fdc43f4
auto merge of #672 : jdm/servo/proxysetter, r=metajack
...
... named getter and setter and indexed getter support, as well as proxy object expandos. Fixes #660 .
2013-08-05 10:03:33 -07:00
Josh Matthews
e2468160b5
Generate HTMLHtmlElement bindings.
2013-08-05 11:29:12 -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
Seo Sanghyeon
23874eba76
Update submodules
2013-08-05 22:49:09 +09:00
Seo Sanghyeon
a62fae9e62
Implement clear
2013-08-05 19:51:59 +09:00
Josh Matthews
c9bc2046f6
Fill out various proxy binding traps as part of making setters work. Add named getter and setter and indexed getter support, as well as proxy object expandos. Fixes #660 .
2013-08-03 13:48:09 -04:00
bors-servo
a4baa7fc6b
auto merge of #666 : kmcallister/servo/htmldocument, r=jdm
2013-08-02 10:54:29 -07:00
Keegan McAllister
fad7df8e7a
Simplify HTMLCollection predicates
2013-08-02 10:38:48 -07:00
bors-servo
2239436136
auto merge of #663 : sanxiyn/servo/from-length, r=metajack
2013-08-02 10:15:28 -07:00
bors-servo
5f62c95437
auto merge of #659 : sonwow/servo/dom, r=jdm
...
Basic implementation about DOM tree accessors in HTMLDocument.
(image, embeds, plugins, links, forms, scripts, anchors, applets)
2013-08-02 05:39:32 -07:00
Seo Sanghyeon
018e220495
Factor out CSS length to Au conversion
2013-08-02 20:51:18 +09:00
Youngsoo Son
7b20da05f6
Fix some implementations for DOM tree accessors
2013-08-02 18:53:38 +09:00
bors-servo
1d04d5f1bc
auto merge of #646 : kmcallister/servo/incremental-layout, r=metajack
...
This is a first attempt at incremental layout. When recomputing styles, we compare old and new CSS properties to determine which layout steps can be skipped.
Since I'm new to Servo I'm not sure that my code matches the idioms of the project. Please don't hold back with review comments :)
2013-08-01 15:42:26 -07:00
Keegan McAllister
b266b5a949
Fix color-change-text.js
...
After a2bdab7
we need window.document instead of document.
2013-08-01 15:31:58 -07:00
Keegan McAllister
ea5fb8c4a3
First attempt at incremental layout
...
For now we only prune the bubble_widths traversal, because of inability to
reuse FloatContexts. Other limitations are likewise marked with FIXME
comments.
2013-08-01 15:31:58 -07:00
Keegan McAllister
f582a76b4b
Add traverse_{pre,post}order_prune
2013-08-01 15:31:57 -07:00
Keegan McAllister
5e90722100
Bump rust-css version
2013-08-01 15:31:57 -07:00
Keegan McAllister
a9a5e90787
Move is_root() into AbstractNode
2013-08-01 15:31:57 -07:00
Keegan McAllister
ae79f5351d
Derive Clone for FlowContext
2013-08-01 15:31:57 -07:00
Keegan McAllister
aae230c73f
Clean up calls to layout_root.dump()
...
We had two calls, one of which was dead code.
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
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
Youngsoo Son
8032b17e36
This implements the DOM tree accessors that return a HTMLCollection
2013-08-01 11:56:17 +09: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