Commit Graph

71240 Commits

Author SHA1 Message Date
Robert O'Callahan
fcf2510a5d Bug 637852. Part 6: Implement resolution scaling in FrameLayerBuilder. r=tnikkel
FrameLayerBuilder::BuildContainerLayerFor takes responsibility for resolution scaling. The ContainerParameters
passed in are added to any transform requested. Then we extract the scale part of the transform, round the scale
up to the nearest power of two if the transform may be actively animated (so we don't have to redraw layer contents
constantly), pass that scale down to be applied by each child and set the residual transform on the ContainerLayer.

For child layers built via BuildLayer, we just pass the requested scale factor in via the ContainerParameters.
If the returned layer is a ContainerLayer then BuildLayer is guaranteed to have already done necessary scaling.
If the returned layer is not a ContainerLayer then we apply the scale ourselves by adding the scale to the
child layer's transform.

For child ThebesLayers containing non-layer display items, we scale the drawing of those display items so that
the child ThebesLayers are simply larger or smaller (larger or smaller visible regions).

We have to scale all visible rects, clip rects etc that are in the coordinates of ThebesLayers or the parent
ContainerLayer. To keep things simple we do this whenever we convert from appunits to integer layer coordinates.

When a ThebesLayer's resolution changes we need to rerender the whole thing.

nsDisplayList::PaintForFrame needs to respect the presshell's resolution setting. We do that by building a layer tree
with a ContainerParameters requesting a scale up by the presshell resolution; once that layer tree is built, we
adjust the root layer transform to scale back down by the resolution.
2011-06-23 00:11:27 +12:00
Robert O'Callahan
93793566d0 Bug 637852: Part 5: Create ContainerParameters structure to carry resolution scale factors through layer creation. r=tnikkel
This patch shouldn't change any behavior. It just passes the ContainerParameters around, which will contain scale factors that should have been
applied when BuildLayer returns a ContainerLayer.

This patch also adds an aTransform parameter to BuildContainerLayerFor, which nsDisplayTransform uses to set the
transform for the ContainerLayer. This way BuildContainerLayerFor knows what the container's transform is going to be
before constructing the children, which in the next patch will let us construct the children with the right resolution.
2011-06-23 00:11:27 +12:00
Robert O'Callahan
3cbadba941 Bug 637852. Part 4: Add nsRegion::ScaleInverseRoundOut and nsRegion::ScaleToOutsidePixels APIs. r=joe 2011-06-23 00:11:27 +12:00
Robert O'Callahan
c58a20de4e Bug 637852. Part 3: Add nsPoint::ScaleToNearestPixels, nsRect::ScaleToNearestPixels, nsRect::ScaleToInsidePixels and nsRect::ScaleToOutsidePixels APIs. r=joe 2011-06-23 00:11:27 +12:00
Robert O'Callahan
06e6b72a58 Bug 637852. Part 2: Add BaseRect::ScaleInverseRoundOut API. r=joe 2011-06-23 00:11:27 +12:00
Robert O'Callahan
2685eb6583 Bug 637852. Part 1: Don't snap BasicThebesLayer effective transforms when we're not retaining layers. r=tnikkel
The ThebesLayer contents are going to be drawn through directly without retaining, so there's no point in snapping.
2011-06-23 00:11:27 +12:00
Mounir Lamouri
face2086d2 Bug 665612 - More cleanup around mInputData and IsSingleLineTextControl(). f=ehsan r=bz 2011-06-22 12:41:00 +02:00
Kai Liu
336e31923b Bug 661846: Move the Windows classic/XP native menu padding calculation from GetWidgetBorder to GetWidgetPadding. r=jmathies 2011-06-22 12:32:50 +02:00
bjarne@runitsoft.com
ec668f29cd Bug 654926 - Hang in nsDiskCacheStreamIO::CloseOutputStream while downloading WebM video from YouTube r=michal.novotny, bjarne 2011-06-22 10:49:35 +02:00
Makoto Kato
29f4482705 Bug 655655 - decom nsIPosixLocale. r=smontagu
--HG--
rename : intl/locale/public/nsIPosixLocale.h => intl/locale/public/nsPosixLocale.h
2011-06-22 16:34:27 +09:00
Makoto Kato
f8772e188e Bug 182279 - select.add() should have the second parameter optional. r=smaug 2011-06-22 16:33:30 +09:00
Ehsan Akhgari
0459d9e1ab Merge mozilla-central into mozilla-inbound 2011-06-22 03:06:01 -04:00
Masayuki Nakano
629e43938d Bug 664917 Add Preferences API for getting default pref values r=roc, feedback=bz 2011-06-22 15:39:10 +09:00
Bas Schouten
c58b307338 Followup to bug 661973: Fix bug with COM outparams and add convenience operators. r=cjones 2011-06-21 21:44:00 -07:00
Trevor Saunders
8996e15e77 bug 659018 - nsIAccessibleEvent::EVENT_NAME_CHANGED not handled for atk r=surkov
From 783c75c83cee406c15b962f5ac10582f7ab9b354 Mon Sep 17 00:00:00 2001
---
 accessible/src/atk/nsAccessibleWrap.cpp |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
