Граф коммитов

803 Коммитов

Автор SHA1 Сообщение Дата
Victor Porof 8f1e61795d Bug 1184376 - Remove nsDocShell::AddProfileTimelineMarker, r=smaug 2015-07-18 09:35:59 -04:00
Jamie Nicol 5044fbd3c9 Bug 1176077 - Only recompute PaintedLayer item visibility when display list has changed. r=mattwoodrow
FrameLayerManager::RecomputeItemsVisibility() was being called on every
call to FrameLayerBuilder::DrawPaintedLayer(), each time for the region
to be painted by that paint call. This is inefficient when progressive
paint is enabled. Change it so that we compute the visibility of all the
layer's items within the total region to be painted, but only on the
first paint after the display list has been modified.
2015-07-21 09:19:25 +01:00
Ting-Yu Lin dfa97f6d66 Bug 1182963 - Use nsTHashTable::Iterator in FrameLayerBuilder. r=roc,njn
Get rid of EnumerateEntries by inlining those enumerate functions. Also
move gPaintedDisplayItemLayerUserData, gColorLayerUserData, etc. to the
front of the file since LayerManagerData::Dump() references to one of
them.

--HG--
extra : commitid : K1KepLsdyS4
extra : rebase_source : 97543d7cb9c7333ae2b5b5a298afdd22f5fa249c
2015-07-15 17:05:06 +08:00
Michael Layzell 155069d388 Bug 1073219 - Use a simple RAII struct instead of nsRefPtr to manage mLayerCount for MaskLayerImageKey. r=dholbert 2015-07-12 21:09:57 -07:00
Markus Stange 69ce2d9220 Bug 1178745 - Respect scroll clips when flattening. r=roc
--HG--
extra : rebase_source : 40f024056c16347cf5796db799968ae35f9d6044
extra : histedit_source : e899d8fdd75fbe0833bf7c543fcd5bea011d9315
2015-07-02 17:04:14 -04:00
Markus Stange f6421a8bb7 Bug 1178745 - Move some code around. r=roc
--HG--
extra : rebase_source : 6f8745922fcaeeafdae0567ebf09ba4c6e94e254
extra : histedit_source : 100bb968f25534e0db9592f93b7fc593cfe9ccb2
2015-07-02 17:00:17 -04:00
Markus Stange 472ba62ba8 Bug 990974 - Treat carets in async scrolled scrollframes differently from non-caret content. r=roc
This makes those caret display items not share a layer with any other display items, and uses a different async scroll frame clip for that layer.

