Commit graph

5065 commits

Author SHA1 Message Date
Josh Matthews
f0f7e98dfa Dump initial prototype of devtools server into the build. Expect lies if you try to use it for anything real. 2014-09-18 15:06:40 -04:00
Simon Sapin
11135d75cb Try to parse command line argument as file names
… when parsing as an absolute URL (without a base) fails.

Previously, arguments were parsed as URLs with the current working directory
converted to an URL and used as the base URL. This mostly worked for
relative filenames, except that `?` and `#` had a special meaning
and needed to be percent-encoded.

Fix #3340.
2014-09-16 14:41:45 +01:00
Jack Moffitt
e10206e91e Reinstate errors for unused variables and imports. 2014-09-13 23:38:00 -06:00
Jack Moffitt
c6ab60dbfc Cargoify servo 2014-09-08 20:21:42 -06:00
Simon Sapin
f67f6ef062 Fix WPT when /usr/bin/python is python3
Use the Python that was detected during configure.
2014-09-08 14:18:02 +02:00
Patrick Walton
f701a9b827 Merge pull request #3206 from glennw/layout-trace-enc
Add an initial pass at a layout debug module.
2014-09-07 23:33:09 -07:00
Ms2ger
2c0b66a782 Merge pull request #3240 from Ms2ger/mark-null
Avoid trying to trace a null JSVal; r=jdm
2014-09-08 00:06:24 +02:00
Ms2ger
c56f8a2c79 Correct the iterator adaptors used in parsing integers (fixes #3208).
This avoids Azure segfaulting trying to set up a 100999px*100999px canvas.

The test still fails due to its use of getComputedStyle.
2014-09-07 15:10:07 +02:00
Ms2ger
2d2674e346 Avoid trying to trace a null JSVal.
JSVal::trace_kind() asserts that it is a markable type; null is a gcthing that
is not markable.
2014-09-07 12:42:59 +02:00
Ms2ger
0d202b6bda Merge pull request #3226 from Ms2ger/3209-disable
Disable intermittently failing Document-characterSet-normalization.html (fixes #3209); r=jdm
2014-09-07 00:13:25 +02:00
Josh Matthews
572d33fa14 Merge pull request #3210 from seanmonstar/private-node-type-id
make Node.type_id field private, access through type_id()
2014-09-06 16:46:07 -04:00
Ms2ger
3fa292d391 Disable intermittently failing Document-characterSet-normalization.html (fixes #3209).
As we currently don't support anything but utf-8, this is not a particularly
useful test to run.
2014-09-06 22:02:42 +02:00
Sean McArthur
375e475f99 make Node.type_id field private 2014-09-05 12:22:56 -07:00
Ms2ger
9cf2085823 Fix HTMLImageElement setters.
These would crash because the functions they call assert that they receive
lower-case names.

Fixing the crash allows reflection-embedded.html to finish successfully.
2014-09-05 17:45:48 +02:00
Glenn Watson
4cb9f32427 Fix inline size bubbling with fixed width block. Improve intrinsic inline size calculation for text fragments.
These two fixes are related to the wikipedia metabug #2554.

They don't make the wikipedia page look better (they cause a slight regression in the top caption table), but they are prerequisites for fixing some of the other layout issues that remain.

Added reftests for each of the three cases I have come across that this patch solves.
2014-09-05 16:41:13 +10:00
Josh Matthews
94f7f46dd8 Merge pull request #3164 from cgaebel/layout-rpc
Avoid using message passing for simple JS -> Layout "rpc-like" queries.
2014-09-04 22:14:18 -04:00
Glenn Watson
a0854080cc Change scope macro to be a no-op in release builds. 2014-09-05 09:41:43 +10:00
Clark Gaebel
dafd0b652d Added a fast no-message RPC interface to the layout task. 2014-09-04 14:10:07 -07:00
Pierre Louis Aublin
cf734b01b7 Throw TypeErrors instead of uncatcheable exceptions in CodegenRust.py (fixes #347, #3065). 2014-09-04 14:45:24 +02:00
MechaXL
e2bfdb30a0 Implement document.lastModified (fixes #2972, #3127). 2014-09-04 13:44:02 +02:00
Ms2ger
f7877008d2 Merge pull request #3205 from Ms2ger/parse-integers
Parse canvas's width and height attributes according to the specification; r=jdm
2014-09-04 09:20:54 +02:00
glennw
941d9402af Merge pull request #3201 from glennw/fc-platform-fixup
Unify fontconfig source code so that one branch builds on both linux + android
2014-09-04 15:01:14 +10:00
Glenn Watson
acedb16670 Add a layout debug module. This outputs a trace of the layout process to a JSON
file which can be viewed in an external tool. It provides a timelapse view of
how the flow tree and fragments changed during the layout process, which makes
it easier to debug layout bugs.
2014-09-04 09:15:03 +10:00
Glenn Watson
68446ecb81 Unify fontconfig source code so that one branch builds on both linux + android. 2014-09-04 07:21:41 +10:00
Ms2ger
2d50e33902 Handle failure to parse the value of the width and height attributes on canvas elements (fixes #3200).
The remaining failures are due to the tests's use of getComputedStyle.
2014-09-03 20:14:27 +02:00
Ms2ger
e1b5b5183f Implement the rules for parsing integers as defined by HTML, and use them for canvas. 2014-09-03 19:48:07 +02:00
Ms2ger
940c013176 Merge pull request #3202 from Ms2ger/node-priv-members
Make some of Node's members private; r=Manishearth
2014-09-03 18:02:18 +02:00
Patrick Walton
603f7c9770 Merge pull request #3182 from glennw/inline-text-border
Add support for borders on inline elements
2014-09-03 08:16:53 -07:00
Ms2ger
ce9e5ae213 Make some of Node's members private. 2014-09-03 13:02:17 +02:00
Patrick Walton
ec6f83077b Merge pull request #3195 from glennw/image-format
Fix task failure when loading wikipedia.
2014-09-03 00:35:20 -07:00
Glenn Watson
e4e1c71d48 Add support for borders on inline elements.
Fix ahem reftests on mac, by disabling text AA in reftest mode.

Also fix precision issues in font metrics to correct height
and baseline calculations.
2014-09-03 07:16:17 +10:00
Josh Matthews
cb559efd4e Merge pull request #3173 from mrobinson/typed-units-1
Start using more typed units in the compositor
2014-09-02 15:14:37 -04:00
Ms2ger
ee39685051 Move the script type and language checks into HTMLScriptElement.
This is IMO a more sensible place for them to live, and prepares for the
demise of hubbub_html_parser.rs, as we move to html5ever.
2014-09-02 09:00:41 +02:00
Glenn Watson
78ef16bfae Fix task failure when loading wikipedia.
There is still an issue with alpha display, so there is
likely a problem elsewhere, but this at least allows the
page to load for now (ref #2554).
2014-09-02 15:58:38 +10:00
Glenn Watson
c0d08a6c2e Revert "Move PropertyBitField to a syntax extension."
This reverts commit d6002a0a50.
2014-09-02 07:58:17 +10:00
Glenn Watson
cc03e4f9e2 Revert "fixup! Move PropertyBitField to a syntax extension."
This reverts commit 653f257029.
2014-09-02 07:58:08 +10:00
Glenn Watson
a8b7b193f5 Revert "Add tests for the bit_struct! macro."
This reverts commit dd44a7d24a.
2014-09-02 07:57:57 +10:00
Glenn Watson
4952bee0f7 Disable ssl on android as openssl needs to be added to build system. 2014-09-01 11:27:13 +10:00
Gilles Leblanc
d12243df0d Share code between HTMLScriptElement:Text and Node:GetTextContent
Added a function in Node called collect_text_contents which is called
from both places.

Fixes #3157
2014-08-30 20:34:08 -04:00
Ms2ger
8af758f591 Merge pull request #3186 from wenderen/Window.frames
implement window.frames; r=Manishearth
2014-08-30 09:12:17 +02:00
Rohan Prinja
fd09df71a4 implement window.frames 2014-08-30 02:25:23 +05:30
Josh Matthews
567d219342 Merge pull request #3174 from Aaron1011/attrlist-namednodemap
Rename AttrList to NamedNodeMap
2014-08-29 16:15:59 -04:00
Martin Robinson
678ab5c963 Merge pull request #3179 from mrobinson/iframes
Remove RenderListener::set_layer_clip_rect
2014-08-29 12:53:54 -07:00
Aaron Hill
3a56a69581 Rename AttrList to NamedNodeMap
This fixes issue #3135
2014-08-29 14:53:01 -04:00
Simon Sapin
db05417a25 Merge pull request #3181 from SimonSapin/sideways-text
Sideways text
2014-08-29 17:51:26 +01:00
Simon Sapin
80704aeabd Implement sideways text. 2014-08-29 17:50:56 +01:00
Simon Sapin
db80b76d0a Make text decorations be independent display items.
The goal it to avoid having too much layout logic (which gets more complex in vertical text) in gfx code.
2014-08-29 17:50:51 +01:00
Josh Matthews
e40f54bfef Merge pull request #3183 from ChrisParis/callback-return
Support callback return types in codegen
2014-08-29 11:08:49 -04:00
Ms2ger
e0a36f3292 Disable same-origin.html for intermittent failures (fixes #3180).
We don't currently implement the same-origin restriction at all, so there's
little point in running this test.
2014-08-29 12:22:20 +02:00
Simon Sapin
1f2c5c0bcb Merge pull request #3178 from SimonSapin/canvas-crate
Add a canvas create, break script’s dependency on gfx.
2014-08-29 09:14:07 +01:00