Philip Munksgaard
fe1a334b11
Remove FIXME
...
Following the (short) in #5930 it was decided that we should remove this
FIXME.
Fixes #5930
2015-05-04 15:38:38 +02:00
Anthony Ramine
06436e9c79
Remove helpers that correspond to DOM methods
2015-05-04 15:18:27 +02:00
ecoal95
ad414824b2
Fix WebGL objects inheritance
2015-05-04 02:06:20 +02:00
Diego Marcos
79b8e7aa34
It implements enough WebGL spec to draw a triangle
2015-05-02 19:21:05 -07:00
Patrick Walton
33087497ac
layout: Fix a couple of issues relating to intrinsic widths of inline
...
blocks.
* Stop double-counting border and padding for inline-block fragments.
(Test case: `inline_block_border_intrinsic_size_a.html`.)
* Take clearance into account when determining intrinsic widths of
blocks containing floats.
Improves the Amazon headers.
2015-05-01 18:07:07 -07:00
bors-servo
a346f95e68
Auto merge of #5918 - pcwalton:block-formatting-context-float-placement, r=mbrubeck
...
Improves Amazon.
r? @mbrubeck
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5918 )
<!-- Reviewable:end -->
2015-05-01 18:01:03 -05:00
Patrick Walton
986f81afa7
layout: Use the border box, not the margin box, for placement of block
...
formatting contexts.
Improves Amazon.
2015-05-01 15:11:46 -07:00
bors-servo
ba8eaac3e4
Auto merge of #5903 - psdh:textencoder5900, r=Ms2ger
...
... #5900
Fixes #5900
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5903 )
<!-- Reviewable:end -->
2015-05-01 16:33:58 -05:00
bors-servo
2f0b805fad
Auto merge of #5916 - servo:prepare-rustup, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5916 )
<!-- Reviewable:end -->
2015-05-01 14:44:19 -05:00
Ms2ger
99d6f83b66
Use a better name in TextEncoder::Encode.
2015-05-01 21:22:35 +02:00
Ms2ger
e282b71596
Simplify the implementation of make_url_or_base_getter.
2015-05-01 21:22:16 +02:00
Ms2ger
a3adf6ab75
Stop using MemWriter in Element::serialize.
2015-05-01 21:21:50 +02:00
Ms2ger
9a97a7e30c
Add a VecRootableType bound to RootedVec's type parameter.
2015-05-01 21:21:26 +02:00
Ms2ger
568b7f3a53
Replace -1 by !0 for unsigned integers.
2015-05-01 21:20:34 +02:00
Ms2ger
bd77acfbb8
Use AsciiExt in ByteString implementations.
2015-05-01 21:20:16 +02:00
Ms2ger
5f6b791e62
Add a Reflectable bound to Trusted's type parameter.
2015-05-01 21:19:46 +02:00
Ms2ger
b59f54ce81
Add a Reflectable bound to Root's type parameter.
2015-05-01 21:19:37 +02:00
Ms2ger
84b1b52682
Replace ByteString::as_slice() by a Deref implementation.
2015-05-01 21:19:11 +02:00
Ms2ger
0a5ffc4bb0
Remove an as_slice() call.
2015-05-01 21:17:14 +02:00
Ms2ger
ad4996b545
Remove a range() call.
2015-05-01 21:16:43 +02:00
Ms2ger
c95fc0c923
Stop using IndexMut on HashMap.
...
This feature was removed in https://github.com/rust-lang/rust/pull/23559 .
2015-05-01 21:16:22 +02:00
bors-servo
5f6a740190
Auto merge of #5913 - glennw:bounding-rect, r=pcwalton
...
* Fix queries involving stacking contexts
* The code was double accumulating stacking context origins.
* Handle queries of inline elements.
* The node addresses being compared were incorrect (CharacterData vs. Span)
* Handle ScriptQuery reflows correctly.
* The layout task was skipping the compute absolute positions traversal, so failed before window.onload.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5913 )
<!-- Reviewable:end -->
2015-05-01 13:15:23 -05:00
bors-servo
03d0303e67
Auto merge of #5906 - Ms2ger:s-t-docs, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5906 )
<!-- Reviewable:end -->
2015-05-01 12:20:02 -05:00
Glenn Watson
a5a5214783
Various fixes to getClientBoundingRect()
...
* Fix queries involving stacking contexts
* The code was double accumulating stacking context origins.
* Handle queries of inline elements.
* The node addresses being compared were incorrect (CharacterData vs. Span)
* Handle ScriptQuery reflows correctly.
* The layout task was skipping the compute absolute positions traversal, so failed before window.onload.
2015-05-01 12:40:37 +10:00
Nicholas Nethercote
092507d23c
Add a profile_traits
crate to reduce compile times.
...
A rebuild after touching components/profile/mem.rs now takes 48 seconds (and
only rebuilds `profile` and `servo`) which is much lower than it used to be.
In comparison, a rebuild after touching components/profile_traits/mem.rs takes
294 seconds and rebuilds many more crates.
This change also removes some unnecessary crate dependencies in `net` and
`net_traits`.
2015-04-30 17:58:47 -07:00
Ms2ger
1303dd6e2e
Require documentation in script_traits.
2015-04-30 20:48:21 +02:00
bors-servo
88ed4e58e1
Auto merge of #5725 - pgonda:dispatch-mousedown-mouseup, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5725 )
<!-- Reviewable:end -->
2015-04-30 12:22:03 -05:00
Prabhjyot Singh Sodhi
1d0976c192
TextEncoder::Constructor should not trim whitespaces or lowercase labels #5900
...
Fixes #5900
2015-04-30 16:51:02 +05:30
bors-servo
15c4372a8b
Auto merge of #5839 - nox:range, r=Manishearth
...
The actual boundary points are behind a Rc<_> value to let nodes be able to store weak references to them in the future.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5839 )
<!-- Reviewable:end -->
2015-04-30 05:59:55 -05:00
Anthony Ramine
184fb7bd86
Implement base machinery of Range
...
The actual boundary points are behind a Rc<_> value to let nodes be able to store
weak references to them in the future.
2015-04-30 12:53:40 +02:00
Anthony Ramine
304b444ec7
Add missing range-related error types
2015-04-30 12:53:37 +02:00
Anthony Ramine
bc8b7952b8
Implement NodeHelpers::index()
2015-04-30 12:53:36 +02:00
Anthony Ramine
d8c5092a6e
Implement NodeHelpers::len()
2015-04-30 12:53:35 +02:00
bors-servo
2c17779440
Auto merge of #5896 - nox:stringifier-proxy, r=jdm
...
The proxy stringifiers called through {}.toString.call() (obj_toString) shouldn't use the stringifier.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5896 )
<!-- Reviewable:end -->
2015-04-30 04:33:32 -05:00
Peter
c069d1753e
added dispatching for mousedown and mouseup events, fixes #5705
2015-04-29 21:32:18 -04:00
bors-servo
738f006afe
Auto merge of #5898 - glennw:corrupt-gz, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5898 )
<!-- Reviewable:end -->
2015-04-29 20:03:38 -05:00
Glenn Watson
786e24bde0
Handle gzip decompression failure (encountered during jquery test suite work) without panic.
2015-04-30 10:10:21 +10:00
bors-servo
19a4a26364
Auto merge of #5895 - psdh:uniformiseMsgTypes, r=jdm
...
Fixes #5882
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5895 )
<!-- Reviewable:end -->
2015-04-29 15:51:39 -05:00
Prabhjyot Singh Sodhi
b980278d90
Uniformise the various Msg types [ #5882 ]
2015-04-30 01:22:16 +05:30
Anthony Ramine
3b82cba011
Implement trivial stringifiers
2015-04-29 19:07:09 +02:00
Anthony Ramine
2a2e8b176d
Properly generate proxy stringifiers
2015-04-29 18:52:38 +02:00
Matt Brubeck
50f982bb0c
Fix text-align left/right in RTL layout
2015-04-29 07:07:58 -07:00
Matt Brubeck
81e8f18662
Support text-align: start
and end
2015-04-29 07:07:58 -07:00
Jinwoo Song
f404853c99
Make NodeTypeId include CharacterData variant
...
NodeTypeId is supposed to reflect the WebIDL inheritance hierarchy.
All of Text/ProcessingInstruction/Comment inherit from CharacterData,
which inherits from Node. There should be a CharacterDataTypeId value
that differentiates between those, instead.
2015-04-29 13:30:21 +09:00
bors-servo
1e150140bd
Auto merge of #5480 - SimonSapin:multicol, r=pcwalton
...
This add some properties to the style system and a new flow type, but the larger issues of dealing with fragmentation in the flow tree is still an open question.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5480 )
<!-- Reviewable:end -->
2015-04-28 19:48:45 -05:00
Simon Sapin
544a02a250
Refactor flow construction to make float
less of a special case.
2015-04-29 02:47:46 +02:00
Simon Sapin
cc4749373a
Add MulticolFlow and use it for multicol elements.
...
It currently "inherits" from BlockFlow and does not override anything.
2015-04-29 02:29:33 +02:00
Simon Sapin
f30cd4f377
Add column-width, column-count, columns and column-gap properties in the style system.
2015-04-29 02:29:32 +02:00
bors-servo
0a4db7ae0f
Auto merge of #5889 - pcwalton:remove-absolute-static-i-offset, r=glennw
...
They haven't been used for hypothetical box calculation in quite some
time.
r? @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5889 )
<!-- Reviewable:end -->
2015-04-28 18:30:38 -05:00
Patrick Walton
132658856f
layout: Remove absolute_static_i_offset
and fixed_static_i_offset
.
...
They haven't been used for hypothetical box calculation in quite some
time.
2015-04-28 15:39:44 -07:00