Commit Graph

257459 Commits

Author SHA1 Message Date
L. David Baron
b5f3e65d17 When font size inflation is enabled, horizontal resizes of blocks must cause a full dirty reflow. (Bug 627842, patch 5) r=bzbarsky
This change is sufficient because the places that set mHResize to true
other than InitResizeFlags and nsFrame::BoxReflow aren't a problem
because they're in table code whose goal is to force the reflow to
propagate down to the cell, and once we reach the cell we'll hit the
code we've added here.
2011-11-15 17:02:00 +13:00
L. David Baron
c346e00fe2 Implement computation of font size inflation for improved readibility of text on mobile devices. (Bug 627842, patch 4) r=roc
This implements computation of the font size inflation factor for a
given frame.  Since Fennec does layout using a fake viewport whose width
represents a typical viewport width on the desktop and then allows users
to pan and zoom, fonts are not always readable even when zoomed.  The
goal of this font size inflation is to ensure that when a block of text
is zoomed to fill the width of the device, the fonts are large enough to
read.  We do this by increasing the font sizes in the page.  Since this
increase is a function of the width of the text's container, the
inflation must be performed (in later patches in this series) after
style data computation and after intrinsic width computation.

The font size inflation factor does not vary *within* a block.

Since sync uses a whitelist (the services.sync.prefs.sync.* prefs) for
preferences (i.e., preferences are not synced by default), this patch
does not make any changes relating to sync, since we do not want the
inflation preferences synced across devices (since preferred settings
are likely to be device-specific).
2011-11-15 17:02:00 +13:00
L. David Baron
ae36de8162 Don't construct cell reflow states with a row group reflow state as their parent; instead, always link in a table row reflow state as appropriate. (Bug 627842, patch 3.875) r=roc
Fixes assertion on layout/reftests/bugs/409084-1a.html once the rest
of the inflation patches land.
2011-11-15 17:02:00 +13:00
L. David Baron
f3569b9305 Don't duplicate frame state bits, so that we can assert about NS_FRAME_IN_REFLOW during painting. (Bug 627842, patch 3.5) r=roc 2011-11-15 17:02:00 +13:00
L. David Baron
01956a72c7 When reflowing a frame (such as text controls) that jumps from HTML layout into XUL layout and then jumps back to HTML on the child frame, link the parent reflow state chain correctly. (Bug 627842, patch 3) r=roc 2011-11-15 17:02:00 +13:00
L. David Baron
4aff8b6cdf Set an NS_FRAME_IN_CONSTRAINED_HEIGHT state bit on frames that are in a constrained space. (Bug 627842, patch 2) r=roc 2011-11-15 17:02:00 +13:00
L. David Baron
34e1635026 Add support for -moz-text-size-adjust CSS property. (Bug 627842, patch 1) r=bzbarsky
This property is analogous to the -webkit-text-size-adjust property (and
*maybe* also the -ms-text-size-adjust property).  It allows pages to opt
out of text size adjustments performed on mobile devices by specifying
-moz-text-size-adjust: none.
2011-11-15 17:02:00 +13:00
Scott Johnson
25e07cffd0 Bug 702503 - Remove PR_TRUE/PR_FALSE added with bug 666446 and replace with bool values. r=dholbert
--HG--
extra : rebase_source : 6156ccbce49e7eeeb38488802a6f100d419b8335
2011-11-15 15:45:43 +13:00
Scott Johnson
23dffd4efe Bug 682077 - Remove nsITreeImageListener interface to make inheritance hierarchy more clear. r=neil, sr=bz
--HG--
extra : rebase_source : 37becb5bb6a987fafb90a340284d284614dc64ae
2011-11-15 10:59:19 +13:00
Ed Morley
273b645743 Merge mozilla-central and mozilla-inbound 2011-11-15 02:58:32 +00:00
Chris Pearce
bbc6317677 Bug 701259 - Restrict BasicPlanarYCbCrImage scaling destination size. r=roc 2011-11-15 09:35:46 +13:00
Chris Pearce
0d31b32440 Bug 700764 - ESC keypress in subdoc of full-screen doc should cause full-screen exit. r=smaug 2011-11-15 09:33:37 +13:00
Tom Schuster
b29f066f78 Bug 697279 - Properly disable some E4X opcodes in strict mode. r=brendan 2011-11-14 20:43:33 +01:00
Bill McCloskey
2703feda57 Bug 701682 - Avoid write barrier when slowifying an array (r=bhackett) 2011-11-14 11:10:22 -08:00
Bill McCloskey
484d43c890 Bug 701761 - Purge regexps only when regexp_trace is called for GC (r=cdleary) 2011-11-14 11:02:23 -08:00
Ed Morley
5db488079f Backout 15cf68a3c027, 2f403e4c42c8, 61534874aed7, 1cb3705557d9 & 03970d1fc919 (bug 661746) for Win PGO build failures; a=bz 2011-11-14 18:10:22 +00:00
Dave Townsend
5632a10a76 Bug 697246: Defer creating the extensions database until it is actually necessary. r=Unfocused 2011-11-14 10:03:06 -08:00
Olli Pettay
2a671d4eaf Bug 702240 - [CC] Optimize sizeof nsPurpleBuffer::Block, r=mccr8 2011-11-14 18:10:06 +02:00
Ed Morley
136539d47e Merge mozilla-central and mozilla-inbound 2011-11-14 01:45:39 +00:00
Oleg Romashin
d314e75872 Bug 700405 - CAIRO_HAS_PNG_FUNCTIONS defined for moz_cairo_tree but cairo-png not compiled. r=jrmuizel 2011-11-14 14:24:34 +13:00
Scott Johnson
29b1da6ea4 Bug 702093 - Add debugging information to test_bullet_animation mochitest to assist in conquering bug 702093. r=dholbert 2011-11-14 14:19:32 +13:00
John Daggett
7ef98310fa Bug 701262. Set up reftest for redirection on font load. r=joedrew 2011-11-14 12:51:35 +13:00
Daniel Holbert
5f2e0f5177 Bug 700895 patch 3: Apply nsDataDocumentContentPolicy::ShouldLoad()'s external-resource-doc restrictions to image documents, too. r=roc 2011-11-14 11:21:41 +13:00
Brian O'Keefe
e470d8dd0c Bug 650720 - Fix the JPEG and BMP encoders to composite onto black, instead of white. r=joe 2011-11-14 11:21:19 +13:00
Chris Pearce
7297addb6e Bug 701618 - Remove use of min-width to prevent assertion when entering DOM full-screen mode. r=dao 2011-11-14 09:53:13 +13:00
Michael Wu
32311e3dd6 Follow up to bug 701875 - Fix red on windows fennec builds by always defining the omnijar name, r=bustage 2011-11-13 11:31:48 -08:00
Gian-Carlo Pascutto
2e44b717ed Bug 698326 - Add memory reporter for the url-classifier. r=njn,jlebar 2011-11-13 11:25:48 +01:00
Jonathan Watt
83b0c897d2 Bug 702283 - Remove dead code RegionMark (left behind by bug 614732 attachment 563617 (changeset 8ddd09649e13)) since now we use GetMarkBBoxContribution (which doesn't need to update the covered regions of a mark's content). r=longsonr. 2011-11-14 16:42:39 +00:00
Henri Sivonen
0f6c2ebd98 Bug 693399 - r=bzbarsky. 2011-11-14 10:50:15 +02:00
Makoto Kato
a9cf72330b Bug 693227 - Remove nsIWindowsShellService.unreadMailCount. r=jimm 2011-11-14 05:56:03 +01:00
Robert O'Callahan
587cc2c570 Bug 701528. Fix component alpha shader so correct destination alpha values are produced. r=bas 2011-11-14 17:42:08 +13:00
Joe Drew
36c2db467c Bug 685767 - Factor blurring out into its own class, and use it from gfxAlphaBoxBlur. r=mattwoodrow 2011-11-14 17:29:28 +13:00
Joe Drew
1bb0d43d4b Bug 685326 - Move Round{,In,Out} from gfxRect to BaseRect, and make them no-ops on IntRect. r=Bas 2011-11-14 17:29:14 +13:00
Joe Drew
22c35b1a70 Bug 685322 - Create explicit conversion constructors for Rect and Point taking IntRect and IntPoint. r=roc 2011-11-14 17:29:01 +13:00
Brian Birtles
af1b95f9bb Bug 697640 - Ignore self-dependent end instance times when determining if an open-ended interval is ok; r=dholbert 2011-11-14 16:58:30 +13:00
Brian Birtles
28138b6333 Bug 690994 - Check for self-dependent times when there are coincident zero-duration intervals; r=dholbert 2011-11-14 16:58:30 +13:00
David Zbarsky
1475029a2d Bug 661746 - Part 5: Avoid creating atoms during selector matching. r=bzbarsky 2011-11-14 16:30:28 +13:00
David Zbarsky
3cf667fd11 Bug 661746 - Part 4: use const nsIDocument in selector matching. r=bzbarsky 2011-11-14 16:30:22 +13:00
David Zbarsky
1e9e43f12d Bug 661746 - Part 3: Use const selectors during selector matching. r=bzbarsky 2011-11-14 16:30:16 +13:00
David Zbarsky
87c926f7b6 Bug 661746 - Part 2: Make selector matching work with const elements. r=bzbarsky 2011-11-14 16:30:08 +13:00
David Zbarsky
dd2d24bcbf Bug 661746 - Part 1: Delay setting slow selector flags during selector matching to avoid mutating Elements. r=bzbarsky 2011-11-14 16:29:56 +13:00
David Zbarsky
52ccc4cb61 Bug 660959 - Update link state less lazily r=bz 2011-11-14 16:24:41 +13:00
Markus Stange
4dbb784be5 Bug 691662 - Remove unnecessary condition which doesn't work with Growl 1.3. r=sdwilsh 2011-11-13 09:03:23 +01:00
Markus Stange
9284729c41 Bug 691662 - Update Growl license. r=gerv 2011-11-13 09:03:11 +01:00
Markus Stange
fe403fad4e Bug 691662 - Update shipped Growl framework to 1.2.2 for compatibility with Growl 1.3. r=smichaud 2011-11-13 09:02:52 +01:00
Michael Wu
6765bd5693 Bug 701875 - Rename omni.jar to omni.ja, r=ted 2011-11-12 19:58:19 -08:00
Ed Morley
6c23d7d46c Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-12 12:43:56 +00:00
Michael Wu
2d26cc32f0 Bug 691847 - Always check bytecode version, r=Waldo 2011-11-11 19:15:19 -08:00
Matt Brubeck
65a5f3ea90 Back out 5ddda2b25e28 and 3abfdb807a4f (bug 699258) for crashes in WinXP tests 2011-11-11 17:49:47 -08:00
Steven Michaud
9a9b627fcd Bug 700835 - Restore plugin caching to work around bad crash bug in latest Apple Java updates. r=josh 2011-11-11 19:10:31 -06:00