Commit Graph

80932 Commits

Author SHA1 Message Date
L. David Baron
96482a27d1 Add inflation parameter to nsLayoutUtils::GetFontMetricsFor* methods. (Bug 627842, patch 6) r=roc 2011-11-23 18:48:23 -08:00
L. David Baron
b5db9e038b 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-23 18:48:23 -08:00
L. David Baron
3917f9c2e1 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-23 18:48:23 -08:00
L. David Baron
1fc147e17f 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-23 18:48:23 -08:00
L. David Baron
3305bb2f9c 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-23 18:48:23 -08:00
L. David Baron
51ec63eaad 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-23 18:48:23 -08:00
L. David Baron
532d22e477 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-23 18:48:23 -08:00
L. David Baron
98751dedcb 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-23 18:48:23 -08:00
Doug Turner
dfdfd8ebfb Bug 705020 - drop enable-js-diagnostics flag from nightly mozconfig. r=mbrubeck 2011-11-23 17:08:42 -08:00
Doug Turner
dc36e628ff Bug 704898 - Reenable elfhack. r=mbrubeck
--HG--
extra : rebase_source : 7f92377a1786fb9b920e4c6ca4a6c8b18ae3a742
2011-11-23 15:41:41 -08:00
Jared Wein
5bec4b60a8 Bug 470628 - Part 3: Update tests to work with the new full screen button. r=dolske 2011-11-23 16:07:41 -05:00
Jared Wein
d193056ead Bug 470628 - Part 2: Full screen button graphic. r=dolske 2011-11-23 14:42:25 -05:00
Jared Wein
23e0f6924e Bug 470628 - Part 1: CSS, JS, XBL, and locale changes (with fall-back support). r=dolske ui-r=shorlander f=fryn 2011-11-23 14:42:18 -05:00
Sriram Ramasubramanian
9e30346ac5 Bug 702264: Patch 2: Honeycomb/ICS needs action bar support [r=mfinkle] 2011-11-23 11:04:47 -08:00
Lucas Rocha
9e70bdc431 Bug 701374 - Add native method to check creation of fixup URIs (r=dougt)
--HG--
extra : rebase_source : fd623dc1db9b110f8f0085ca0377c29697331093
2011-11-23 09:48:00 -08:00
Lucas Rocha
33ff7db957 Bug 701374 - Add macros for wrappers with return value (r=dougt)
--HG--
extra : rebase_source : 9fbc2c264d08fea75542471370db6e228dba6226
2011-11-23 09:46:26 -08:00
Matt Brubeck
80e9568ebb Merge mozilla-central and mozilla-inbound 2011-11-23 10:08:26 -08:00
Oleg Romashin
9d0c484898 Bug 703945 - blank screen after rotate on every site. r=mbrubeck 2011-11-23 08:30:40 -08:00
David Anderson
a8f0277f0d Initial removal in bug 698201 did not apply correctly (leftover r=dmandelin). 2011-11-23 09:50:56 -05:00
Kyle Huey
c54e849e3b Bug 692635: Transaction abort events should bubble. r=sicking 2011-11-23 09:15:15 -05:00
Kyle Huey
7a3cbb76a9 Bug 702809: Allow creating indexes with empty keyPaths. r=sicking 2011-11-23 09:15:15 -05:00
Andrew McCreight
176c135107 Bug 704207 - HeapValue::gcKind should return JSGCTraceKind. r=billm 2011-11-23 09:14:04 -05:00
Rafael Ávila de Espíndola
86f09e0f53 Bug 676607 - Update the mozconfig files to point to the new gcc. r=catlee. 2011-11-23 09:07:32 -05:00
Alexander Surkov
901e4e3741 Bug 703198 - JAWS doesn't announce combobox navigation in collapsed combobox, perf version, r=marcoz 2011-11-23 20:50:33 +08:00
Anthony Ricaud
db0836fb8d Bug 689924 - Change Inspect shortcut to Cmd+Opt+I; r=dao 2011-11-23 08:46:26 -04:00
Ed Morley
2da5c66f5b Merge mozilla-central and mozilla-inbound 2011-11-23 12:12:23 +00:00
Masatoshi Kimura
7ad0f2815b Bug 704284 - Crashtest, r=hsivonen 2011-11-23 10:22:41 +02:00
Sriram Ramasubramanian
021960d0d0 Bug 702264: Patch 1: Fixing the styles and themes for ICS [r=mfinkle] 2011-11-23 00:01:38 -08:00
Doug Turner
fc6550a16b Merge mozilla-central 0ea84b44a7f1 2011-11-23 12:29:40 -08:00
Chris Lord
9fedb8cff5 Bug 703141 - Remove bogus viewport reply tracking. r=kats
If we sent a viewport to Gecko that causes no change in what's drawn on the
screen, we wouldn't receive a reply and this would cause us to deadlock until
a redraw happens for some other reason.

