Martin Robinson
d421b28c0e
servo: Merge #3617 - Position layers using their absolute position (from mrobinson:layer-positioning); r=pcwalton
...
Layers are currently all children of the root layer, so instead of
using coordinates relative to the parent flow we should use coordinates
relative to the page.
Fixes #2061 .
Source-Repo: https://github.com/servo/servo
Source-Revision: eff0de0ce12b20ffc4806d14c95777004003f2ae
2014-10-08 17:27:33 -06:00
Tim Taubert
f15d9faaa2
servo: Merge #3584 - Support [*|attr], attribute selectors in any namespace ( fixes #1558 ) (from ttaubert:issue/1558-attr-ns-selectors); r=Manishearth
...
This implements basic support for attribute selectors with namespace prefixes. I would have added a more sophisticated test covering various selectors but it seems that we don't have an XML parser yet and thus no XHTML support?
r? @SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: f49c730720a51d14dacefe9815faf50216b36b91
2014-10-08 03:12:34 -06:00
Patrick Walton
ea75d56860
servo: Merge #3603 - layout: white_space::pre should not yield ignorable whitespace (from pcwalton:pre-ignorable-whitespace); r=mbrubeck
...
Improves the Google home page.
r? @mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: c628d11e6f8defbdaa4438f990b566272a3b0eff
2014-10-08 01:15:36 -06:00
Cameron Zwarich
e4683d9b2b
servo: Merge #3592 - Remove trailing whitespace (from zwarich:trailing-whitespace); r=Manishearth
...
The Mach test runner doesn't actually make these failures yet, which is
tracked by #3482 .
Source-Repo: https://github.com/servo/servo
Source-Revision: ae946a9b762d66f01f669ff526eff5c0eaaa3404
2014-10-07 04:57:29 -06:00
Manish Goregaokar
e58df69b05
servo: Merge #3573 - Remove unused mutable variable (from Manishearth:warnings); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: ae4c9be536bcf386db5b6ad2603ecf874566f6ef
2014-10-06 11:51:32 -06:00
Manish Goregaokar
052cbff92f
servo: Merge #3518 - Purge Traceable and Untraceable from Servo (from Manishearth:trace-cleanup); r=jdm
...
Now that we use `JSTraceable` (defined in `script`), we can create arbitrary implementations on non-`script` types (eg `Url` or `RequestHeaderCollection`) where in the past we had to rely on `Traceable` and `Untraceable` to achieve cross-crate impls of `Encodable`.
This removes the two completely. They can be reintroduced if required, though the `untraceable!` macro should suffice.
Fixes #3469
Source-Repo: https://github.com/servo/servo
Source-Revision: b34df7c343579f200d2e67e21fc566842a4e4a91
2014-10-06 10:15:33 -06:00
Patrick Walton
b47d6ac21f
servo: Merge #3556 - layout: Implement box-sizing: border-box (from pcwalton:box-sizing); r=SimonSapin
...
Improves GitHub.
Source-Repo: https://github.com/servo/servo
Source-Revision: c7915028b498dc8426cdbb5b35f0ad270613a244
2014-10-01 23:39:26 -06:00
Patrick Walton
9798446c46
servo: Merge #3546 - layout: Implement the correct hypothetical box behavior for absolutely-positioned elements declared with display: inline (from pcwalton:absolute-inline); r=glennw
...
Although the computed `display` property of elements with `position:
absolute` is `block`, `position: absolute; display: inline` can still
behave differently from `position: absolute; display: block`. This is
because the hypothetical box for `position: absolute` can be at the
position it would have been if it had `display: inline`. CSS 2.1 §
10.3.7 describes this case in a parenthetical:
"The static-position containing block is the containing block of a
hypothetical box that would have been the first box of the element if
its specified 'position' value had been 'static' and its specified
'float' had been 'none'. (Note that due to the rules in section 9.7 this
hypothetical calculation might require also assuming a different
computed value for 'display'.)"
To handle this, I had to change both style computation and layout. For
the former, I added an internal property
`-servo-display-for-hypothetical-box`, which stores the `display` value
supplied by the author, before the computed value is calculated. Flow
construction now uses this value.
As for layout, implementing the proper behavior is tricky because the
position of an inline fragment in the inline direction cannot be
determined until height assignment, which is a parallelism hazard
because in parallel layout widths are computed before heights. However,
in this particular case we can avoid the parallelism hazard because the
inline direction of a hypothetical box only affects the layout if an
absolutely-positioned element is unconstrained in the inline direction.
Therefore, we can just lay out such absolutely-positioned elements with
a bogus inline position and fix it up once the true inline position of
the hypothetical box is computed. The name for this fix-up process is
"late computation of inline position" (and the corresponding fix-up for
the block position is called "late computation of block position").
This improves the header on /r/rust.
r? @glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: f7d2fb6ff86afff7a5b674f751af9370a5a6b142
2014-10-01 19:36:25 -06:00
Josh Matthews
2dfdae3733
servo: Merge #3520 - Implement basic form control support (from jdm:formcontrols); r=pcwalton
...
So far the changes to layout seem fairly well-contained; I think this is worth integrating to give us a browser that is easier to dogfood (and allows us to work on things like form submission much easier), especially since the long-term viability of WebComponents-as-forms is not assured.
Source-Repo: https://github.com/servo/servo
Source-Revision: f80096069592b864221abe112eaf2ecb6c444fda
2014-10-01 16:45:29 -06:00
Cameron Zwarich
c71169cdfc
servo: Merge #3540 - Convert TNode / TElement to use self parameters rather than &self (from zwarich:more-jsref); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 09e9abc047e03b81b8a4aa90d13efa184d0a732f
2014-09-30 22:36:28 -06:00
Glenn Watson
35ccd6b338
servo: Merge #3535 - Refactor background image, fix fixed attachment. Improve acid2 (from glennw:fixed-bg); r=pcwalton
...
Source-Repo: https://github.com/servo/servo
Source-Revision: a63155b564b64825d292953983117c0df4b34e91
2014-09-30 17:45:29 -06:00
Keegan McAllister
8578d570cb
servo: Merge #3530 - Use string-cache's Namespace type, backed by Atom (from kmcallister:namespace-atom); r=Ms2ger
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 698b916c097ae0272a31a680cba7fc6dbd03ca3d
2014-09-30 02:42:23 -06:00
Glenn Watson
fbe6aa4d26
servo: Merge #3523 - Add support for <super> and <sup> tags. Fixes equations on wikipedia (from glennw:wiki-equations); r=pcwalton
...
Source-Repo: https://github.com/servo/servo
Source-Revision: b2ff320aecab80b06aeedad440c28b23b2dc3824
2014-09-29 15:36:26 -06:00
Simon Sapin
b3423c8393
servo: Merge #3487 - Upgrade Rust and enable style crate rustdoc (from servo:rustup-20140923); r=Ms2ger
...
The biggest language change is that enum variants now also reserve (for future use) a name in the type namespace, which must not collide with other types. Some things were renamed, and others qualified as `module::name`.
Source-Repo: https://github.com/servo/servo
Source-Revision: 7409685589c550ee7a9f94182f511acddab4c6fd
2014-09-29 10:45:27 -06:00
Cameron Zwarich
4150491f96
servo: Merge #3501 - Remove the 'static lifetime parameters from TElement methods (from zwarich:telement-lifetimes)
...
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c9c8d63727560ab88a8b739f5ac305b8a02410d2
2014-09-27 17:09:28 -06:00
Patrick Walton
f2eb3141b3
servo: Merge #3498 - Stop double-counting stuff in inline-block (from pcwalton:border-box-double-counting)
...
Reviewed-by: glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: b7345796bc696bd0e7bc00384a71a30c676a3456
2014-09-27 13:12:30 -06:00
Glenn Watson
78a36a7eb2
servo: Merge #3500 - Fix some mutable variable warnings (from glennw:warning-fix)
...
Reviewed-by: pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: f7e5d295188a885027ff8cd5a6d7421581050ccf
2014-09-26 23:09:31 -06:00
Patrick Walton
af820be1f4
servo: Merge #3492 - layout: Support any display property in generated content, and allow (from pcwalton:clear-generated-content-table)
...
Reviewed-by: glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: 33e2a7b3625c82e83c7767e81266c2a23f509bed
2014-09-26 22:24:32 -06:00
Glenn Watson
9e168f34e8
servo: Merge #3486 - Improve acid2. Fix line height calculation. Text fragments get correct enclosing element style (from glennw:inline-fixes)
...
Reviewed-by: pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 94b7c486b12a50298f0706fce42b70a6ca90cdcb
2014-09-26 21:57:35 -06:00
Patrick Walton
ef2254d096
servo: Merge #3483 - layout: Block formatting contexts should contain all their floats (from pcwalton:block-formatting-contexts-containing-floats)
...
Reviewed-by: glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: ab17d31bbf8c6884f858381f3d5b7e62c4de87c6
2014-09-26 01:42:27 -06:00
Patrick Walton
8dfaa4b286
servo: Merge #3467 - layout: Enhance the heuristic that guesses the inline size of block formatting contexts (from pcwalton:enhance-block-formatting-context-guess)
...
Reviewed-by: glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: 20f5fdd000408867ac2d3a90ad9a8b55cfb8bc9e
2014-09-25 19:24:30 -06:00
Patrick Walton
c6e166d8b3
servo: Merge #3472 - layout: Unify the block-size computation for blocks and floats (from pcwalton:unify-block-and-float-layout)
...
Reviewed-by: glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: 9fb47b7636ca79c64acbf73a2c55cc6bf5cd4917
2014-09-25 17:48:35 -06:00
Cameron Zwarich
0c0ca18e96
servo: Merge #3478 - Remove use of deprecated get_mut_ref (from zwarich:get-mut-ref)
...
Reviewed-by: metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: d9c13352c1ecfefc3a5f07871421c5d24f02c7e7
2014-09-25 17:24:33 -06:00
Cameron Zwarich
93fe906d1b
servo: Merge #3480 - Fix trailing whitespace tidy errors (from zwarich:trailing-whitespace)
...
Reviewed-by: larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: c2d6d8084c7afc2b865a09cb4847fb1a815ef607
2014-09-25 17:00:34 -06:00
Patrick Walton
0c6129e4c9
servo: Merge #3434 - layout: Float table wrappers directly instead of generating a block (from pcwalton:directly-floated-tables)
...
Reviewed-by: glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: 1fba32af9ff68db73768b4732d003ea7aad09b28
2014-09-25 10:36:33 -06:00
Patrick Walton
e6b2857d7a
servo: Merge #3475 - layout: Consider relatively positioned blocks as possible block (from pcwalton:block-formatting-context-fixes)
...
Reviewed-by: glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: e9a7b44f688dacd46ce4971a2a79e42d6a80a8fe
2014-09-25 00:26:42 -06:00
Patrick Walton
8c9531a007
servo: Merge #3458 - layout: Implement white-space: nowrap (from pcwalton:whitespace-nowrap)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: d9f836bc75c0d6e4e813d9f74819bd8578742598
2014-09-23 20:22:33 -07:00
Glenn Watson
0c66868669
servo: Merge #3459 - Add support for small-caps font-variant (from glennw:small-caps)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 98222cf24cd64c246fc25b9009f3c198bf33dcbf
2014-09-24 09:49:05 +10:00
Glenn Watson
30b905aaf6
servo: Merge #3460 - Fix inline context padding on inline-block (from glennw:inline-block-padding)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 4546d5d23caa3f459b75e9a0bf9e91a3376dc197
2014-09-23 07:47:29 -07:00
Manish Goregaokar
431ec41351
servo: Merge #3435 - Reorganize macros crate; r=jdm (from Manishearth:macro_reorg)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 27f3bcd7183d836bd454e687706b4e76d6d3b312
2014-09-23 17:53:37 +05:00
Patrick Walton
8e7fe02560
servo: Merge #3457 - layout: Adjust the position of block formatting contexts based on float placement (from pcwalton:block-formatting-contexts)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 6177a3bdcca974d5070b0ecab0973d42963946ec
2014-09-22 20:06:18 -07:00
Patrick Walton
a7ddc126e6
servo: Merge #3454 - layout: Translate floats when clearing non-floated blocks (from pcwalton:float-clear-bug)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: a6ff0479d9b8ea6a35570765748a6fc86d0dcb47
2014-09-22 17:36:36 -07:00
Glenn Watson
1ab79660a7
servo: Merge #3449 - Add support for min-width and max-width to images (from glennw:img-min-max)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 2c3d3b007554990359a06b90ca5380bf466eb308
2014-09-22 14:53:19 +10:00
Simon Sapin
e245f210fb
servo: Merge #3438 - Upgrade Rust (from servo:rustup)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 045328c8e94f5bdfcd67105c5dfa9209f4cd501c
2014-09-20 15:35:08 -07:00
Tetsuharu OHZEKI
582d2f0c2b
servo: Merge #3418 - Replace manual Encodable implementation for LayoutDataRef with Untraceable (from saneyuki:untrace)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: de67710934ac89de0cf21911dc57dcda7cb0fae1
2014-09-20 16:40:06 +09:00
Patrick Walton
8d26ada345
servo: Merge #3430 - layout: Make percentage heights propagate through inline flows (from pcwalton:inline-block-percentage-height)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: c51b8a07acbbfa8539b9234c7717a9af53a9e2b8
2014-09-19 23:05:55 -07:00
Glenn Watson
65afbcd2f4
servo: Merge #3420 - Adds support for table layout trace and updates viewer for tables (from glennw:table-debug)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: ccda8f204acb014387e92f1ecd47355e9e45ed89
2014-09-19 19:50:47 -07:00
Simon Sapin
a9567001ca
servo: Merge #3424 - Add font-size absolute size keywords. Fix #3417 (from SimonSapin:font-size-absolute)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 08e004d10650f36af60818fd3c57ca461a97a678
2014-09-19 15:17:55 -07:00
Patrick Walton
04c97f274a
servo: Merge #3399 - Handle generated content with display: block correctly during flow (from pcwalton:fix-generated-content-iteration)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: b8f34bbc5170f78e4939b1d647f8d8498e3c2fb6
2014-09-19 12:27:32 -07:00
Patrick Walton
3367860bc2
servo: Merge #3401 - layout: Remove layout/extra.rs (from pcwalton:refactor-layout)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: f139eb51763091165136c88a7b9931fc09ebe2cc
2014-09-19 10:51:02 -04:00
Glenn Watson
4426bc91ca
servo: Merge #3419 - Fix img with display: block. Fixes text/image overflow on wikipedia (from glennw:img-block)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 2652d223f50d53ee5a8a07ff4a3d6a25b510d1f1
2014-09-19 19:20:27 +10:00
Glenn Watson
63d6608859
servo: Merge #3421 - Fix padding on tables. This fixes the TOC on wikipedia pages (from glennw:table-padding)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: a3b20d81799f13f602b8895e423c41c9cabfda5c
2014-09-19 17:50:50 +10:00
Matt Brubeck
118121ccbe
servo: Merge #3414 - Fix line splitting in white-space: pre flows. r=gw (from mbrubeck:pre-line-break)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: b11a110e85ca5670a1d492b6deb616fe8a90cf5b
2014-09-18 19:30:37 -07:00
Patrick Walton
30838e65ac
servo: Try to unbreak the build by removing unused import
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 5e5f77a354500103247359e63f1f4147919ade62
2014-09-18 10:56:58 -07:00
Clark Gaebel
9e4f97cf2d
servo: Merge #3397 - Fixes #3386 (from cgaebel:issue-3386)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 667f887f49902c4750b80b8be15ba1d4dc3dccdf
2014-09-18 09:29:21 -07:00
Clark Gaebel
603e2d1c80
servo: Merge #3379 - Added more complex profiling metadata (from cgaebel:bucketed-timing)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 1b251db7323dce3b7838709c7d2dfb685d8b24a9
2014-09-18 09:12:34 -07:00
Glenn Watson
153b536d4d
servo: Merge #3404 - Include margin in inline block intrinsic width. Fixes [edit] links on wikipedia. Also improves google homepage (from glennw:inline-block-fix)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 22bca83509e81aabb8e1cd538cc91a642bd39bfa
2014-09-18 07:51:11 -07:00
Josh Matthews
a3fc1dd4dc
servo: Revert "script: Use atom comparison in more places, especially for attributes." for persistent test failures.
...
This reverts commit 874db261046d6155b1942efa106d2e0014295d6d.
Source-Repo: https://github.com/servo/servo
Source-Revision: 9607b468bc50496c0de3706d22efaa6fdc68b089
2014-09-18 09:20:19 -04:00
Matt Brubeck
5c59759b72
servo: Merge #3395 - Fix unit test failures. r=jdm (from mbrubeck:doctest)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 8aeb90e8c34a6872cf418643fef40e67382737e2
2014-09-17 17:05:29 -07:00
Patrick Walton
3834566a2b
servo: Merge #3316 - script: Use atom comparison in more places, especially for attributes (from pcwalton:use-atoms)
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 787a68336524fb9585922b9ed319a8b194fb8ee1
2014-09-17 13:19:00 -07:00