--HG--
extra : rebase_source : f01cd0343ea3e672b1d696a4e4e8924d070cc23d
extra : histedit_source : 14cefb8c1c9834d02a095e52e463add8a56a8625
2015-07-02 15:02:34 -04:00
Markus Stange f259a1f135 Bug 990974 - Give PaintedLayerDataTree a generic way of restricting a PaintedLayer to exactly one display item. r=roc
--HG--
extra : rebase_source : fd6c029196ccbc5d1c59f327a17b637e12e47076
extra : histedit_source : 1d145fcd038e769dfe1498fe5e4c13247d409ef4
2015-07-01 22:08:20 -04:00
Markus Stange 77820dcba1 Bug 990974 - Add a flag to ComputeFrameMetrics so that a different clip can be returned for the caret and non-caret content. r=roc
--HG--
extra : rebase_source : a00358c3191c49c21ad2ad9b1e1a8d5d47285672
extra : histedit_source : 64aafcbf2d8fa32610fe8a30c916dbbe1b4f9283
2015-07-02 13:42:34 -04:00
Lee Salzman 1201a3f336 Bug 771367 - Support compositor animation for pseudo-elements. r=dbaron
--HG--
extra : rebase_source : 9276e835dbc75aaaab718a871ed4eaa7c8389867
2015-07-01 11:55:51 -04:00
David Anderson 16262c38a8 Bug 1148582 - Recycle mask layers attached to FrameMetrics. r=mattwoodrow
--HG--
extra : rebase_source : f74699e5c40598ca8b7aa0163897c74524e32419
extra : source : be49031960aa935f2f0d6fa594251c9e1fa12536
2015-06-21 12:28:10 -04:00
David Anderson 55a0f8ee25 Bug 1148582 - Add mask layers to FrameMetrics for ancestor scroll frame clips. r=mattwoodrow
--HG--
extra : rebase_source : 9bf7a73b14e40972b3a5824b2f1344b7770ab789
extra : source : 745366787bcae737c0aec908554db2a3ec288908
2015-06-21 12:27:31 -04:00
David Anderson 506195b315 Bug 1148582 - Factor mask layer creation out of ContainerState::SetupMaskLayer. r=mstange
--HG--
extra : rebase_source : 22768360af5dd3befaee32dd2b27bd5168b9ac04
extra : source : b40d5e2bc9d77bc84edf31ca0faba8adee9b07c2
2015-06-20 19:47:57 -04:00
Markus Stange f1b62506d9 Back out bug 1148582 for static analysis bustage. 2015-07-01 01:20:59 -04:00
David Anderson 833a90534d Bug 1148582 - Recycle mask layers attached to FrameMetrics. r=mattwoodrow 2015-06-21 12:28:10 -04:00
David Anderson c29b4c6dfa Bug 1148582 - Add mask layers to FrameMetrics for ancestor scroll frame clips. r=mattwoodrow 2015-06-21 12:27:31 -04:00
David Anderson 82c9790c78 Bug 1148582 - Factor mask layer creation out of ContainerState::SetupMaskLayer. r=mstange 2015-06-20 19:47:57 -04:00
L. David Baron e9742befac Bug 1122526 patch 4 - Use the nearest widget size as the maximum size for an animated layer, in case it's a popup larger than the toplevel window. r=roc 2015-06-29 16:46:17 -07:00
L. David Baron 0f46845bc4 Bug 1122526 patch 2 - Only do OMTA transform scale choosing for layers that are for transform display items. r=roc
This fixes the scaling choice when we have more than one layer for the
same element, e.g., because it animates both transform and opacity.
2015-06-29 16:46:16 -07:00
L. David Baron 1f96bf7014 Bug 1122526 patch 1 - Factor in the scale from ancestors when computing scale for layer with OMT animation of transform. r=roc 2015-06-29 16:46:16 -07:00
Lee Salzman 4142e9be13 Bug 633097 - Fix jittering animated text by disallowing flattening into a container layer that has animated text. r=mwoodrow 2015-06-26 18:13:50 -04:00
Markus Stange 6707592189 Bug 1165185 - Nudge layer prescale to integers. r=roc
--HG--
extra : rebase_source : 836ad8694f4514f8ddbc35447577d09129612de0
2015-06-16 17:02:58 -04:00
Markus Stange 8f3e1c59d9 Bug 1165185 - Try to avoid invalidations when scrolling transformed elements. r=roc
--HG--
extra : rebase_source : e044d64a50c6afff9e518cf53c51aa9658f3b41e
2015-06-15 19:20:59 -04:00
Ryan VanderMeulen df9a24ed23 Backed out changeset cc153acac9df (bug 1169502) for test_leaf_layers_partition_browser_window.xul permafail on Win7/8 debug.
CLOSED TREE

--HG--
extra : amend_source : e1ca077f359673986b94b71f6e1e4e5da767c2e8
2015-06-16 13:41:59 -04:00
Markus Stange 1a786425ca Bug 1169502 - Simplify visible regions to tiles, not to a number of rects. r=jrmuizel, r=roc
--HG--
extra : rebase_source : affd6655b864223cb1bb2ffe6e47a4759fd6b411
2015-06-10 15:54:20 -04:00
David Anderson b2eb29a9c5 Use widgets for APZ checks, rather than gfxPrefs. (bug 1162064, r=kats,mstange) 2015-06-04 16:51:10 -04:00
David Anderson 422d7967dc Fix PostprocessRetainedLayers to not test occlusion with asynchronous clips. (bug 1148582 part 5, r=tn) 2015-06-02 16:34:28 -07:00
Markus Stange bd011ed848 Bug 1164227 - Don't allow invalid region simplification to invalidate unchanged scrolled contents. r=roc
--HG--
extra : amend_source : 54ccbcac64986195c060e3fddd835dd5c01b66eb
2015-05-28 17:39:34 -04:00
Birunthan Mohanathas 180b572edb Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElement calls. r=froydnj 2015-05-28 11:07:44 -07:00
David Anderson bb8d53f35f Move the APZ scroll frame clip onto FrameMetrics. (bug 1148582 part 3, r=mstange,tn) 2015-05-26 12:40:24 -07:00
David Anderson e5acec7e56 Use Maybe to communicate the APZ scrollframe clip. (bug 1148582 part 1, r=mstange) 2015-05-26 12:39:29 -07:00
Markus Stange a2f4070bfb Bug 1152461 - Don't use tiled layers for overflow:hidden scroll frames. r=tn
--HG--
extra : rebase_source : 2aec6f7a4ee340dc9d039cd7ad226daa9b02883b
2015-05-08 14:10:00 -04:00
Seth Fowler c5b3231fc4 Bug 1163878 (Followup) - Fix a warning about implicit conversion of nullptr to bool in FrameLayerBuilder on a CLOSED TREE. r=me
--HG--
extra : amend_source : 0f707d08439edf2f1e8e229d4cec501964c12f65
2015-05-13 14:23:52 -07:00
Seth Fowler bd70e1593e Bug 1163878 (Part 2) - Use IsImageContainerAvailable() when making layerization decisions and only call GetImageContainer() if we layerize. r=tn 2015-05-13 00:23:46 -07:00
Ehsan Akhgari d3ab4e755b Bug 1163397 - Convert PaintedLayerData::mLog to an nsCString in order to make it possible to safely store PaintedLayerData inside nsTArrays; r=roc 2015-05-12 10:12:01 -04:00
Kartikaya Gupta bdb998b9d4 Bug 1022080 - Split out the paint item dumping from the rest of the paint dumping. r=mattwoodrow 2015-05-12 09:16:54 -04:00
Morris Tseng a832ce6127 Bug 1161662 - Exclude post scale from layer.GetTransform(). r=roc
--HG--
extra : rebase_source : 7c6d495d597adf9e74963bb2799dc28230d4c649
2015-05-07 01:18:00 +02:00
L. David Baron c8c50385b3 Bug 1153539 patch 2 - Compute scale for rasterizing off-main-thread transform animations based on ratio to display size in addition to maximum and minimum scale. r=roc
This fixes bug 1153539 with the Firefox download arrow being pixellated
(verified by testing locally).

