Граф коммитов

83 Коммитов

Автор SHA1 Сообщение Дата
Matt Woodrow bf15ddaf06 Bug 1039020 - Layerize background-attachment:fixed for all elements, not just the root one. r=roc 2014-07-25 20:37:50 +12:00
Markus Stange cb2c05ae1d Bug 671302 - Avoid passing large offsets into pixman when drawing repeated background images. r=roc 2014-07-18 11:48:38 +02:00
Mats Palmgren 4b3fe061b1 Bug 613659 - Add a Restore() method to Restore the current gfxContext if any. r=roc 2014-05-05 17:55:55 +00:00
Mats Palmgren 402beefae6 Bug 613659 - Implement box-decoration-break layout for backgrounds. r=cam,jmuizelaar
--HG--
rename : layout/reftests/backgrounds/background-size-each-box.html => layout/reftests/backgrounds/background-size-clone.html
rename : layout/reftests/backgrounds/background-size-cover-each-box.html => layout/reftests/backgrounds/background-size-cover-clone.html
rename : layout/reftests/backgrounds/background-size-cover-continuous.html => layout/reftests/backgrounds/background-size-cover-slice.html
rename : layout/reftests/backgrounds/background-size-continuous.html => layout/reftests/backgrounds/background-size-slice.html
2014-05-05 17:55:54 +00:00
Mats Palmgren 6301b21c9f Back out bug 613659 (for regression bug 998792)
--HG--
rename : layout/reftests/backgrounds/background-size-slice.html => layout/reftests/backgrounds/background-size-continuous.html
rename : layout/reftests/backgrounds/background-size-cover-slice.html => layout/reftests/backgrounds/background-size-cover-continuous.html
rename : layout/reftests/backgrounds/background-size-cover-clone.html => layout/reftests/backgrounds/background-size-cover-each-box.html
rename : layout/reftests/backgrounds/background-size-clone.html => layout/reftests/backgrounds/background-size-each-box.html
2014-04-20 19:39:24 +00:00
Mats Palmgren 12948aafe2 Bug 613659 - Implement box-decoration-break layout for backgrounds. r=cam,jmuizelaar
--HG--
rename : layout/reftests/backgrounds/background-size-each-box.html => layout/reftests/backgrounds/background-size-clone.html
rename : layout/reftests/backgrounds/background-size-cover-each-box.html => layout/reftests/backgrounds/background-size-cover-clone.html
rename : layout/reftests/backgrounds/background-size-cover-continuous.html => layout/reftests/backgrounds/background-size-cover-slice.html
rename : layout/reftests/backgrounds/background-size-continuous.html => layout/reftests/backgrounds/background-size-slice.html
2014-04-18 23:01:23 +00:00
Geoff Brown 8b4092834b Bug 967704 - Update reftest manifests for Android 2.3; r=me 2014-04-09 08:38:45 -06:00
Dan Minor 04303406f8 Bug 957720 - Update reftest manifests for pandaboards; r=gbrown 2014-01-14 06:27:23 -05:00
Geoff Brown 738f3b46df Bug 936226 - (2) Adjust reftest manifests for Android x86; r=dminor 2013-11-17 10:23:17 -07:00
Nicholas Cameron 3a462f7b43 Bug 897787. New test to catch the scaling bug. r=roc 2013-08-01 16:24:28 +12:00
Simon Sapin 4d054e1c1d Bug 483446 - CSS3 'background-attachment: local' support. r=roc 2013-07-23 09:22:58 -04:00
Seth Fowler 48bacd080e Bug 885939 (Part 3) - Disable SVG reftests involving extreme viewboxes that fail due to integer overflow. r=me 2013-07-16 15:41:36 -04:00
Ryan VanderMeulen 503e54554a Backed out changeset 9022f5fdcf98 (bug 483446) for mochitest-5 orange. 2013-07-16 10:45:35 -04:00
Simon Sapin a654dd2bd4 Bug 483446 - Add CSS3 'background-attachment: local' support. r=roc 2013-07-16 09:10:58 -04:00
Chris Lord b7474cf041 Bug 803299 - More tests pass on Android with 24-bit colour. r=blassey
Tests that were marked as failing now pass with increased colour depth.
2013-07-04 14:53:29 +01:00
Seth Fowler 72967380f0 Bug 600207 (Part 1) - Avoid fuzzy SVGs on the tiling path by matrix twiddling. r=dholbert 2013-06-13 00:47:26 -07:00
Timothy Nikkel 7de8dddcde Bug 879494. Remove bug685516 annotations from reftests, they are not needed anymore. r=khuey 2013-06-05 00:18:54 -05:00
Ehsan Akhgari 9b848f5568 Backed out 8 changesets (bug 803299) because it makes Tcheckerboard and Tpan so much worse
Backed out changeset f0311781c218 (bug 803299)
Backed out changeset 946467115924 (bug 803299)
Backed out changeset 59af481d8888 (bug 803299)
Backed out changeset 99a03f7ca8a4 (bug 803299)
Backed out changeset 44539f533a92 (bug 803299)
Backed out changeset 3f3963a3ebf6 (bug 803299)
Backed out changeset 5269f0483d1e (bug 803299)
Backed out changeset a9485787fdb1 (bug 803299)
2013-05-29 17:14:27 -04:00
Chris Lord a6e25dd87f Bug 803299 - More tests pass on Android with 24-bit colour. r=blassey
Tests that were marked as failing now pass with increased colour depth.

