Commit graph

1358 commits

Author SHA1 Message Date
Mátyás Mustoha
5c560397eb Canvas: added support for the globalAlpha attribute. 2015-04-08 11:49:22 +02:00
bors-servo
267badae69 Auto merge of #5587 - pcwalton:list-style-image-sizing-redux, r=glennw
Improves Wikipedia.

r? @glennw
2015-04-08 04:48:30 -05:00
bors-servo
f4da0f0e94 Auto merge of #5584 - pcwalton:fix-a-float-redux, r=glennw
As far as I can tell, this is a cut-and-paste of old buggy code from
block flows. Delegating to the correct block flow code fixes the sidebar
float placement on Guardians of the Galaxy.

r? @glennw
2015-04-08 03:57:36 -05:00
Anthony Ramine
2353bc4798 Implement Document::CreateAttributeNS() 2015-04-08 10:22:32 +02:00
Anthony Ramine
7b4f6126c8 Add script::dom::utils::validate_and_extract()
Accidentally fixes bugs about Document::createElementNS() where the
implementation of "validate and extract" used to check whether the local name
extracted from the qualified name was "xmlns" instead of the qualified name
itself.
2015-04-08 10:22:30 +02:00
bors-servo
f57b487e4d Auto merge of #5562 - mmatyas:canvas_linewidth, r=jdm
Rebase of #5488
2015-04-08 00:56:37 -05:00
bors-servo
017d105361 Auto merge of #5574 - servo:unit-tests, r=jack
On my laptop, running `./mach test-unit` goes from about 11 minutes to 22 seconds, when run after `./mach build`.

Fix #5291.
2015-04-07 21:16:49 -05:00
bors-servo
58637a1174 Auto merge of #5433 - dmarcos:issue5290, r=jdm 2015-04-07 18:38:34 -05:00
Simon Sapin
84e5f1e85b Use the correct license header. 2015-04-08 01:07:58 +02:00
Simon Sapin
3b1cfe8458 Add license headers in tests/unit 2015-04-08 01:07:55 +02:00
Simon Sapin
dc431c9bdb Move script crate unit tests into the unit_tests crate. 2015-04-08 01:07:53 +02:00
Simon Sapin
e5466a34c5 Move style crate unit tests into the unit_tests crate. 2015-04-08 01:07:52 +02:00
Simon Sapin
e27c967f81 Move net::resource_task unit tests into the unit_tests crate. 2015-04-08 01:07:51 +02:00
Simon Sapin
d88770e09f Move net::{data_loader,image_cache_task} unit tests into the unit_tests crate. 2015-04-08 01:07:50 +02:00
Patrick Walton
7a08a6c1ab layout: Position and size list images properly in the block direction.
Improves Wikipedia.
2015-04-07 15:42:52 -07:00
Patrick Walton
df9c0c7a26 layout: Remove the bogus
`assign_block_size_for_inorder_child_if_necessary` logic from table
wrapper flows.

