Commit graph

28165 commits

Author SHA1 Message Date
Josh Matthews
68dcc67d98 Merge pull request #3284 from glennw/file-loader-fix
Return error when unable to create a file path from url.
2014-09-11 08:59:04 -04:00
Glenn Watson
29c3819246 Partial fix for background images on wikipedia pages.
This fixes the visual artifacts seen at the top of wikipedia pages by:
 - Setting clipping rect to avoid images going outside their bounds.
 - Handling case of background-position being >= 100% such that wrapping is required.

However, the gradient is not currently visible on wikipedia. This relies on bug #1997 being fixed.
2014-09-11 16:25:04 +10:00
Patrick Walton
a3465d2962 net: Premultiply alpha in PNGs.
Closes #2857.
2014-09-10 22:08:06 -07:00
Glenn Watson
627359e9e4 Return error when unable to create a file path from url. 2014-09-11 14:22:59 +10:00
Jack Moffitt
5f713517a2 Fix loading of file URLs with spaces 2014-09-10 18:13:25 -06:00
Tetsuharu OHZEKI
a4ec892dbc Move Attr::local_name() to AttrHelpers/AttrHelpersForLayout. 2014-09-11 04:54:38 +09:00
Tetsuharu OHZEKI
b73b06b9a8 Move Attr helper methods to AttrHelpers trait to avoid to touch them from layout task. 2014-09-11 04:54:38 +09:00
Manish Goregaokar
7a974fa231 Merge pull request #3258 from Manishearth/transmute_lint
Add lint for type-checking transmutes; r=jack
2014-09-10 18:39:38 +05:30
glennw
db3217397b Merge pull request #3272 from glennw/wikipedia-layout
Fix layout of Create Account / Login when rendering Wikipedia.
2014-09-10 19:18:43 +10:00
Clark Gaebel
95b54e44ea Block layout RPC on the first layout call 2014-09-09 22:06:10 -07:00
Glenn Watson
98caecf7ec Fix layout of Create Account / Login when rendering Wikipedia.
When calculating the preferred width for a block, accumulate
the left and right float widths of children separately, which
is then max'ed with the normal flow widths later on.

Ref bug #2554 - improves the layout of the top bar.
2014-09-10 13:51:42 +10:00
Manish Goregaokar
d765d65b7a Add lint for type-checking transmutes 2014-09-10 09:11:44 +05:30
Glenn Watson
d218815394 Define constant parameters strings as statics. 2014-09-10 07:29:40 +10:00
Glenn Watson
cc24e68186 Improve quality of font rendering on Linux (and Android).
The freetype hinting only works on integer pixel sizes. For this
reason, the advance width metrics for a font of size 12.99 are
the same as the advance metrics for a font of size 12.0. This
results in small fonts appearing to overlap slightly, which is
particularly noticeable on parts of Wikipedia. Round the font
size up to a pixel boundary inside the freetype system.

Also fetch the system default fonts for the generic font families
rather than hard coding them.

These two changes make the font rendering on Linux very close
to the Firefox font rendering on Wikipedia.
2014-09-10 07:29:40 +10:00
Jack Moffitt
c6ab60dbfc Cargoify servo 2014-09-08 20:21:42 -06:00