--HG--
extra : rebase_source : 620739d5cdd1bb227f51a5cc985e16cd8dfa06f9
2013-05-29 15:26:34 +01:00
Trevor Saunders 4b16c76fb3 backout 7a1706d0e5b0 to 8c8b6adebb4c for frequent failures in scrolling/text-1.html and scrolling/text-2.html reftests on a CLOSED TREE 2013-05-28 18:32:29 -04:00
Chris Lord f5b089174c Bug 803299 - More tests pass on Android with 24-bit colour. r=blassey
Tests that were marked as failing now pass with increased colour depth.
2013-05-28 18:50:17 +01:00
Daniel Holbert 32511651c4 Bug 473236, 2013 edition: Remove executable bit from files that clearly don't need it (html, xhtml, xul, svg, png, jpg, ttf files in test dirs within /layout). DONTBUILD 2013-03-25 17:01:35 -07:00
Kyle Huey 0660c18b2f Bug 816498: Fix some things about background attribute handling that are still broken. r=bz
As filed the bug is about table backgrounds failing to print.  The root cause of this is that we load images from the original document, because print/print-preview documents (which are static clones of the original) cannot do loads.  This results in an entry in the css::ImageValue's request table under the original document, but entry under the printing document.  Then we do layout, try to get the request, and fail, and nothing is displayed.  The solution to this is to force us to clone the request for the printing document if we're loading off the original document.  I manually verified that this does not regress Bug 560235.

While writing a test for this, we discovered another problem.  The reftest print code does not actually use the printing codepath.  Instead it takes an existing document, tears down its presshell, and creates a new presshell for printing.  Fixing the above bug did not make the reftest print test pass because ImageLoader does not deal properly with presshell destruction/recreation.  It assumes that when the presshell is destroyed all of the css::ImageValues can be cleared of their entries for that document.  This fails for ImageValues for mapped attributes because they are held alive by the content tree.  When a new presshell for this document is then created there is no entry for the document and thus no image request to paint.  The fix for this is to only clear the frame to request and request to frame mapping hashtables and not to clear the document's entry on the ImageValue when the presshell is destroyed.  The destruction of the ImageLoader (which is held from a strong reference on the document) is when those entries are removed.  The final change is to change css::ImageValue's hashtable from holding a strong reference to the keys (which are documents) to holding raw pointer references.  This is safe because we clear the relevant entry when the corresponding ImageLoader dies, and is needed to prevent a reference cycle that was being broken by presshell destruction.

