Commit graph

3647 commits

Author SHA1 Message Date
S Pradeep Kumar
75f1142107 Implement mini-traversal for absolute flow assign-height.
This only traverses absolute flows, nothing else.

+ Also, a separate mini-traversal for store overflow.
+ Store descendants with position 'absolute' and 'fixed' in BaseFlow.
+ Bubble up links to absolute and fixed descendants during Flow Construction.
+ Set Rawlink to the CB in absolute descendants.
+ store_overflow() now uses absolute descendants' overflows too.
+ Add reftests for 'absolute' and 'fixed' static y position.
+ Add reftests for overflow (they all fail now).
+ Put absolute flow display items under their CB's ClipDisplayItem.
+ Paint borders in Box_ before the actual box stuff (minor fix in lieu of paint-order).
2014-03-03 16:12:45 +09:00
S Pradeep Kumar
c4d177a354 Implement position: absolute for non-replaced elements.
+ Re-implement fixed positioning using the absolute positioning code.
+ Add reftests for absolute positioning and fixed positioning.
+ Refactor assign_widths in BlockFlow to isolate the calculation of
widths and margins.
+ Pass down details of the Containing Block for absolute and fixed flows
during layout. Use it to calculate the static position of absolute flows.
+ Defer calculation of absolute flow dimensions till we build the
display list.
2014-03-03 11:27:49 +09:00
bors-servo
478c9bfc57 auto merge of #1789 : lpy/servo/issue1761, r=jdm
see #1761
2014-03-01 09:37:34 -05:00
bors-servo
5725d9afdd auto merge of #1775 : sawrubh/servo/issue1741, r=jdm 2014-03-01 09:13:37 -05:00
Saurabh Anand
a790a566df DOMParser should pass the correct contentType (fixes #1741) 2014-03-01 19:35:52 +05:30
lpy
77938bf6f6 Implement document_from_node and window_from_node helpers.(fixes #1761) 2014-03-01 21:57:37 +08:00
bors-servo
817c57b5b4 auto merge of #1780 : kmcallister/servo/linux-fontconfig, r=kmcallister,metajack
After applying this patch, on Linux you will need to

    ../configure
    make clean-rust-azure clean-fontconfig clean-rust-fontconfig

Fixes #1752.

Expect Fontconfig warnings and possibly worse breakage, but for me this makes it possible to use parallel layout at all.
2014-02-28 19:40:38 -05:00
Keegan McAllister
44a3f6c580 Fix link order for azure-test 2014-02-28 16:12:12 -08:00
Keegan McAllister
5a6675a296 Work around missing expat.pc on some RedHat-based systems 2014-02-28 13:10:02 -08:00
Keegan McAllister
37bcc2ffcd Install gperf on Linux builders 2014-02-28 10:51:00 -08:00
bors-servo
ea29e3a001 auto merge of #1755 : jdm/servo/demut, r=jdm,metajack
Requires https://github.com/mozilla-servo/rust-mozjs/pull/49.
2014-02-28 13:46:38 -05:00
Josh Matthews
fa542e5de7 De-@mut the script crate. 2014-02-28 13:42:03 -05:00
bors-servo
021d32368d auto merge of #1781 : hgentry/servo/mozilla-servo, r=metajack
Simple change. I hope I'm using github correctly; I'm not too familiar with the PR system. Fixes #1777.
2014-02-28 11:37:40 -05:00
bors-servo
def5483579 auto merge of #1783 : saneyuki/servo/resize, r=jdm
#1715
2014-02-28 11:07:43 -05:00
Tetsuharu OHZEKI
b3536d1d97 Implement "resize" DOM Event.
* We cannot automate this feature.
* So this testcase is a manual test.
2014-03-01 01:02:09 +09:00
bors-servo
83ff59e5f1 auto merge of #1773 : sawrubh/servo/issue1749, r=Ms2ger 2014-02-28 03:10:44 -05:00
Saurabh Anand
5c5cb3e9a7 Move Error, Fallible, ErrorResult out of utils.rs (fixes #1749) 2014-02-28 13:32:00 +05:30
bors-servo
82b74a373a auto merge of #1776 : lpy/servo/issue1762, r=jdm
see #1762
2014-02-28 02:04:49 -05:00
lpy
8fc5ba5dc6 Add url getter to Page and fix users of Page url with it.(fixes #1762) 2014-02-28 14:13:08 +08:00
Keegan McAllister
f01461475e Install expat-devel on Linux builders 2014-02-27 18:23:40 -08:00
hgentry
39e571ae4e Renamed HTMLIframeElementTypeId to HTMLIFrameElementTypeId 2014-02-27 15:35:27 -05:00
Keegan McAllister
ff189fca9b Build Fontconfig 2.11 in-tree on Linux
After applying this patch, on Linux you will need to

    ../configure
    make clean-rust-azure clean-fontconfig clean-rust-fontconfig

Fixes #1752.
2014-02-27 12:05:17 -08:00
bors-servo
580c23f35b auto merge of #1770 : pcwalton/servo/rewrite-float-context, r=kmcallister
This rewrites the float context to avoid dynamic failures resulting from
`.clone()` misuse. It also renames the float context to the simpler
`Floats`. The new version is modeled on WebKit's `FloatingObjects`.

r? @kmcallister
2014-02-27 15:01:49 -05:00
bors-servo
b7fb97cf5a auto merge of #1772 : pcwalton/servo/borrow-flags-race, r=jdm
r? @jdm
2014-02-27 14:31:53 -05:00
Patrick Walton
3c288a5b80 layout: Stop racing on the JSManaged borrow flags 2014-02-27 11:23:06 -08:00
bors-servo
ab72c473cd auto merge of #1774 : Ms2ger/servo/element-noops, r=jdm 2014-02-27 11:14:27 -05:00
Ms2ger
59416c9431 Remove no-op implementations from Element and add some spec links. 2014-02-27 12:33:32 +01:00
bors-servo
1a171129dc auto merge of #1771 : lpy/servo/issue1742, r=Ms2ger
see #1742
2014-02-27 05:55:47 -05:00
lpy
f9f82ff4e6 Add check for non-Text children for document.title.(fixes #1742) 2014-02-27 14:40:35 +08:00
Patrick Walton
014cf702e4 layout: Rewrite the float context.
This rewrites the float context to avoid dynamic failures resulting from
`.clone()` misuse. It also renames the float context to the simpler
`Floats`. The new version is modeled on WebKit's `FloatingObjects`.
2014-02-26 20:37:20 -08:00
bors-servo
94a12469f0 auto merge of #1767 : kmcallister/servo/misc, r=metajack 2014-02-26 22:37:38 -05:00
Keegan McAllister
2f2df09303 Remove remnants of old reftest system
Back in 2012, Brian wrote a reftest system using Firefox via Selenium to
generate comparison images.  This seems like a pretty cool idea, but we
didn't maintain it and important pieces are now missing.

Let's remove it from the working tree to avoid confusion with the current
reftest system, and I'll open a ticket about revisiting this idea.

One pair of old reftest files seems usable as a new reftest and that move is
included in this commit.
2014-02-26 18:06:20 -08:00
Keegan McAllister
c277d25506 Don't crash on bad command-line arguments
As amusing as it is to have servo --help die with SIGILL, it's not the best
user experience :)
2014-02-26 18:01:04 -08:00
bors-servo
421ba1a856 auto merge of #1736 : sankha93/servo/issue1733, r=jdm 2014-02-26 17:52:36 -05:00
Sankha Narayan Guria
1e9fec9172 Merge master into this branch 2014-02-27 03:31:05 +05:30
bors-servo
d7b8d103a9 auto merge of #1760 : Ms2ger/servo/idmap-improvements, r=jdm 2014-02-26 15:49:40 -05:00
Ms2ger
25ee5270d1 Only register the new ID from after_set_attr, and remove update_idmap. 2014-02-26 14:50:57 +01:00
Ms2ger
86899b6aaf Call unregister_named_element rather update_idmap from before_remove_attr. 2014-02-26 14:50:57 +01:00
Ms2ger
432e9cb3a7 Call after_remove_attr before removing the attribute, and rename it before_remove_attr. 2014-02-26 14:50:57 +01:00
Ms2ger
fdd17b4139 Pass a non-Option DOMString to after_remove_attr. 2014-02-26 14:50:57 +01:00
Ms2ger
58b317837b Cleanup Element::set_attribute. 2014-02-26 14:50:57 +01:00
Ms2ger
33792db657 Move ID management on binding to and unbinding from tree into Element. 2014-02-26 14:50:57 +01:00
bors-servo
7ff35c0abe auto merge of #1759 : lpy/servo/issue1743, r=Ms2ger
see #1743
2014-02-26 08:01:42 -05:00
lpy
2d5051e9aa Add test 2014-02-26 20:47:08 +08:00
bors-servo
61e499c678 auto merge of #1758 : lpy/servo/issue1748, r=Ms2ger
see #1748
2014-02-26 06:46:45 -05:00
lpy
f706123208 Move Traceable, trace_reflector from utils.rs to trace.rs.(fixes #1748) 2014-02-26 19:33:21 +08:00
lpy
b73eb563b0 Add empty text check for first child of pre in innerHTML.(fixes #1743) 2014-02-26 14:30:13 +08:00
bors-servo
98170e67c0 auto merge of #1753 : kmcallister/servo/readme-link, r=SimonSapin 2014-02-25 16:01:38 -05:00
Keegan McAllister
a7b4c0723c Fix link in README 2014-02-25 11:52:20 -08:00
bors-servo
e006c111f5 auto merge of #1751 : Ms2ger/servo/image-loading, r=jdm 2014-02-25 13:49:34 -05:00