Commit Graph

15262 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
Phil Ringnalda
1eecaa780b Back out 87e2bfbb427d (bug 874295) for mochitest-1 failures
CLOSED TREE
2013-05-29 23:55:29 -07:00
Arnaud Sourioux
1aded9ba34 Bug 856822: Annotate ~1700 methods with MOZ_OVERRIDE in /content r=smaug 2013-05-29 13:43:41 -07:00
Robert O'Callahan
64eba24b0f Bug 868405. Support 'enabled' attribute on MediaStreamTrack. r=jesup
--HG--
extra : rebase_source : ec29ae2e45979baaf1b6a085549755ba86cadd40
2013-05-30 16:44:43 +12:00
Robert O'Callahan
7c57003152 Bug 868405. Part 1: Add a few MOZ_OVERRIDES. r=jesup
--HG--
extra : rebase_source : 9fce360b62677439a353b2fb81d9bab92b659d13
2013-05-30 16:44:40 +12:00
Robert O'Callahan
d276e5355f Bug 874295. On non-Android platforms (and eventually for Android), use call GetDefaultScale instead of GetDevicePixelsPerMetaViewportPixel. r=mbrubeck
--HG--
extra : rebase_source : 9c0544baccfe277e9340d185f189eda174923eb4
2013-05-30 16:34:32 +12:00
Kyle Huey
fb465d209c Bug 876555: Avoid including xpcprivate.h in most generated dom binding code. r=bz 2013-05-30 11:15:31 +08:00
Jeff Gilbert
2644dad67f Bug 877048 - Add support for comments and whitespace trimming to failed/skipped mochitest-gl tests. - r=bjacob 2013-05-29 17:49:12 -07:00
Jeff Gilbert
40040cb793 Bug 877048 - Consistently use single quotes in new code. - r=bjacob 2013-05-29 17:49:12 -07:00
Jeff Gilbert
ff88f5ff92 Bug 877048 - Add failing test list for android+nvidia for tegra2 slaves. - r=bjacob 2013-05-29 17:49:12 -07:00
Jeff Gilbert
063b9ae50c Bug 877048 - Make mochitest-gl detection of os/version/driver modular. - r=bjacob 2013-05-29 17:49:11 -07:00
Jeff Gilbert
cdacc980ee Bug 877048 - Factor getting driver info out into a self-contained function for mochitest-gl. - r=bjacob 2013-05-29 17:49:11 -07:00
Cameron McCormack
109e949fe7 Bug 876323 - Avoid recomputing mPositions when COORD_CONTEXT_CHANGED unless percentages were used. r=jwatt 2013-05-30 10:44:55 +10:00
Ehsan Akhgari
1de812f9ff Bug 877231 - Make the error checking for the OfflineAudioContext constructor more strict; r=roc
--HG--
extra : rebase_source : 123a39f3d4a169c85927b4e23f99a9962efc4452
2013-05-29 19:35:30 -04:00
Michael Brennan
1eaf301952 Bug 829603 - Change charsets to strings in nsIDocShell. r=hsivonen 2013-05-25 16:09:30 +02:00
Ehsan Akhgari
b60b4f5031 Bug 877125 - Handle the case where the expected number of channels for the offline AudioDestinationNode and the actual input number of channels do not match; r=roc
--HG--
extra : rebase_source : 432c10fe039b24b1aea1d0329ebef37f9e62cd0a
2013-05-29 19:33:14 -04:00
Cosmin Clapon
3265786443 Bug 764996 - Dir attribute mapping. r=karlt 2013-05-29 19:26:40 -04:00
Ryan VanderMeulen
eb4d754279 Backed out changeset a966aadd9ae3 (bug 856822) for Windows bustage on a CLOSED TREE. 2013-05-29 17:56:10 -04: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
Jeff Gilbert
2efda9204e Bug 876929 - Check for OES_standard_derivatives on GLES2. - r=bjacob 2013-05-28 17:20:29 -07:00
Arnaud Sourioux
83d60db473 Bug 856822: Annotate ~1700 methods with MOZ_OVERRIDE in /content r=smaug 2013-05-29 13:43:41 -07:00
Boris Zbarsky
14e7edc59d Bug 876805. Fix unsafe reference gc hazards in dom/ code. r=smaug 2013-05-29 16:16:04 -04:00
Ehsan Akhgari
fd9088c5e1 Bug 875221 - Make sure to balance the creation and destruction of streams for media graphs; r=roc 2013-05-29 11:38:39 -04:00
Ehsan Akhgari
e0fbc6e3fe Bug 876215 - Correctly deal with nodes that require 0 input channels by feeding them a null AudioChunk; r=roc
The assertion here is really not correct, since as this testcase shows,
it's now easy for web content to control the value of outputChannelCount.