2011-06-15 22:12:32 -07:00
Luke Wagner
3f185cc410 Bug 15529 - Add missing copyright boilerplate to files in js/src, remove dead files (r=brendan,graydon,jimb)
--HG--
rename : js/src/perfect.js => js/src/tests/js1_1/regress/perfect.js
2011-06-21 10:26:22 -07:00
Ehsan Akhgari
73e4f8616d Backout changeset 5fe20ec0229c (bug 15529) because it breaks jsreftests 2011-06-21 18:52:32 -04:00
Ehsan Akhgari
6b630402fa Merge the last green changeset on mozilla-inbound into mozilla-central 2011-06-21 17:46:35 -04:00
Olli Pettay
b8bc9bfead Bug 664467 - Unlink content/html some more, r=sicking
--HG--
extra : rebase_source : 8821bba1a7651bf96f862ca98a0cf179aaf5ea60
2011-06-22 00:12:50 +03:00
Paul O’Shannessy
a3734aa916 Bug 625016 - Restore windows closed in succession to quit (non-OSX only) [r=dietrich] 2011-06-21 11:09:07 -07:00
Paul O’Shannessy
dd8b38f8d9 Backout 3b59c196aaf9 - no bug # in commit message 2011-06-21 11:06:02 -07:00
Paul O’Shannessy
30cd0d9acc Bug 665260 - Store start time in sessionstore data [r=dietrich] 2011-06-21 10:44:10 -07:00
Paul O’Shannessy
1aa3a8204e Users have app tab and panorama data loss depending on window close order [r=dietrich] 2011-06-21 10:44:10 -07:00
Jared Wein
f34da59f4f Bug 665217. Handling corrupt statements in finally blocks. [r=zpao] 2011-06-21 10:44:10 -07:00
Paul O’Shannessy
2fbc4a0b6c Bug 571997 - Copy Password doesn't ask for master password while Show Passwords does [r=dolske] 2011-06-21 10:44:09 -07:00
Daniel Holbert
8a020aa372 Bug 656244: Finish *all* remaining parsing in SVGDocumentWrapper::OnStopRequest. r=hsivonen 2011-06-21 10:38:44 -07:00
Luke Wagner
0e59a6d626 Bug 15529 - Add missing copyright boilerplate to files in js/src, remove dead files (r=brendan,graydon,jimb)
--HG--
rename : js/src/perfect.js => js/src/tests/perfect.js
2011-06-21 10:26:22 -07:00
Philipp von Weitershausen
58671c6994 Merge services-central and mozilla-central 2011-06-21 21:34:45 +02:00
Mounir Lamouri
12f4cc8dcb Bug 665845 - Fixes to content/html/content/test/test_bug561634.html. r=ehsan 2011-06-21 18:50:12 +02:00
Mounir Lamouri
826e399a68 Bug 665841 - Move some tests to HTML Forms test directory. rs=smaug
--HG--
rename : content/html/content/test/test_bug566160.html => content/html/content/test/forms/test_formaction_attribute.html
rename : content/html/content/test/test_bug589696.html => content/html/content/test/forms/test_formnovalidate_attribute.html
rename : content/html/content/test/test_bug555559.html => content/html/content/test/forms/test_input_email.html
rename : content/html/content/test/test_bug344615.html => content/html/content/test/forms/test_input_url.html
rename : content/html/content/test/test_bug562932.html => content/html/content/test/forms/test_label_control_attribute.html
rename : content/html/content/test/test_bug565538.html => content/html/content/test/forms/test_mozistextfield.html
rename : content/html/content/test/test_bug556013.html => content/html/content/test/forms/test_novalidate_attribute.html
rename : content/html/content/test/test_bug346485.html => content/html/content/test/forms/test_output_element.html
rename : content/html/content/test/test_bug345512.html => content/html/content/test/forms/test_pattern_attribute.html
rename : content/html/content/test/test_bug345822.html => content/html/content/test/forms/test_required_attribute.html
2011-06-21 18:50:47 +02:00
Mounir Lamouri
7fe60a0e4d Bug 665012 - r=bz 2011-06-21 18:51:34 +02:00
Mounir Lamouri
d70fb8c1d9 Bug 658037 (2/2) - r=bz 2011-06-21 18:52:01 +02:00
Mounir Lamouri
d0fc863efa Bug 658037 (1/2) - r=bz 2011-06-21 18:52:22 +02:00
Ed Morley
7bd9e7ed4a Bug 665723 - Fix unused variable warnings in layout/generic/; r=roc 2011-06-21 17:37:47 +02:00
Ed Morley
ab5397a7e3 Bug 665595 - Fix unused variable warning in ExternalHelperAppParent.cpp; r=dwitte 2011-06-21 17:37:46 +02:00
Ed Morley
ae93e8e8ed Bug 665546 - Fix unused variable warning in nsMediaStream.cpp; r=roc 2011-06-21 17:37:45 +02:00
Ed Morley
da41678fe8 Bug 665391 - Remove unused variable maiAtkHyperlink from nsMaiHyperlink.cpp getUriCB(); r=surkov 2011-06-21 17:37:44 +02:00
Ed Morley
bf14db12d1 Bug 665390 - Remove unused variable 'count' from nsXULPrototypeCache::WritePrototype; r=jst 2011-06-21 17:37:44 +02:00
Ed Morley
1dab9aba75 Bug 665389 - Remove unused variable rv from nsPSPrinterList::Init; r=roc 2011-06-21 17:37:43 +02:00
Ed Morley
0d655393f8 Bug 665387 - Remove unused variable document from nsHtml5TreeOperation::Perform; r=hsivonen 2011-06-21 17:37:41 +02:00
Ms2ger
15644e3760 Bug 664543 - Remove nsIDOMWindow2; r=peterv 2011-06-21 17:37:38 +02:00
Jim Mathies
e7b2166941 merge backout 2011-06-21 10:33:22 -05:00
Jim Mathies
dd7a8d23c5 Backout of bug 580564 due to regression bug 663586. 2011-06-21 10:33:03 -05:00
Olli Pettay
5e3515d45b Bug 664444 - Unlink nsGlobalChromeWindow, r=peterv
--HG--
extra : rebase_source : e31c451c4af6768f8bf1d6b1f053b30d33a7e2b5
2011-06-21 17:51:49 +03:00
Jonas Sicking
11d6c1d870 Bug 665596: Get rid of loadlistenerproxy as it's no longer used. r=jst 2011-06-21 08:12:33 -07:00
Dão Gottwald
abac6739de Bug 591953 - Show the "Open Link" context menu item for URLs with hyphens. r=gavin 2011-06-21 11:59:29 +02:00
Ehsan Akhgari
d71311ff57 Merge mozilla-central into mozilla-inbound 2011-06-20 23:42:45 -04:00
Chris Leary
7922cf2289 Merge mozilla central and tracemonkey. 2011-06-20 16:49:20 -07:00
Gregor Wagner
08eca5db6e Bug 656120 - Change MaybeGC trigger. r=igor 2011-06-20 14:44:26 -07:00
Robert Longson
3235a831cb Bug 652832 - Support animation of use element width/height. r=jwatt 2011-06-20 21:15:42 +01:00