As viewport changes are throttled at max 1 per 350ms, just remove this check.
After IRC discussion, it was deemed unnecessary.
2011-11-23 20:04:05 +00:00
Chris Lord
87c7f83f90 Bug 703141 - Restore usage of the redraw hint. r=kats
Earlier patches mistakenly removed the redraw hint. This restores it, and
alters its behaviour to work correctly with regards to the viewport. This
should help mitigate some checker-boarding and performance issues when panning
and zooming.
2011-11-23 19:08:20 +00:00
Chris Lord
e1f427eb2e Bug 703141 - Fix plugin positioning and sizing. r=kats, pcwalton
This fixes plugin position/size in the new displayport-viewport scheme.
2011-11-23 19:08:11 +00:00
Chris Lord
0d4094f225 Bug 703141 - Try to draw aligned to the pixel grid. r=pcwalton
To stop bad-looking text/fuzzy images, try to draw aligned to the pixel grid.
2011-11-23 19:07:51 +00:00
Chris Lord
bf1ae74962 Bug 703141 - Reinstate zooming and add CSS zooming after viewport change. r=kats
This patch reinstates pinch-zooming and adds CSS re-scaling so that after
zooming, the page is rendered at the scaled resolution and you get clear text.

--HG--
rename : mobile/android/base/gfx/IntSize.java => mobile/android/base/gfx/FloatSize.java
2011-11-23 19:07:47 +00:00
Chris Lord
bfee9933b5 Bug 703141 - Refactor around the idea of a viewport and displayport. r=kats
This patch refactors the code to make some of the value names and ownership
clearer, and to add the idea of a 'viewport' within a 'displayport'. The
displayport is the area of the page which is visible to the underlying buffer
and the viewport is the area of the page which is visible through the
application window.

--HG--
rename : mobile/android/base/ui/ViewportController.java => mobile/android/base/gfx/ViewportMetrics.java
2011-11-23 19:07:29 +00:00
Doug Turner
94fd52e120 Bug 689713 - Warm up the DNS cache in Java when launching with a URL intent. r=blassey 2011-11-23 00:43:08 -08:00
Patrick Walton
731b3a3fc8 Bug 699303 - Kinetic panning need to stop more sharply. r=dougt 2011-11-22 22:01:45 -08:00
Dave Townsend
96397f27c7 Bug 699175: The current theme is not active when updating Firefox and the add-ons database schema changes. r=Unfocused 2011-11-22 18:28:27 -08:00
Myk Melez
c9a90a31a4 no bug - update revision of Add-on SDK being tested; test-only 2011-11-22 16:28:04 -08:00
Doug Turner
f18b339bad Bug 694325 - Backout of bfb56029f4bd due to crashes on android tablets. r=sworkman 2011-11-22 14:58:25 -08:00
Ed Morley
ee862cf993 Merge mozilla-central and mozilla-inbound 2011-11-22 14:57:02 +00:00
Rob Campbell
a41b0d26ee merge fx-team to m-c 2011-11-22 10:29:39 -04:00
Masayuki Nakano
006c23c9fe Bug 704049 Restore radio button state when click event is prevented default and there was no checked radio button r=smaug 2011-11-22 21:38:37 +09:00
Ed Morley
3cb05bb8cc Backout 7634808d94af (bug 703660) for Linux64 PGO build failures; a=khuey 2011-11-22 11:54:50 +00:00
Ed Morley
63ede47593 Backout 8ceaedf06a57, f67977dea071 & 3fcaee9224ce (bug 704230) since bug 686466 does the same thing for all platforms; a=glandium 2011-11-22 11:44:41 +00:00
Henri Sivonen
27d8f9b35e Bug 704284 - Null check mResponseXML in nsXMLHttpRequest::IsWaitingForHTMLCharset(). r=smaug. 2011-11-22 13:23:46 +02:00
Mounir Lamouri
a526817e17 Bug 703610 - Return level=1.0 when the battery is full (Battery API UPower backend). r=cjones 2011-11-22 10:36:22 +01:00
Mounir Lamouri
86c382cd4d Bug 702858 - Do not stop listening to battery changes when in the background on Android. r=cjones 2011-11-22 10:35:53 +01:00
Henri Sivonen
483054770c Bug 704034 - Replace old pre-interned looping attributes with a single loop attribute in the HTML parser. rs=smaug. 2011-11-22 10:29:14 +02:00
Mike Hommey
c124580b04 Bug 696555 - Move update.locale into omni.jar. r=rstrong 2011-11-22 08:05:59 +01:00