gecko-dev/layout
Robert O'Callahan f55223784a Bug 622072. Part 3: Support empty transactions for canvas layers. r=tnikkel
The basic idea is that whenever a layer transaction updates the window, we clear out the invalidation state for the canvas rendering context,
using a DidTransactionCallback registered on the layer(s) for the canvas, which calls MakeContextClean.

The DidTransactionCallbacks are directed to the user data attached to the Layer, which holds a strong reference to the canvas element. This
ensures that the element lives as long as the layer. Layers are destroyed when the presentation is torn down (including if the frame is destroyed),
so we can't have a leak here. The reference to the canvas element is only strong because the layer might briefly outlive the frame (the layer
won't be destroyed until the next paint of the window).

This patch moves responsibility for calling CanvasLayer::Updated and nsFrame::MarkLayersActive from the canvas context to nsHTMLCanvasElement::InvalidateFrame.
We call Updated on the retained CanvasLayer, if there is one; any other CanvasLayers created for this canvas would only be used once, and have Updated
called on them in BuildLayer when created.
2011-03-28 12:59:47 +13:00
..
analysis
base Bug 622072. Part 3: Support empty transactions for canvas layers. r=tnikkel 2011-03-28 12:59:47 +13:00
build Backed out changeset a5dbece71e4a due to test failures 2011-03-31 09:11:21 -04:00
doc
forms Bug 59109 Part 3: Implement text-decoration-color and text-decoration-style rendering r=dbaron 2011-03-31 21:27:03 +09:00
generic Bug 622072. Part 3: Support empty transactions for canvas layers. r=tnikkel 2011-03-28 12:59:47 +13:00
html/tests
inspector Bug 576831 part 4. Remove nsICSSStyleRule and use mozilla::css::StyleRule instead. r=bzbarsky 2011-03-10 21:48:57 -05:00
ipc Bug 617539 - Fold in nsIFrameLoader_MOZILLA_2_0_BRANCH, r=bz 2011-03-25 11:03:35 -04:00
mathml b=605605 Uninitialised value used in nsMathMLChar r=karlt 2011-03-25 16:38:59 +13:00
printing Bug 637864 - Give nsIViewManager::GetRootView a sane signature; r=bz 2011-03-29 22:24:54 -04:00
reftests Bug 635373. Tests 2011-04-01 10:33:46 +13:00
style Bug 59109 Part 3: Implement text-decoration-color and text-decoration-style rendering r=dbaron 2011-03-31 21:27:03 +09:00
svg Bug 614367 - Fix assert removing nonexistent transform r=dholbert 2011-02-27 10:54:47 +00:00
tables Bug 618830 initial assignment to kidNextInFlow is useless in nsTableFrame::ReflowChildren 2011-03-28 16:50:13 -04:00
tools Bug 635373. Add layersOpenGL to the reftest harness. r=dbaron 2011-04-01 10:33:46 +13:00
xul Merge cedar into mozilla-central 2011-03-31 14:11:37 -04:00
Makefile.in Backed out changeset a5dbece71e4a due to test failures 2011-03-31 09:11:21 -04:00