Commit graph

4270 commits

Author SHA1 Message Date
bors-servo
596091e32c Auto merge of #5619 - jdm:bindglob, r=Manishearth
r? @Ms2ger
2015-04-10 04:41:46 -05:00
bors-servo
c9a413cb6e Auto merge of #5622 - pgonda:NodeChildrenIterator-to-NodeSiblingIterator, r=jdm 2015-04-10 04:10:02 -05:00
bors-servo
ebf5a70b51 Auto merge of #5630 - Ms2ger:substringData, r=Manishearth 2015-04-10 03:38:08 -05:00
bors-servo
875f07ff25 Auto merge of #5608 - pgonda:cmdline-disable-style-sharing, r=Ms2ger
Let me know if I should fix anything, or how I could implement a test if needed.  I looked at some testing in servo/ports/command_line.rs but it did not seem to apply.

Thanks!
2015-04-10 03:06:11 -05:00
Ms2ger
839830d1d8 Fix typo in the substringData implementation. 2015-04-10 09:21:55 +02:00
Aneesh Agrawal
f3aee90b06 Add Rust code for RangeErrors.
Implementation is alongside that of TypeErrors.
Note: the jsapi codes are reused for our own purposes, namely
distinguishing error_numbers in the get_error_message callback. See
comments in components/script/dom/bindings/error.rs for details.
2015-04-10 01:49:14 -04:00
bors-servo
db4609d722 Auto merge of #5629 - glennw:glyph-count, r=pcwalton 2015-04-09 21:01:06 -05:00
Peter
881112d34e Adding cmdling argument for disabling style share cache, fix #5581 2015-04-09 21:42:41 -04:00
bors-servo
80851f7055 Auto merge of #5572 - laumann:remove-unnecessary-buffer-sends, r=glennw
Some debugging reveals that the send_back_unused_buffers() quite often sends empty vectors back to the paint task. This still incurs a communication overhead though. Instead check that the there actually are buffers to send back.
2015-04-09 20:28:31 -05:00
bors-servo
c1b7c0c74a Auto merge of #5627 - nox:cleanup-processinginstruction, r=jdm 2015-04-09 19:55:36 -05:00
Glenn Watson
3815cb4a81 Remove unneeded assert (code below handles it) and a warning. Fixes #5230. 2015-04-10 09:55:59 +10:00
Anthony Ramine
2411d607d4 Cleanup ProcessingInstruction 2015-04-10 00:32:01 +02:00
bors-servo
d7b6961104 Auto merge of #5623 - pcwalton:nested-inline-vertical-align, r=glennw
This allows things like `<sup><span>Foo</span></sup>` to work and
improves Wikipedia.

r? @glennw
2015-04-09 17:20:23 -05:00
Patrick Walton
18074bf908 layout: Lay out nested inline elements with different vertical-align
values properly in simple cases.

This allows things like `<sup><span>Foo</span></sup>` to work and
improves Wikipedia.
2015-04-09 14:55:05 -07:00
Patrick Walton
00a2685cbe layout: During inline layout, make place_between_floats use the same
line height computation logic as final block size assignment.

