Commit Graph

172 Commits

Author SHA1 Message Date
L. David Baron
2e4a775e61 Bug 234485: Map xml:lang attribute into style so that it's used for font selection and hyphenation. r=bzbarsky
The code in nsHTMLStyleSheet implements LangRule to map xml:lang into
style and the code to manage its uniqueness.

The change to nsGenericHTMLElement fixes the mapping of the HTML lang
attribute to do cascading the way all other rule mapping does so that
the cascading works correctly.

The tests test that the correct style language is used for hyphenation
by copying over a set of hyphenation reftests that check its basic
response to languages.  There are no specific tests for font selection,
but font selection is known to use the same language data from style.

I verified manually (see other attachments to bug) that the rule
uniqueness is being managed correctly.

--HG--
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-1.xhtml
rename : layout/reftests/text/auto-hyphenation-10.html => layout/reftests/text/auto-hyphenation-xmllang-10.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-11a.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-11b.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-12a.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-12b.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-13a.xhtml
rename : layout/reftests/text/auto-hyphenation-1.html => layout/reftests/text/auto-hyphenation-xmllang-13b.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-14a.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-14b.xhtml
rename : layout/reftests/text/auto-hyphenation-1a.html => layout/reftests/text/auto-hyphenation-xmllang-1a.xhtml
rename : layout/reftests/text/auto-hyphenation-2.html => layout/reftests/text/auto-hyphenation-xmllang-2.xhtml
rename : layout/reftests/text/auto-hyphenation-3.html => layout/reftests/text/auto-hyphenation-xmllang-3.xhtml
rename : layout/reftests/text/auto-hyphenation-4.html => layout/reftests/text/auto-hyphenation-xmllang-4.xhtml
rename : layout/reftests/text/auto-hyphenation-5.html => layout/reftests/text/auto-hyphenation-xmllang-5.xhtml
rename : layout/reftests/text/auto-hyphenation-6.html => layout/reftests/text/auto-hyphenation-xmllang-6.xhtml
rename : layout/reftests/text/auto-hyphenation-7.html => layout/reftests/text/auto-hyphenation-xmllang-7.xhtml
rename : layout/reftests/text/auto-hyphenation-8.html => layout/reftests/text/auto-hyphenation-xmllang-8.xhtml
rename : layout/reftests/text/auto-hyphenation-9.html => layout/reftests/text/auto-hyphenation-xmllang-9.xhtml
2013-05-30 16:00:20 +08:00
Ehsan Akhgari
994b787c21 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
e2d85efce5 Bug 803299 - Some tests require extra fuzzing on Android in 24-bit colour. r=blassey
--HG--
extra : rebase_source : 75c2dc44bc3a8167b1699ab24da20c67075a182a
2013-05-29 15:26:37 +01:00
Trevor Saunders
11be8dcfb7 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
76c290cd25 Bug 803299 - Some tests require extra fuzzing on Android in 24-bit colour. r=blassey 2013-05-28 18:50:17 +01:00
Jonathan Kew
f7865d5906 bug 873902 - reftest for Arabic marks with Windows fonts. r=jdaggett 2013-05-21 13:45:41 +08:00
Michael Wu
4914177dc1 Bug 840315 - Change default serif and sans serif fonts on gonk, r=jfkthame a=blocking-leo 2013-04-15 23:00:08 +02:00
Joel Maher
b0d0faaffc Bug 834737 - mark text/475092-pos.html as fails-if for gtk2Widget. r=bz 2013-03-15 10:11:50 -04:00
John Daggett
7ae12cd54a Bug 849976 - use HTTP(..) for reftests that require it. r=dholbert 2013-03-13 21:04:39 +09:00
Matt Woodrow
4825abac8b Bug 702504 - Mark reftests that fail with the new resolution as fuzzy. r=roc 2013-03-12 09:21:30 +13:00
Jonathan Kew
e16b60e1f5 bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett 2013-02-22 13:36:02 +00:00
Jonathan Kew
c73913a252 bug 700022 - pt 1 - reftests to check that graphite is working. r=jdaggett 2013-02-22 13:36:00 +00:00
Phil Ringnalda
3be2d7b142 Back out ac6dff6a0811 and f97bc1de213a (bug 700022) for permaorange in b2g R6 2013-02-22 22:26:24 -08:00
Jonathan Kew
6a95232257 bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett 2013-02-22 13:36:02 +00:00
Jonathan Kew
ba6c66b224 bug 700022 - pt 1 - reftests to check that graphite is working. r=jdaggett 2013-02-22 13:36:00 +00:00
Joel Maher
33ce69052c Bug 834737 - 2 text reftests fail while running unitests on ubuntu 12.04 on ec2 VMs. r=bz 2013-02-05 08:57:40 -05:00
Jonathan Kew
6b25bed2ee bug 833297 - reftest for preserving clusters across font-shaping boundary with graphite. r=jdaggett 2013-01-23 16:41:34 +00:00
Jonathan Kew
08fa2d5679 backout 1458740cfd92 and 833978b3dadf (bug 700022) due to android-R4 and b2g-R10 orange 2013-01-21 11:22:49 +00:00
Jonathan Kew
fc71508c59 bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett 2013-01-21 09:24:59 +00:00
Jonathan Kew
49e7a4e34b bug 700022 - pt 1 - reftests to check that graphite is working. r=jdaggett 2013-01-21 09:24:55 +00:00
Jonathan Kew
59b5315697 bug 831354 - test fix 9 - give the CGJ reftest a large line-height, so it's less sensitive to the metrics of any fallback font that happens to be found. 2013-01-19 13:42:19 +00:00
Jonathan Kew
15b8c0f3e0 bug 831354 - test 'fix' 8 - mark remaining problematic tests as fuzzy on android. r=blassey 2013-01-19 10:30:28 +00:00
Phil Ringnalda
b86d958523 Back out 823ab8a1c9c0:bc71821fcb9f (bug 831354) for b2g reftest failures
CLOSED TREE
2013-01-18 19:08:03 -08:00
Jonathan Kew
763e47ca5b bug 831354 - test 'fix' 8 - mark remaining problematic tests as fuzzy on android. r=blassey 2013-01-18 23:03:12 +00:00
L. David Baron
cf068fa861 Bug 831354, test fix 4: Make auto-hyphenation-2 not depend on different languages leading to the same font. r=jfkthame 2013-01-17 20:20:27 +00:00
L. David Baron
6d6eef7787 Bug 702121, patch 3: Make the auto-hyphenation-{8,9,10} reftests not depend on picking the same fonts for different language or encoding values, to fix Android reftest failures from landing of bug 831354. r=jfkthame
--HG--
rename : layout/reftests/text/auto-hyphenation-10.html => layout/reftests/text/auto-hyphenation-10-ref.html
rename : layout/reftests/text/auto-hyphenation-8.html => layout/reftests/text/auto-hyphenation-8-ref.html
rename : layout/reftests/text/auto-hyphenation-9.html => layout/reftests/text/auto-hyphenation-9-ref.html
2013-01-17 20:20:27 +00:00
Andrew Halberstadt
3a19a47088 Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
Makoto Kato
3f7b74614f Bug 820255 - U+205F (MEDIUM MATHEMATICAL SPACE) and U+1680 (OGHAM SPACE MARK) should break line. r=masayuki 2012-12-12 16:00:23 +09:00
Mats Palmgren
5614b4e4bf Bug 806284 - Resizing a RTL block with text-align:left does not reposition the lines. r=roc 2012-12-05 23:26:28 +01:00
Shriram Kunchanapalli
2e053151b4 Bug 799105: Adjusts the width and height to < 600px. r=smontagu. 2012-10-23 19:10:19 +05:30
Jonathan Kew
05e248af4d bug 715798 pt 2.5 - reftests to check Unicode emoji characters are not rendered blank. r=jrmuizel 2012-10-23 10:06:28 +01:00
Jonathan Kew
0538f8e802 bug 772640 - reftests for rendering of decomposed char via OpenType and Graphite. r=jdaggett 2012-10-22 08:47:05 +01:00
Matt Woodrow
e79b288e75 Bug 539356 - Part 10 - Test changes required for DLBI. r=roc
* * *
[mq]: test-fixes
2012-08-29 17:48:13 +12:00
Ed Morley
5a3b322459 Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE 2012-09-27 16:34:46 +01:00
Matt Woodrow
6bcc0bc124 Bug 539356 - Part 10 - Test changes required for DLBI. r=roc
* * *
[mq]: test-fixes
2012-08-29 17:48:13 +12:00
Cameron McCormack
09aeb61301 Bug 655877 - Part 23a: Add white-space:-moz-pre-discard-newlines value with white space collapsing behavior like SVG's xml:space="preserve". r=roc,dbaron 2012-09-07 15:42:19 +10:00
L. David Baron
b7240dcf1a Only do hyphenation when the language was specified explicitly, rather than using an encoding-inferred language. (Bug 702121, patch 2) r=jfkthame 2012-08-20 19:23:32 -07:00
Cameron McCormack
7aadf378af Bug 774968 - line-height percentage value not computed accurately. r=dbaron
--HG--
extra : rebase_source : 93885c1b2ef72d673a935c135f89cc06bc58136d
2012-07-20 07:03:35 +10:00
Ehsan Akhgari
729030ee5b Backout changeset e04abde1b323 (bug 539356) because of performance and correctness regressions 2012-07-03 20:21:03 -04:00
Matt Woodrow
4b10a2b53c Bug 539356 - Part 10 - Test changes required for DLBI. r=roc 2012-06-30 15:06:11 +12:00
Jonathan Kew
91fd7c05b9 Bug 755730 - don't mask out Indic codepoints in OpenType fonts supported by OS X 10.7. r=jdaggett 2012-05-23 14:15:43 +01:00
Jonathan Kew
28e4c37bd8 bug 752459 - reftest for word-wrap cluster support. r=smontagu 2012-05-18 16:51:40 +01:00
Jonathan Kew
80854dd855 bug 752455 - reftest for word-break, clusters, text-transform. r=smontagu 2012-05-18 16:51:39 +01:00
Jonathan Kew
b9713f2189 Split wordbreak-7 test into two testcases, one without lam-alef ligatures and one with (marked as failing due to bug 479829). Bug 249159, r=smontagu 2012-05-07 12:18:24 -07:00
Simon Montagu
4c1ad111cb More tests for bug 249159, r=jfkthame 2012-05-07 12:18:24 -07:00
Makoto Kato
6bbd48cb4a Bug 249159 - Part 2 Implement CSS3 Text word-break property. r=dbaron, smontagu 2012-05-07 12:18:23 -07:00
John Daggett
a867268ca7 Bug 718539. Update reftests to use new font-feature-settings syntax. r=jkew 2012-04-26 15:27:36 +09:00
Jonathan Kew
835a59399a bug 745780 - add reftests for Arabic presentation-forms shaping in harfbuzz. r=jdaggett a=test-only 2012-04-21 22:25:25 +01:00
Jonathan Kew
20eec34402 bug 745555 - reftests for preservation of character-identity flags when uppercasing text containing es-zet. r=roc 2012-04-16 13:54:52 +01:00
Simon Montagu
f7096e5202 Reftests for bug 726392, r=dbaron 2012-02-20 08:49:44 -08:00