Commit Graph

30539 Commits

Author SHA1 Message Date
Phil Ringnalda
55d1fc18bf Bug 590415 - Mark 368020-1.html as random on WinXP, since we've clearly made it so 2011-08-14 14:47:36 -07:00
Daniel Holbert
af38a5be63 Bug 678768: Fix out-of-order init list for nsFontFace constructor. r=jfkthame 2011-08-14 10:39:56 -07:00
L. David Baron
b3f49b92ba Remove the multiple-parameter versions of nsRenderingContext::SetFont. (Bug 678671, patch 5) r=roc
This changes the only remaining callers (in nsMathMLChar) to pass the
correct language, which they were not previously doing, which should
improve the correctness of font selection and also reduce the number of
unique font metrics objects requested (which helps nsFontCache
effectiveness).  Those callers, however, remain the odd font users
within all of layout.
2011-08-14 10:08:04 -07:00
L. David Baron
fa63f6d2c9 Remove nsPresContext::GetMetricsFor, which was always a bad idea since it uses the generally-incorrect language-from-charset. (Bug 678671, patch 4) r=roc
This fixes the one remaining caller (the debugging code to visually
display reflow counts!) to just pass a null language, since it's just
debugging code.
2011-08-14 10:08:04 -07:00
L. David Baron
b47daece8e Make nsRuleNode's use of font metrics for ch and ex units pass the correct language. (Bug 678671, patch 3) r=roc
This makes these users (which are exceptions within layout, although
low-level enough that it won't matter for font inflation work) call
through to GetMetricsFor explicitly with the correct language, rather
than using the broken nsPresContext::GetMetricsFor and its
charset-detected language.

This improves the correctness of our behavior for 'ch' and 'ex' CSS
units when the font selection (or defaults) are language-dependent.  It
should also reduce the number of unique sets of font metrics requested
(which helps nsFontCache effectiveness).
2011-08-14 10:08:04 -07:00
L. David Baron
84b8b6bf64 Replace all uses of nsLayoutUtils::SetFontFromStyle with GetFontMetricsForFrame or GetFontMetricsForStyleContext and remove SetFontFromStyle. (Bug 678671, patch 2) r=roc
There was nothing wrong with SetFontFromStyle, except that it's just one
more API to think about (and one more API to audit and modify for font
inflation work to happen in bug 627842).
2011-08-14 10:08:04 -07:00
L. David Baron
d2b6891283 Switch lots of callers to using nsLayoutUtils::GetFontMetricsForFrame and nsLayoutUtils::GetFontMetricsForStyleContext. (Bug 678671, patch 1) r=roc
This changes a number of callers that were previously bypassing the use
of the correct language (with either no language or the charset-detected
language on the pres context via nsPresContext::GetMetricsFor) and/or
the correct user font set to pass the correct values, which should
improve the correctness of the behavior of whatever they were using the
fonts for, and also reduce the number of unique sets of font metrics
requested (which helps nsFontCache effectiveness).
2011-08-14 10:08:04 -07:00
Jonathan Hage
d68cbdf102 Bug 669713 - Increment the scriptlevel of the over child in <munderover accent=true> when rendered as a supscript; r=karlt 2011-08-14 11:17:22 +02:00
Bernd
7aa1042321 bug 675490 - push nonplaced tfoots and mark them as nonrepeating r=bz 2011-08-13 18:37:43 +02:00
Bernd
d20e85e464 bug 678447 - prevent splitting of tables inside columnsets during printing r=roc 2011-08-13 18:37:43 +02:00
Jonathan Hage
c9d5ac8edc Bug 668204 - Merge nsMathMLmunderFrame and nsMathMLmoverFrame into nsMathMLmunderoverFrame. r=karlt 2011-08-13 17:22:12 +02:00
Ms2ger
f1ce0d69e4 Merge m-c to m-i 2011-08-13 14:47:03 +02:00
Malini Das
132054c82e Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- new tests. r=jmaher, a=test-only 2011-08-12 12:21:44 -04:00
Malini Das
c20b68638f Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- plain tests 2/2. r=jmaher, a=test-only 2011-08-12 12:21:44 -04:00
Malini Das
91a27b5ddc Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- update tests. r=jmaher, a=test-only 2011-08-12 12:21:37 -04:00
Malini Das
ea71db787e Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- chrome. r=jmaher, a=test-only 2011-08-12 12:21:36 -04:00
Malini Das
60cd440a07 Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- harness. r=jmaher, a=test-only 2011-08-12 12:21:35 -04:00
Matt Brubeck
981b18c20b Merge the last green changeset from mozilla-inbound to mozilla-central 2011-08-12 06:41:55 -07:00
Boris Zbarsky
e4fa979c53 Bug 670467. Correctly reresolve style on non-first continuations and non-first parts of {ib} splits even when we're restyling both an ancestor of the element and the element itself. r=dbaron 2011-08-11 23:52:21 -04:00
Nicholas Nethercote
4947a42a40 Bug 678422 - Avoid wasting half of nsPresArena's allocated memory due to clownshoes. r=roc. 2011-08-11 18:53:29 -07:00
Ms2ger
3fea5b3901 Bug 677101, part c - Reduce nsIDOMText.h inclusions; r=volkmar 2011-08-11 15:29:58 +02:00
Ms2ger
4ca9cbc0f3 Bug 677101, part b - Remove nsContentUtils.h includes from headers; r=volkmar 2011-08-11 15:29:50 +02:00
Mounir Lamouri
43d40b8987 Merging mozilla-inbound into mozilla-central. 2011-08-11 13:08:47 +02:00
Rafael Ávila de Espíndola
278aa50e0d Bug 678222 - Fix build with clang and c++0x; r=roc
Change AppUnitsPerDevPixel to return a PRUint32. It should never return
negative values and it is used in initializer lists that expect unsigned
values, which is not valid c++0x.
I have also change the member variables to be unsigned and converted
a sentinel value to use 0 instead of -1. UINT32_MAX should work fine too
if you like it better.
2011-08-11 19:19:03 -04:00
Robert O'Callahan
01293879f0 Bug 386444. Pass the correct current scroll position as the default value to GetCoordAttribute. r=dbaron
--HG--
extra : rebase_source : f0f11de318a050a1121669daaa5056089a5258b7
2011-08-12 10:44:29 +12:00
Kyle Huey
0dbd15635f Merge b-s to m-c. 2011-08-10 11:12:30 -04:00
Mounir Lamouri
635e1ee55e Bug 677506 - Enable the DOM Memory Reporter. r=jst 2011-08-11 00:54:50 +02:00
Oleg Romashin
ed5cf85a6d Bug 668698 - Fixed position layers has been broken in 637852 r=stechz 2011-07-28 14:18:00 -04:00
L. David Baron
6f2de80bf9 Add reftest for bug 676538 (text-decoration offsets on block, child inline, and grandchild inline). 2011-08-10 12:44:17 -07:00
Vitor Menezes
cc47ff48ae Bug 676538: Fix regression that caused text-decorations on inline *child* of block to draw at the offset for the block rather than the inline. r=dbaron
The FrameProperty representing baseline is set when a block defines
text-decorations and has vertically-aligned children, but we were
retrieving it whether the block or the vertically-aligned frame itself
defined the decorations.  As a result, we "undo" the frame offset to get
the baseline from the child in that case.
2011-08-10 12:44:17 -07:00
arno renevier
56a37f401e Bug 338427 - Spellchecker should respect the langi attribute; r=ehsan 2011-08-12 15:12:45 -04:00
L. David Baron
c6499ed3ce Media queries spec defines <resolution> values as allowing <number>, not just <integer>. (Bug 677642) r=bzbarsky 2011-08-11 14:25:13 -07:00
Ehsan Akhgari
523ebb7851 Bug 677661 - Remove nsTPtrArray and add a SafeElementAt(index_type) API to nsTArray when it's instantiated with a pointer type; r=sicking 2011-08-10 01:36:00 -04:00
Josh Matthews
0fa1d0b721 Bug 675669 - Ignore paint suppression for hit testing. r=ehsan 2011-08-08 19:05:50 -04:00
Jeff Walden
96c6f4671c Add CSS test suite metadata to the vector background-size tests. r=metadata and please DONTBUILD
--HG--
extra : rebase_source : 7cecdb07c565901cb3759f4b2ae09a139bdae262
2011-08-09 13:54:32 -07:00
Chris Jones
2bffd8531c Bug 648484, part E: Hook d3d9 shadow layers up to new system. r=BenWa 2011-07-06 13:29:27 -04:00
Chris Jones
9edb022892 Bug 648484, part D: Allow PuppetWidgets to create D3D10 layer managers (for the time being). r=roc 2011-08-09 12:38:27 -07:00
Chris Jones
adc6292af8 Bug 648484, parts 3, 3.1, and 3.2: Allow passing a "backend hint" to GetLayerManager() to request a non-default layer manager backend. Deal with failure to hook up shadow layers. sr=roc 2011-08-09 12:38:26 -07:00
Chris Jones
f439589647 Bug 648484, part 0: Fix test-ipcbrowser. 2011-08-09 12:38:26 -07:00
Mats Palmgren
f70d28ee47 Bug 663375 - When text color is darkened, darken text-decoration color too. r=dbaron 2011-08-09 17:14:36 +02:00
Frédéric Wang
a3ea06bbc7 Bug 601436 - mtable 'align' attribute: negative rownumbers are wrongly interpreted. r=roc 2011-08-07 01:29:00 -04:00
David Zbarsky
feef9bcb83 Bug 672536 - Merge nsISelection2 into nsISelectionPrivate r=smaug 2011-08-07 16:17:00 -04:00
David Zbarsky
110e54925e Bug 672536 - Merge nsISelection3 into nsISelection r=smaug 2011-08-07 16:18:00 -04:00
Justin Wood
bc9a7d1530 Merge from m-c 2011-08-09 06:31:01 -04:00
Jonathan Kew
65ca3acc2e bug 665360 - hold reference to font family from loader. r=jdaggett 2011-08-09 08:51:46 +01:00
Jan Varga
a298beaa2e Bug 617528 Part 2 - Core implementation r=smaug
--HG--
rename : content/html/content/test/test_bug418756.html => content/html/content/test/test_checked.html
2011-08-08 19:31:32 +02:00
Ms2ger
07b3728d4c Bug 677101 - Move nsAutoLayoutPhase to its own header; r=tn 2011-08-08 17:14:34 +02:00
Ms2ger
b5d390cce8 Bug 677107 - Sprinkle IsHTML(nsIAtom*) pixie dust over select-option-optgroup code; r=bz 2011-08-08 17:14:33 +02:00
Kyle Huey
15fbe145d9 Merge m-i to m-c. 2011-08-08 08:18:51 -04:00
Alexander Surkov
65832d0636 Bug 665335 - Don't trigger PresShellActivated when presshell is not activated, r=tbsaunde, roc 2011-08-08 15:57:45 +09:00