Improves Wikipedia.
2015-04-09 14:23:08 -07:00
Peter
e7c11f7062 Updated fix #5616, also renamed RevsereChildrenIterator to ReverseSiblingIterator 2015-04-09 16:27:25 -04:00
Peter
1511d7a2ad Resvoled merge conflict 2015-04-09 16:07:10 -04:00
Corey Farwell
82335a1904 Spec links for script::dom::element & script::dom::event 2015-04-09 10:16:10 -07:00
Josh Matthews
81ba72d99c Remove glob import from generated bindings. Fixes #1788. 2015-04-09 12:56:29 -04:00
bors-servo
51dd6984f7 Auto merge of #5611 - nox:cleanup-characterdata, r=Ms2ger 2015-04-09 10:10:20 -05:00
Anthony Ramine
702cea6fc3 Fix CharacterData::SubstringData()
It was not following the spec and it could panic.
2015-04-09 16:54:56 +02:00
Anthony Ramine
8f73b452fb Cleanup access to CharacterData nodes 2015-04-09 16:54:55 +02:00
Anthony Ramine
45b490c977 Generate from_layout_js() conversion methods 2015-04-09 16:54:53 +02:00
Anthony Ramine
c8f41b473c Remove CharacterData::set_data() 2015-04-09 16:54:52 +02:00
Anthony Ramine
14cd682210 Fix CharacterData annotations 2015-04-09 16:54:51 +02:00
Anthony Ramine
6eb6e386c1 Add links to CharacterData's spec 2015-04-09 16:54:49 +02:00
Peter
0eace5bed8 Renaming NodeChildrenIterator to NodeSiblingIterator, fix #5616 2015-04-09 10:41:02 -04:00
bors-servo
325899bfad Auto merge of #5613 - mmatyas:canvas_miterlimit, r=jdm
This exposes some other canvas tests which were marked as PASS before. Two strokeRect related tests are fixed by #5612, and lineCap/lineJoin will have an implementation soon.
2015-04-09 09:37:44 -05:00
bors-servo
bbe1403b27 Auto merge of #5609 - nox:nondocumenttypechildnode, r=jdm 2015-04-09 09:06:57 -05:00
Anthony Ramine
3d68a46fee Implement NonDocumentTypeChildNode::*ElementSibling() 2015-04-09 15:43:05 +02:00
Mátyás Mustoha
93fa9e607a Canvas: added miterLimit support. 2015-04-09 13:00:05 +02:00
Mátyás Mustoha
b9244ec1c2 Canvas: moved Rect validation to a common function. 2015-04-09 11:50:31 +02:00
bors-servo
1c09557398 Auto merge of #5606 - Ms2ger:errors, r=jdm 2015-04-08 21:07:18 -05:00
bors-servo
acadb2b0c5 Auto merge of #5604 - Ms2ger:int, r=mbrubeck 2015-04-08 20:33:17 -05:00
bors-servo
254f2a3b5f Auto merge of #5599 - servo:textdecoder, r=jdm 2015-04-08 20:00:40 -05:00
bors-servo
fe5047e55a Auto merge of #5595 - mmatyas:net_intfix, r=Ms2ger
Also replaced `for` ranges with `a..b` notation.
2015-04-08 19:28:28 -05:00
bors-servo
9b7bf415d7 Auto merge of #5590 - nox:document-createattributens, r=Ms2ger 2015-04-08 18:55:19 -05:00
bors-servo
1c884dc76b Auto merge of #5583 - pcwalton:float-ceiling-top-margin-redux, r=mbrubeck
As the float ceiling is relative to the border box, not the margin box,
of the parent flow, top margin must not be included.

This exposed a pre-existing bug whereby margins are discarded if a block
contains only floats and no content, affecting the tests
`float_intrinsic_height.html` and `margins_inside_floats_a.html`. As a
workaround, some invisible content has been added to the bodies of both
tests.

r? @mbrubeck
2015-04-08 18:04:14 -05:00
bors-servo
d3478954fd Auto merge of #5493 - pcwalton:jumpiness, r=mbrubeck
This fixes a lot of "jumpiness" and removes the `new_line_pos` stuff.

Closes #2260.

r? @mbrubeck
cc @metajack
2015-04-08 17:13:36 -05:00
Patrick Walton
6d61468160 layout: Simplify and improve the correctness of whitespace stripping in
text layout, and unify the inline layout paths for pre- and
normally-formatted text.

This fixes a lot of "jumpiness" and removes the `new_line_pos` stuff.

Closes #2260.
2015-04-08 14:29:23 -07:00
bors-servo
656617a91c Auto merge of #5578 - nox:collect_text_contents-unsound, r=Ms2ger 2015-04-08 16:16:53 -05:00
Ms2ger
f8dec0fe58 Adjust the assertions in throw_dom_exception. 2015-04-08 20:44:49 +02:00
bors-servo
0f0dd02daa Auto merge of #5575 - nox:namednodemap-remove, r=Ms2ger 2015-04-08 13:22:29 -05:00
Ms2ger
a8c7864c68 Stop using int in font_list. 2015-04-08 19:00:58 +02:00
Ms2ger
6ae74b6673 Pass the buffer to create_face_from_buffer.
It's better to hold on to the abstraction as long as possible.
2015-04-08 19:00:34 +02:00
bors-servo
ee7d762213 Auto merge of #5563 - mmatyas:canvas_globalalpha, r=jdm
A patch somewhat similar to #5562
2015-04-08 11:58:04 -05:00
bors-servo
a745dda863 Auto merge of #5589 - mbrubeck:dirty, r=pcwalton
This fixes a bug where styles are not recalculated immediately when an element's hover or focus state changes.  I'm not sure how to write an automated test for this.  r? @glennw or @pcwalton
2015-04-08 10:36:33 -05:00
Keith Yeung
e2929403ef Implement TextDecoder#decode. 2015-04-08 16:55:50 +02:00
Ms2ger
c0d4e27d79 Update js. 2015-04-08 16:53:14 +02:00
Keith Yeung
4e5ab24654 Implement TextDecoder (fixes #4769). 2015-04-08 16:52:59 +02:00