--HG--
rename : layout/reftests/backgrounds/table-background-ref.html => layout/reftests/backgrounds/table-background-print-ref.html
rename : layout/reftests/backgrounds/table-background.html => layout/reftests/backgrounds/table-background-print.html
2013-02-23 06:59:43 -08:00
L. David Baron d40d0ddcd6 Bug 831354, test fix 1: Make continuous-inline-1{cd} tests no longer assume that the height of an inline in the default font is less than 20px. r=bzbarsky
--HG--
rename : layout/reftests/backgrounds/continuous-inline-1-ref.html => layout/reftests/backgrounds/continuous-inline-1ab-ref.html
rename : layout/reftests/backgrounds/continuous-inline-1-ref.html => layout/reftests/backgrounds/continuous-inline-1cd-ref.html
2013-01-17 20:20:27 +00:00
Andrew Halberstadt 221179f50b Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
Boris Zbarsky bde8d5f897 Bug 817531 followup. Enable the test on android. No review. 2012-12-07 00:11:19 -05:00
Boris Zbarsky 0900957c01 Bug 817531. Fix the referrer header for background image loads. r=khuey
--HG--
rename : image/test/reftest/generic/green.png => layout/reftests/backgrounds/background-referrer-image.png
rename : image/test/reftest/generic/accept-image-catchall-ref.html => layout/reftests/backgrounds/background-referrer-ref.html
rename : image/test/reftest/generic/accept-image-catchall.html => layout/reftests/backgrounds/background-referrer.html
rename : image/test/reftest/generic/check-header.sjs => layout/reftests/backgrounds/background-referrer.sjs
2012-12-06 15:21:19 -05:00
Ed Morley 6a72436e40 Backout d26382bc6411 (bug 817531) for Android failures in background-referrer.html on a CLOSED TREE 2012-12-06 22:41:37 +00:00
Boris Zbarsky 7b58ca3a2a Bug 817531. Fix the referrer header for background image loads. r=khuey
--HG--
rename : image/test/reftest/generic/green.png => layout/reftests/backgrounds/background-referrer-image.png
rename : image/test/reftest/generic/accept-image-catchall-ref.html => layout/reftests/backgrounds/background-referrer-ref.html
rename : image/test/reftest/generic/accept-image-catchall.html => layout/reftests/backgrounds/background-referrer.html
rename : image/test/reftest/generic/check-header.sjs => layout/reftests/backgrounds/background-referrer.sjs
2012-12-06 15:21:19 -05:00
Joel Maher d3571a894c Bug 737961 - add reftest manifest conditions for height width. r=dbaron 2012-11-12 07:56:34 -05:00
Matt Woodrow 0c5d51feb5 Bug 798964 - Add nsDisplayBackground color and make the bounds of nsDisplayBackground match the image. r=roc 2012-10-25 18:32:25 +13:00
Chris Lord f6f6bc2090 Bug 797021 - Reftest for multiple background content/border box clipping. r=roc 2012-11-02 08:35:39 +00:00
Phil Ringnalda 69b684d597 Back out c95958e3b85d and e8a8bf41e0c4 (bug 798964) for Android reftest-4 failures 2012-10-25 01:19:57 -07:00
Matt Woodrow c2f1eb01a3 Bug 798964 - Add nsDisplayBackground color and make the bounds of nsDisplayBackground match the image. r=roc 2012-10-25 18:32:25 +13:00
Daniel Holbert 8e45bef98a backout 5545892376cc (Bug 737961) for Windows reftest orange 2012-10-16 16:05:52 -07:00
Joel Maher 81246f2430 Bug 737961 - add reftest manifest conditions for height width. r=dbaron 2012-10-16 16:12:25 -04:00
Chris Lord f455e70a11 Bug 786502 - Add reftests for background layers. r=roc
Add tests that verify background layers composite correctly.
2012-09-13 11:35:14 +01:00
Kyle Huey 8443a7a8f1 Bug 783162: Make mapped attributes hold the image alive. r=bz
The nsCSSValue in nsGenericHTMLElement::MapBackgroundInto is a temporary.  This causes a problem after Bug 697230 landed, because the nsCSSValue::Image we put into that value is destroyed once we're done doing style stuff.  Previously the nsImageLoader would grab the request off the nsCSSValue::Image and hold it alive.  Bug 697230 changed the behavior here; now when the nsCSSValue::Image is destroyed it tells the image loader to drop the request.  The result is that all the references to the request are dropped and the frame is never told it has a background.