I also confirmed what happens on a flame device with the transform
unlocking the Firefox OS homescreen (bug 945082 / bug 972310).  For that
transform (which had a maximum scale of 2), I see four calls to
GetSuitableScale:
  GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000000
  GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000586
  GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000000
  GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000586
(Presumably the first and third are for width, and the second and fourth
are for height.)  I believe this shows that bug 972310 will remain fixed
with this patch.

I chose to use the pres context's visible area rather than the screen
size because it seemed more appropriate, and also because (if memory
serves correctly) it's much cheaper to get.
2015-05-06 08:52:20 +02:00
Morris Tseng 42696f4b94 Bug 1156636 - Remove post scale multiplication for event regions. r=roc 2015-04-28 01:46:00 +02:00
Markus Stange e72a2b1b6a Bug 1147194 - Do scroll info layer hoisting when building the display list. r=tn
--HG--
extra : amend_source : 35ca22eae3b3088eaae5143af8c47177bf601800
2015-04-30 14:54:48 -04:00
Markus Stange c8321737e0 Bug 1141089 - Add more asserts for DisplayItemData, trying to catch whether we're accessing deleted instances. r=roc 2015-04-21 14:13:54 -04:00
Nicolas Silva cfff5e52c5 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Timothy Nikkel c92044ef7a Bug 1156598. Remove old, dead scroll layer item code. r=mstange 2015-04-20 22:48:10 -05:00
Morris Tseng 8b1d489941 Bug 1147279 - Get correct translation when layer optimize away. r=roc
--HG--
extra : rebase_source : e9e56fe3a0f1d8a88de1e0b40151ed2e452e4ff9
2015-04-14 22:39:00 +02:00
Ying-Ruei Liang (KK) f17daf9c2a Bug 1143522 - Convert Layer::mClipRect to ParentLayerIntRect. r=botond
Change interface of getter/setter for mClipRect,
also necessary modification for codes that use these resources.

* * *
Bundle mUseClipRect and mClipRect as Maybe<ParentLayerIntRect> mClipRect

--HG--
extra : rebase_source : ca0c60404a28b7418df88104b863760033289910
2015-04-11 22:03:00 -04:00
Markus Stange 266307725b Bug 1141089 - Check that we're unsetting sDestroyedFrame correctly. r=roc
--HG--
extra : rebase_source : 7e88934f0bfe1753423925d96917db1ff85d8e7c
2015-04-10 17:34:28 -04:00
Markus Stange 591611146d Bug 1141089 - Turn these two assertions into release assertions. r=roc
--HG--
extra : rebase_source : dbdaa24b17ce6c6b6746233cbd7c1c3fe3efa03d
2015-04-10 17:34:04 -04:00
Markus Stange 1cc08a8e75 Bug 1141089 - Use const nsTArray* in all the places where we don't change the array's contents. r=roc
--HG--
extra : rebase_source : 4fa139270347b9fa031c2d63c423b333b19f2ff7
2015-04-10 17:42:42 -04:00
Markus Stange d40c904a58 Bug 1141089 - Add a few more MOZ_RELEASE_ASSERT(mLayer) checks, just for fun. r=roc
--HG--
extra : rebase_source : 8f8c75dd60f08aac6beaea088c3bd9210898d799
2015-04-10 17:30:09 -04:00
Markus Stange f3f481c41f Bug 1141089 - Remove unused DisplayItemData copy constructor. r=roc
--HG--
extra : rebase_source : 50f0d21ccd6fdac5769caeebf8ec95a2d7174d2d
2015-04-10 17:23:22 -04:00