--HG--
extra : rebase_source : a6282517673b7c9e73c2114ee0b944fc1022e4ae
2013-05-29 07:40:14 -04:00
Ehsan Akhgari
fe9a997fa6 Bug 876118 - Impose a unified channel count limit of 10000 channels in Web Audio; r=roc
--HG--
extra : rebase_source : 480cebb99e5dd8673df179b490d11e6c513fa1d1
2013-05-29 07:36:37 -04:00
Jon Coppeard
6d32ef3678 Bug 876639 - Address unsafe references from JS_ParseJSON() - Fix browser r=smaug 2013-05-29 09:29:39 +01:00
Chris Lord
985282358e Bug 803299 - Replace black.png with black.html for webgl-color-alpha-test. r=jrmuizel
webgl-color-alpha-test fails to render the image correctly since switching on
24-bit rendering, presumably due to async image decoding. Instead, just replace
the pure black 256^2 image with a page that renders the same using a div.

--HG--
extra : rebase_source : 12b454362ca9ad989fdf1e29a6715000575c613a
2013-05-29 15:26:39 +01:00
Kartikaya Gupta
43abffa297 Bug 865735 - Add a units template parameter to the gfx Point, Size, and Rect classes. r=bas,roc 2013-05-29 09:32:30 -04:00
Ed Morley
1e88f4e513 Backed out changeset 7acdb79e4d71 (bug 876639) 2013-05-29 12:09:10 +01:00
Jon Coppeard
27ffea6482 Bug 876639 - Address unsafe references from JS_ParseJSON() - Fix browser r=smaug 2013-05-29 09:29:39 +01:00
Simon Montagu
8470cb13e3 Assert that entry exists before removing it. Bug 876155, r=ehsan 2013-05-29 10:36:59 +03:00
Ehsan Akhgari
042b85c631 Bug 876834 - Do not accept sampling rates which we won't be able to handle when creating an OfflineAudioContext; r=roc 2013-05-29 00:10:52 -04:00
Zachary Easterbrook
dfb8523493 Bug 875409 - Replace nsINode::Trace() with nsWrapperCache::TraceWrapper(). r=mccr8 2013-05-28 16:58:29 -07:00
Jeff Gilbert
bce7314c4b Backout 779a5cfb5395 for burning 2013-05-28 16:41:10 -07:00
Jeff Gilbert
970d0778e4 Bug 874929 - Check whether GLES2 platforms support OES_standard_derivatives. - r=bjacob 2013-05-28 16:13:37 -07: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
Ryan VanderMeulen
24eca4433d Merge m-c to inbound. 2013-05-28 15:55:17 -04:00
Ehsan Akhgari
cd7829fd08 Test case for bug 876249 2013-05-28 14:43:35 -04:00
Andrea Marchesini
23835ca8cd Bug 872430 - Timeout between when the media is paused and when the wakelock is released. r=jlebar 2013-05-28 13:30:17 -04:00
Garrett Robinson
fada4dd76a Bug 858836 - CSP inline style blocking doesn't work in the Firefox OS emulator. r=bz, r=imelven 2013-05-28 13:29:34 -04:00
Chris Lord
4937a5e234 Bug 803299 - Replace black.png with black.html for webgl-color-alpha-test. r=jrmuizel
webgl-color-alpha-test fails to render the image correctly since switching on
24-bit rendering, presumably due to async image decoding. Instead, just replace
the pure black 256^2 image with a page that renders the same using a div.
2013-05-28 18:50:17 +01:00
Ms2ger
c9bfa03ce9 Bug 876282 - Add unprefixed cancelAnimationFrame; r=bz
--HG--
rename : content/base/test/test_bug647518.html => content/base/test/test_bug876282.html
2013-05-28 19:31:31 +02:00
Mats Palmgren
f563b37b96 Bug 871099. r=bzbarsky 2013-05-28 03:00:08 +00:00
Ehsan Akhgari
6f26d6a634 Bug 876252 - Stop the AudioBufferSourceNode if the offset is no longer valid after setting a new buffer more effectively; r=roc
Calling Stop() here is not quite enough, because web content might call stop() again
with a non-zero argument, which overrides what we do here.
2013-05-27 20:17:24 -04:00
Ed Morley
e0aa66bdcf Backed out changeset 5801b2855c33 (bug 803299) 2013-05-28 14:45:22 +01:00
Chris Lord
e6ebcf0f54 Bug 803299 - Replace black.png with black.html for webgl-color-alpha-test. r=jrmuizel
webgl-color-alpha-test fails to render the image correctly since switching on
24-bit rendering, presumably due to async image decoding. Instead, just replace
the pure black 256^2 image with a page that renders the same using a div.
2013-05-28 14:22:13 +01:00
Cameron McCormack
fa42436c46 Bug 876545 - Make test_input_santization.html output a lot less when it passes. r=mounir 2013-05-28 22:24:34 +10:00
Ehsan Akhgari
d923161800 Bug 865256 - Part 1: Implement the DOM bindings for WaveTable; r=roc 2013-05-28 07:19:07 -04:00
Andrew McCreight
d1266ee9b7 Bug 874583 - Use NS_IMPL_CYCLE_COLLECTION_INHERITED_n in more places. r=smaug 2013-05-21 16:23:53 -07:00
Phil Ringnalda
4ddeff37d5 Merge m-c to a CLOSED TREE m-i 2013-05-27 11:46:31 -07:00