The solution is to keep the nsCSSValue::Image alive longer.  This patch adds two new types of nsAttrValue.  The first is an nsCSSValue::URL.  A ParseBackgroundAttribute method is added on nsGenericHTMLElement that the relevant elements (body/td/th/table/tr/tbody/thead/tfoot) call that parses background into an nsCSSValue::URL.  The second is an nsCSSValue::Image.  nsGenericHTMLElement::MapBackgroundInto attempts to convert the nsCSSValue::URL into an nsCSSValue::Image by kicking off the image load.  The result is that image loads are only started when the element is actually visible.  This also mirrors the way background-image works.  This also allows us to fix two longstanding bugs in this code.  Since MapBackgroundInto doesn't have a pointer to the actual element, it relied on grabbing the principal of the document.  Now we can grab the principal of the node in ParseBackgroundAttribute.  MapBackgroundInto also has no way to get at the element's base URI (to honor xml:base), which is now possible in ParseBackgroundAttribute.

nsCSSValue::[Image|URL] have also been moved to be mozilla::css::[Image|URL]Value.  nsAttrValue.h is included in external linkage code, so it can't include nsCSSValue.h to get the declarations of nsCSSValue::[Image|URL], and nested classes can't be forward declared.  Moving the classes to a namespace solves the problem.

Finally some old inoperative quirks mode code was removed.  This code has done nothing since Bug 273078 was landed in 2004.
2012-08-24 10:50:49 -07:00
Ed Morley 16944609f7 Bug 685516 - Mark more tests as random; rs=khuey 2012-08-18 14:49:50 +01:00
Kyle Huey 76c7beea58 Bug 685516: Mark a couple more tests random. 2012-08-15 13:15:03 -07:00
Ed Morley 4ca9719626 Bug 685516 - Disable background-size-body-percent-percent-overflow.html; rs=khuey 2012-08-15 17:22:14 +01:00
Kyle Huey e3483c4307 Bug 685516: Disable some more tests. 2012-08-14 21:05:24 -07:00
Kyle Huey 20fdae0e99 Bug 697230: Part 3 - Make style images block onload. r=bz 2012-08-13 16:04:17 -07:00
Kyle Huey 22c5414200 Bug 685516: Disable a bunch of failing tests on Android XUL. r=jrmuizel 2012-08-13 11:22:11 -07:00
Jeff Muizelaar 15a0969a86 Bug 750598. Add some heuristics to catch cases when we can use nearest filtering. r=roc
These may need some tuning to get right, but should be an improvement over
just disabling bilinear for backgrounds.

It also expectedly regresses tcheckerboard & tcheck2 because we're now
using bilinear when we were using nearest before.
2012-05-01 16:35:04 -04:00
George Wright e63e39e4b5 Bug 747274 - Add a pref (default to true on Android) to forcible use nearest pixel filtering for background drawing. r=jrmuizel,ajuma a=blassey 2012-04-24 10:28:46 -04:00
Kyle Huey 5e3fddb58d Back out Bug 679230 due to Android reftest failures. 2012-04-07 10:36:49 -07:00
Kyle Huey 2732cf7774 Bug 697230: Part 3 - Make style images block onload. r=bz 2012-04-07 09:00:27 -07:00
Lazar Sumar c285af6984 Bug 548375 - Add tests for background-repeat taking two values (css3-background). r=dbaron 2012-02-24 21:23:14 -08:00
William Chen 4a16132bcb Bug 522607 - Tests for new css3-background background-position syntax. r=dbaron 2012-02-20 12:16:11 +13:00