gecko/layout/base
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
..
crashtests Add crashtest from bug 468563 2011-06-20 11:42:05 -07:00
tests Tests for bug 582181, r=roc 2011-06-15 10:45:57 +03:00
FrameLayerBuilder.cpp Bug 637852. Part 6: Implement resolution scaling in FrameLayerBuilder. r=tnikkel 2011-06-23 00:11:27 +12:00
FrameLayerBuilder.h Bug 637852. Part 6: Implement resolution scaling in FrameLayerBuilder. r=tnikkel 2011-06-23 00:11:27 +12:00
FramePropertyTable.cpp
FramePropertyTable.h
Makefile.in Bug 660762 - Remove --disable-mathml support. r=roc 2011-06-02 13:11:33 +02:00
nsBidi.cpp
nsBidi.h Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
nsBidiPresUtils.cpp Don't overshoot the last sibling when iterating frames. Bug 663295 (whitespace change with correct bug number) 2011-06-15 10:51:36 +03:00
nsBidiPresUtils.h Include continuations of frames with no newline. Bug 582181, r=roc 2011-06-15 10:45:57 +03:00
nsCaret.cpp Bug 659533 Replace nsContentUtils::GetBoolPref() with Preferences::GetBool() r=roc 2011-05-25 15:31:59 +09:00
nsCaret.h Bug 657160 - Remove NS_NewCaret; r=ehsan,roc 2011-05-15 12:17:09 +02:00
nsChangeHint.h
nsChildIterator.cpp
nsChildIterator.h
nsCompatibility.h
nsCounterManager.cpp
nsCounterManager.h
nsCSSColorUtils.cpp
nsCSSColorUtils.h Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
nsCSSFrameConstructor.cpp Bug 659539 Part 1: Give nsINodeInfos a nodeType, nodeName and localName. r=bz 2011-06-14 00:56:49 -07:00
nsCSSFrameConstructor.h Bug 660762 - Remove --disable-mathml support. r=roc 2011-06-02 13:11:33 +02:00
nsCSSRendering.cpp Bug 663028 - Make Print Preview themable with CSS, and modernize its look r=roc 2011-06-10 20:07:26 +10:00
nsCSSRendering.h Bug 660657 - Make nsCSSRendering::Init return void; r=roc 2011-06-02 14:56:46 +02:00
nsCSSRenderingBorders.cpp Bug 641426. Part 8: Replace gfxRect::Outset/Inset with Inflate/Deflate. Also slip in a conversion constructor from nsIntRect to gfxRect. r=tnikkel 2011-04-19 15:07:51 +12:00
nsCSSRenderingBorders.h
nsDisplayItemTypes.h Bug 663028 - Make Print Preview themable with CSS, and modernize its look r=roc 2011-06-10 20:07:26 +10:00
nsDisplayList.cpp Bug 637852. Part 6: Implement resolution scaling in FrameLayerBuilder. r=tnikkel 2011-06-23 00:11:27 +12:00
nsDisplayList.h Bug 637852: Part 5: Create ContainerParameters structure to carry resolution scale factors through layer creation. r=tnikkel 2011-06-23 00:11:27 +12:00
nsDocumentViewer.cpp Bug 664434 - Make sure to Destroy the old document when setting a new print document, r=roc 2011-06-16 21:20:13 +03:00
nsFrameManager.cpp Bug 631529. Pass a TreeMatchContext into ReResolveStyleContext so that we can share the nth-index cache across the entire reresolution. r=dbaron 2011-05-24 20:19:09 -04:00
nsFrameManager.h Bug 631529. Pass a TreeMatchContext into ReResolveStyleContext so that we can share the nth-index cache across the entire reresolution. r=dbaron 2011-05-24 20:19:09 -04:00
nsFrameManagerBase.h
nsFrameTraversal.cpp
nsFrameTraversal.h
nsGenConList.cpp
nsGenConList.h
nsIDocumentViewer.h Backed out changeset ae5b84b96fd7 (bug 570341) due to test failures DONTBUILD. a=sheriff 2011-05-24 01:54:23 -05:00
nsIDocumentViewerPrint.h
nsIFrameTraversal.h
nsILayoutDebugger.h
nsILayoutHistoryState.h
nsImageLoader.cpp Don't construct image loaders for null border-image. (Bug 652052) r=bzbarsky 2011-04-22 18:36:23 -07:00
nsImageLoader.h
nsIPercentHeightObserver.h
nsIPresShell.h Bug 633282 - manual backout of 'fixup UpdatePossiblyTransparentRegion v.3' in bug 622328 due to merge conflicts. r=tn 2011-05-13 11:40:46 -05:00
nsIReflowCallback.h
nsIStyleSheetService.idl
nsLayoutDebugger.cpp
nsLayoutErrors.h
nsLayoutHistoryState.cpp
nsLayoutUtils.cpp bug 467669 - pt 2 - find the @font-face rule (if any) responsible for the font entry. r=roc 2011-06-16 07:31:36 +01:00
nsLayoutUtils.h bug 467669 - pt 1 - get list of fonts actually used to render a document range. r=roc sr=bzbarsky 2011-06-16 07:31:36 +01:00
nsPresArena.cpp Bug 645423 - Initialize the poison value also for DEBUG_TRACEMALLOC_PRESARENA builds. r=dbaron 2011-04-04 13:41:02 +02:00
nsPresArena.h Add poisoning for nsRuleData::mValueOffsets. (Bug 636039, patch 19) r=bzbarsky 2011-03-17 20:14:31 -07:00
nsPresContext.cpp Bug 664924 - Remove MOZ_CSS_ANIMATIONS ifdefs. r=dbaron 2011-06-20 16:47:09 -07:00
nsPresContext.h Bug 664924 - Remove MOZ_CSS_ANIMATIONS ifdefs. r=dbaron 2011-06-20 16:47:09 -07:00
nsPresShell.cpp Bug 664924 - Remove MOZ_CSS_ANIMATIONS ifdefs. r=dbaron 2011-06-20 16:47:09 -07:00
nsPresState.h
nsQuoteList.cpp
nsQuoteList.h
nsRefreshDriver.cpp Bug 660121 Remove all pref related methods from nsContentUtils r=roc 2011-05-29 08:42:57 +09:00
nsRefreshDriver.h Ensure nsRefreshDriver::MostRecentRefresh tells the truth even when we stop and restart timers. (Bug 650469) r=bzbarsky 2011-04-21 20:17:32 -07:00
nsStyleChangeList.cpp
nsStyleChangeList.h
nsStyleConsts.h Bug 664924 - Remove MOZ_CSS_ANIMATIONS ifdefs. r=dbaron 2011-06-20 16:47:09 -07:00
nsStyleSheetService.cpp
nsStyleSheetService.h
PaintTracker.cpp Bug 616812 Remove extraneous CRs r+a=dbaron 2011-02-16 21:39:52 +00:00
PaintTracker.h Bug 616812 Remove extraneous CRs r+a=dbaron 2011-02-16 21:39:52 +00:00
RestyleTracker.cpp
RestyleTracker.h