As far as I can tell, this is a cut-and-paste of old buggy code from
block flows. Delegating to the correct block flow code fixes the sidebar
float placement on Guardians of the Galaxy.
2015-04-07 15:13:17 -07:00
Patrick Walton
c86bc2eb8b layout: Don't take collapsible top margin into account when determining
the float ceiling.

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.
2015-04-07 15:10:15 -07:00
Simon Sapin
691222696e Move net::cookie unit tests into the unit_tests crate. 2015-04-07 16:37:12 -04:00
Simon Sapin
e0b98a35c4 Move gfx unit tests to the unit_tests crate. 2015-04-07 16:37:12 -04:00
Simon Sapin
6d5406efc1 Move util crate unit tests into a new unit_tests crate 2015-04-07 16:37:11 -04:00
Anthony Ramine
eea80034e6 Implement NamedNodeMap::removeNamedItem*() 2015-04-07 22:34:56 +02:00
Anthony Ramine
33f2cd29fd Implement ParentNode attributes 2015-04-07 22:27:52 +02:00
Diego Marcos
88954e3e18 Implements drawImage for html image as ImageSource 2015-04-07 11:02:50 -07:00
bors-servo
c7e210f24c Auto merge of #5005 - jdm:mime-sniffing, r=jdm
This rebases and integrates #4209, removing the sniffer task (turns out it wasn't a great idea), and adds a `--sniff-mime-types` command line flag to enable sniffing for file:// and http:// resources. Tested against a random picture file on my harddrive. The actual MIME sniffing implementation can be extracted into a separate library separately.
2015-04-07 12:48:06 -05:00
Josh Matthews
23ae940abf Enable MIME sniffing for HTTP loads. 2015-04-07 13:25:15 -04:00
bors-servo
e521860a0e Auto merge of #5490 - nox:namednodemap, r=jdm 2015-04-07 09:31:20 -05:00
Mátyás Mustoha
6da2ce9b1b Canvas: added lineWidth support. 2015-04-07 16:10:29 +02:00
Anthony Ramine
5d58dc8f54 Implement NamedNodeMap::getNamedItem*() (fixes #5454) 2015-04-07 13:42:56 +02:00
bors-servo
07520de970 Auto merge of #5552 - pcwalton:block-formatting-context-cleared-floats, r=glennw
The speculated inline-size of the preceding floats was forced to zero at
the wrong time if the float was itself cleared, causing it to overwrite
the speculated value. Shuffling the code around a bit fixes the problem.

r? @glennw
2015-04-07 04:51:13 -05:00
bors-servo
1fd609d198 Auto merge of #5525 - dhodder:master, r=jdm
An empty DOM interface for HTMLDialogElement

r?
2015-04-07 02:50:04 -05:00
Tim Cuthbertson
2de05450df wpt: Update "running the tests manually" instructions 2015-04-07 16:51:11 +10:00
bors-servo
45b40d49a5 Auto merge of #5338 - ChrisParis:outerhtml, r=jdm
The first commit refactors the fragment parsing and innerHTML setter. This makes the code mirror the structure of the spec more closely, and also prepares for reusing code with the outerHTML setter.
2015-04-07 01:15:45 -05:00
bors-servo
d0acc33bf2 Auto merge of #5423 - yodalee:issue5397-location-pathname, r=jdm
issue #5397
2015-04-06 23:59:18 -05:00
Patrick Walton
e10af4fc98 layout: Correctly take the inline size of cleared floats into account
when estimating the inline size of block formatting contexts.

The speculated inline-size of the preceding floats was forced to zero at
the wrong time if the float was itself cleared, causing it to overwrite
the speculated value. Shuffling the code around a bit fixes the problem.
2015-04-06 17:59:14 -07:00
Nathan Climer
44930b0fb0 Implement MIME sniffing. 2015-04-06 19:01:59 -04:00
Chris Paris
2cc5bad21e Implement Element.outerHTML setter 2015-04-06 12:56:55 -10:00
Anthony Ramine
dd88bcddc4 Fix Element::RemoveAttribute*() 2015-04-06 14:12:56 +02:00
Anthony Ramine
c557736d26 Fix xml_name_type()
Names with a trailing colon are not qualified names.
2015-04-06 14:12:20 +02:00
Anthony Ramine
1906f835b9 Fix Element::GetAttribute()
Local names should not be used to get a attribute without providing a namespace.
2015-04-06 14:12:20 +02:00
Dave Hodder
d00b9b2fef Add basic HTMLDialogElement interface 2015-04-05 13:48:48 +01:00
Dave Hodder
78de6b2db1 Add basic HTMLDialogElement interface 2015-04-04 19:59:37 +01:00
Matt Brubeck
791fa3757d Implement the :focus pseudo-class selector
Fixes #5460. This supports for simple focusable elements that are their own
DOM anchors, like text `input` fields.
2015-04-04 10:57:11 -07:00
Matt Brubeck
ad6c511a5e Basic element.focus and blur methods
Fixes #5462.
2015-04-04 10:57:11 -07:00
yodalee
4ffaaf2785 modify tests metadata
pass in XMLHttpRequest
fail in members.html
2015-04-04 20:08:14 +08:00
Mikko Vanhatalo
29387f6c4c Implemented HTMLInputElement placeholder attribute
+ modified HTMLInputElement.webidl to include placeholder
+ modified placeholder test expectations
2015-04-04 14:44:32 +03:00
James Graham
db104b738e Return correct exit codes. 2015-04-03 23:51:49 +01:00
James Graham
6b8aaf3c57 Update the README files to reflect the changes to the update procedure. 2015-04-03 23:29:22 +01:00
James Graham
d27cda44ce Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-04-03 23:29:21 +01:00
James Graham
92b8d158da Update web-platform-tests expected data to revision 0d318188757a9c996e20b82db201fd04de5aa255 2015-04-03 23:29:20 +01:00
James Graham
2c9faf5363 Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-04-03 23:29:19 +01:00