Commit Graph

252494 Commits

Author SHA1 Message Date
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
Geoff Lankow
a9aaf9d403 Bug 669390 - Update mobile settings to use type="menulist"; r=mfinkle 2011-08-14 16:06:01 +12:00
Geoff Lankow
148d191339 Bug 669390 - Allow setting a preference value from the menulist inline preferences; r=Unfocused 2011-08-14 16:05:24 +12:00
Geoff Lankow
51833c2046 Bug 669345 - Add support for radio button elements for inline preferences; r=Unfocused 2011-08-14 15:53:49 +12: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
Steffen Wilberg
ea8e34f343 Bug 678660: Hide about:newaddon from about:about, because it closes itself. r=rstrong 2011-08-14 10:00:25 +02:00
Joshua Cranmer
08b5ebfce8 Bug 676857 - Make it an error if interfaces have too many methods.
The error is made at compile-time, and also causes an error if trying to make a
stub like this. Finally, it also refuses to load such an interface.

These restrictions only apply to script-implementable interfaces.
2011-08-05 11:34:13 -07:00
Ehsan Akhgari
3aeab5a489 Merge mozilla-central and mozilla-inbound 2011-08-13 20:35:04 -04:00
Rob Campbell
5a56c6a415 merge fx-team to m-c 2011-08-13 11:21:59 -03:00
Jonathan Kew
a5c95a1ff0 bug 678181 - back out second part of bug 668813 (changeset 431a8297db1f) on suspicion of causing crashiness. r=backout 2011-08-13 13:34:56 +01:00
Kyle Huey
cd0d15ee27 Merge b-s to m-c. 2011-08-13 08:27:55 -04:00
ffxbld
c658122995 Automated blocklist update from host mv-moz2-linux-ix-slave17 2011-08-13 02:45:07 -07:00
Dave Townsend
03dfbd904f Backout changeset d980e7a3aa49 from bug 677424 due to test failures. 2011-08-12 21:59:55 -07:00
Dave Townsend
8e0e038bd5 Bug 596343: Users should have exclusive control over selecting their add-ons. r=Unfocused 2011-08-12 16:55:34 -07:00
Dave Townsend
f3ee939112 Backed out changeset 6d6e8fecaf37 from bug 596343 due to build failures 2011-08-12 15:47:34 -07:00
Dave Townsend
062e9d4868 Bug 596343: Users should have exclusive control over selecting their add-ons. r=Unfocused 2011-08-12 13:45:45 -07:00
Dave Townsend
308b60ecc8 Bug 476430: Disable third-party add-ons by default and offer them to the user. r=Unfocused, r=robstrong 2011-08-12 13:50:47 -07:00
Robert Strong
5afb60e454 Bug 677674 - absolute path is required to build test pilot. r=dtownsend 2011-08-12 13:39:47 -07:00
Jeff Muizelaar
c279653bd0 Bug 664930 - Handle the case where an edge lies at the left most coordinate and initialize the rest of the data; r=bjacob 2011-08-12 15:18:06 -04:00
Mark Finkle
3ee8cbe0d0 Bug 639794 - Opening a webpage from an external app should hide sidebars and panels [r=mbrubeck] 2011-08-13 20:11:32 -04:00
Jason Orendorff
ee1e3d9a60 Merge jsdbg2 to mozilla-inbound. See bug 672829. 2011-08-13 13:29:18 -05: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
Jason Orendorff
b5b1e0e9d5 Mark test regress-677589.js as shell-only, since it tests the shell-only clone() function. no_r=me. 2011-08-13 07:05:43 -05:00
Jason Orendorff
a07d905bff Fix GCC bogus opt-only warning in jsoptparse.cpp. no_r=me. 2011-08-13 07:00:33 -05:00
Jason Orendorff
6dbdb969c7 Fix opt-only linker error due to missing #include (probably due to a bad merge). r=try_server_red. 2011-08-13 06:57:35 -05:00
Robert Sayre
bc8306cf97 Bug 678656 - fix some warnings in js/src/jsemit.cpp. r=dmandelin. 2011-08-13 06:54:16 -05:00
Jason Orendorff
ed19f80f10 Merge from mozilla-central to jsdbg2. 2011-08-12 18:18:59 -05:00
Jason Orendorff
0062d59009 Address review comment from bhackett (bug 672829 comment 84). 2011-08-12 17:22:43 -05:00
Andrew McCreight
d870927581 Bug 677358 - change GC+CC button to a CC button in about:memory. r=njn 2011-08-12 11:48:18 -07:00
Jonathan Hage
c9d5ac8edc Bug 668204 - Merge nsMathMLmunderFrame and nsMathMLmoverFrame into nsMathMLmunderoverFrame. r=karlt 2011-08-13 17:22:12 +02:00
Markus Stange
c8586cbbf2 Bug 678481 - Send a mouse move event after switiching into or out of drawintitlebar mode so that Gecko knows about the changed mouse position relative to the Gecko content area. r=josh 2011-08-13 16:25:39 +02:00
Markus Stange
15d2e2f7bc Bug 678002 / bug 678184 - Don't call +[NSGraphicsContext setCurrentContext:] when drawing window contents into the titlebar because it's unnecessary and results in erratic behavior for unknown reasons. r=josh 2011-08-13 16:15:46 +02:00
Vidar Haarr
2e082405d2 Bug 232691 - Replace nsString emptyString; with EmptyString() in nsHTMLEditRules; r=ehsan 2011-08-13 14:59:48 +02:00
Ms2ger
f1ce0d69e4 Merge m-c to m-i 2011-08-13 14:47:03 +02:00
Phil Ringnalda
5bc15911a8 Back out c8f38fb18c6a (bug 673631) for breaking the Shark shell build 2011-08-12 19:24:22 -07:00
Paul Biggar
0fde035266 No bug: Fix comment where "new_array" should be "array_new" (rs=sfink). 2011-08-12 17:15:59 -07:00
Mark Finkle
81ddedfad5 Bug 677999 - Make home screen bookmark icons pretty [r=wjohnston] 2011-08-12 14:00:14 -04:00
Mark Finkle
2eaf36edd5 Bug 677975 - Exception [nsIShellService.createShortcut] @ BookmarkHelper.js :: <TOP_LEVEL> :: line 92 [r=wjohnston] 2011-08-12 14:00:12 -04:00
Kyle Huey
4bf1621dbc Bug 673742: Allow postMessage()ing File and FileLists between same-origin windows. r=sicking 2011-08-12 12:58:43 -04:00
Kyle Huey
19993c8e8d Backout Bug 650494 for causing a startup assertion/crash. 2011-08-12 12:58:33 -04:00
Kyle Huey
92fccd2a28 Backed out changeset b021d1f9f57d 2011-08-12 12:58:06 -04:00
Steven Michaud
6aa84bfb22 Bug 678423 - Conditionally define 10.7 symbols for 10.6 SDK and lower. r=bgirard 2011-08-12 11:48:29 -05: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
ee09d54d6f Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- plain 1/1. r=jmaher, a=test-only 2011-08-12 12:21:42 -04:00