Commit Graph
1078 Commits
Author SHA1 Message Date
Andreas Gal 7384114fc1 Do image scaling on the GPU (bug 650988, r=roc,cjones). 2012-05-03 07:05:55 -07:00
Robert O'Callahan e852e3c17d Bug 749075. Part 1: Refactor the nsDisplayItem API for testing whether the item needs to be rendered to a transparent surface. r=mattwoodrow
Currently we return an extra out parameter on GetOpaqueRegion. This is ugly and it's also going to be inefficient
because in a followup patch I'm going to avoid calls to GetOpaqueRegion, but we still need to know whether the item
needs a transparent surface. So this patch removes that out parameter. Instead, we rely on the fact that only
Windows' glass-window-background display item needs to force a transparent surface, and there can only be one
of those per window. So we store a reference to it in the nsDisplayListBuilder if there is one, and then we can
efficiently tell if any leaf display item is the one that forces a transparent surface. For display items that
wrap a list, we continue to store whether they need to force a transparent surface in a boolean in the list.
2012-05-03 16:29:05 +12:00
Robert O'Callahan fb6a78d67b Bug 733607. Restructure logic to compute snapped bounds of display items in layer coordinates. Moves responsibility for computing snapped bounds from within the display items to callers of GetBounds/GetOpaqueRegion. r=tnikkel
Previously we snapped the results of nsDisplayItem::GetBounds and
nsDisplayItem::GetOpaqueRegion internally. By tracking which display items were
inside transforms, we disabled snapping quite conservatively whenever an ancestor
had a transform, which is undesirable.

With this patch, we don't snap inside GetBounds or GetOpaqueRegion, but just return
a boolean flag indicating whether the item will draw with snapping or not. This flag
is conservative so that "true" means we will snap (if the graphics context has a transform
that allows snapping), but "false" means we might or might not snap (so it's always safe
to return false).

FrameLayerBuilder takes over responsibility for snapping item bounds. When it converts
display item bounds to layer pixel coordinates, it checks the snap flag returned from
the display item and checks whether the transform when we draw into the layer will be
a known scale (the ContainerParameters scale factors) plus integer translation. If both
are true, we snap the item bounds when converting to layer pixel coordinates. With
this approach, we can snap item bounds even when the items have ancestors with active
transforms.
2012-04-10 23:24:18 +12:00
Edwin Flores bac0875b32 Bug 738392 - Fix plugins not rendering inside CSS transform on Mac OSX r=roc 2012-03-23 11:21:57 -07:00
James Willcox b26e1ed15a Bug 728371 - Make Flash work with GLES 2.0 and GL layers r=pcwalton 2012-03-12 13:03:54 -04:00
Bas Schouten 01839a2a23 Bug 732988 - Part 2: Use ScaleToSize API for plugin drawing. r=roc 2012-03-13 01:41:34 +00:00
Daniel Holbert 25f6085512 Backout f667f6c22bed (Bug 732988) for linux Cipc orange 2012-03-11 16:41:39 -07:00
Bas Schouten 7ea1136978 Bug 732988 - Part 2: Use ScaleToSize API for plugin drawing. r=roc 2012-03-11 22:33:23 +00:00
Josh Aas 361eb154d4 Bug 723523: Plugin crash fix, nsPluginInstanceOwner::CreateWidget. r=jmathies 2012-03-07 11:48:30 -05:00
Nathan Froyd 20f5ce545a Bug 731615 - Eliminate duplicate headers in layout. rs=smontagu 2012-02-29 10:57:47 -05:00
Bas Schouten 0cce79ffe2 Bug 651192 - Part 5: Support remote access to ImageContainers. r=roc 2012-02-16 04:26:19 +01:00
Josh Aas 54a26e9435 Bug 724717: Fix crash at nsPluginInstanceOwner::CARefresh. r=benwa 2012-02-16 21:27:37 -05:00
Bas Schouten 86897d23dd Bug 724886: Push images from plugin code instead of pulling from nsObjectFrame. r=roc 2012-02-08 16:34:27 +01:00
Mats Palmgren ab0f716a67 Bug 723659 - Cancel the reflow callback request when the frame is destroyed. r=roc 2012-02-06 12:47:11 +01:00
Jim Mathies 3d686ea274 Bug 683059 - Fix for Crash [@ nsObjectFrame::IsOpaque] with applet and changing style onunload. r=josh 2012-02-02 16:55:25 -06:00
Matt Brubeck eabc46fa6b Merge mozilla-central and mozilla-inbound 2012-02-01 17:09:34 -08:00
Josh Aas 751621897d Bug 90268: Change plugin instance ownership from layout to content. r=roc r=bsmedberg 2012-01-31 16:55:54 -05:00
James Willcox d28ecb7432 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Boris Zbarsky a9bce75e95 Backed out changeset e57ddd9fdd5e (bug 721741) because it breaks Android builds. 2012-01-31 23:38:35 -05:00
James Willcox 40223c10aa Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Bas Schouten 33c8caf378 Bug 715785: Make ImageContainers independent of LayerManagers. r=roc 2012-02-01 03:18:30 +01:00
Ed Morley dfab7c7328 Backout b87113ff33ff (bug 721741) for Android build failures 2012-01-31 16:19:00 +00:00
James Willcox f9e5262935 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Jeff Muizelaar f3bfb9d9b1 Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
James Willcox 4f1d9bc93c Bug 707439 - Fix Flash plugin positioning 2012-01-18 10:41:35 -05:00
Matt Brubeck ddcbb8cdf0 Back out 88733ce1bef3 (bug 718440) because of Windows build failure 2012-01-17 15:15:47 -08:00
Jeff Muizelaar 0e918c271b Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Nicholas Nethercote c8d93dc02b Bug 711908 - Fix a bunch of GCC warnings in layout. r=dbaron. 2011-12-19 19:46:39 -08:00
Michael Wu 21ff4d9ef1 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Josh Aas 2b90880b83 Bug 562442: Plugin crash fix (parent process). r=jmathies 2011-11-01 14:52:20 -04:00
Jonathan Watt 276bdfa251 Bug 695303 - Add a mozilla::clamped function to replace NS_CLAMP (so side affects of args are evaluated no more than once) and NS_MIN(max, NS_MAX(val, min)) (to make code clearer). r=bsmedberg. 2011-10-28 19:33:28 +01:00
Josh Aas 88b8c0a8a2 Bug 649079: Plugin crash fix (parent process). r=bz 2011-10-27 16:00:49 -04:00
Neil Deakin 50e2122432 Bug 503879, remove nsIToolkit, make nsToolkit a singleton, remove it from some widget platforms, and don't pass it around when creating widgets, original patch by robarnold, r=roc 2011-10-25 11:05:32 -04:00
Olli Pettay 1cdbb1b884 Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 1, r=jst 2011-10-18 13:53:36 +03:00
Neil Deakin 4a6227f04e Bug 694224, remove appshell argument from various widget creation methods, r=roc 2011-10-14 09:06:39 -04:00
Josh Aas 446f55fa83 Bug 690834: Replace PR_TRUE and PR_FALSE with true and false in in plugin code outside of dom/plugins. r=roc 2011-10-01 11:43:07 -04:00
Michael Wu 0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Ed Morley 66b08d1b86 Merge last green changeset on mozilla-central to mozilla-inbound 2011-09-19 12:27:35 +01:00
Oleg Romashin 93aebdf3fc Bug 687392 - Use nearest filter for mobile video/plugin rendering. r=roc 2011-09-19 12:12:16 +01:00
Ed Morley aba6e5dd88 Merge last green changeset on mozilla-inbound to mozilla-central 2011-09-18 20:23:17 +01:00
Ms2ger 6057ede4ed Bug 649603 - Make nsIScriptContext::GetNativeContext return JSContext; r=jst 2011-09-18 11:22:17 +02:00
Doug Turner de45728b30 Bug 630007 - Minimal support NPAPI on ANDROID. Pre-Honeycomb inproccess support only. r=josh. 2011-09-16 14:34:31 -07:00
Ed Morley dfcf452dc7 Backout d4bdab069bbc (bug 630007) for qt build bustage and various oranges on other platforms 2011-09-17 00:27:55 +01:00
Doug Turner 4002d1430f Bug 630007 - Minimal support NPAPI on ANDROID. Pre-Honeycomb inproccess support only. r=josh. 2011-09-16 14:34:31 -07:00
Josh Aas 6f3b538ef0 Backed out changeset 33031c875984. Bug 90268. r=josh 2011-08-30 02:09:56 -04:00
Josh Aas 408bab982e Bug 90268: Make content own plugin instances instead of frames. Allows display:none instances and re-parenting instances without stopping them. r=roc 2011-08-29 03:09:22 -04:00
Mats Palmgren 4e2a044a66 Bug 653649 - New way of getting child lists from frames. (part 4/5) r=roc
Remove the nsIAtom* child list names and use child list ID enum instead.
2011-08-24 22:54:30 +02:00
Oleg Romashin 9de2738623 Bug 621228 - Make plugins listening presShell SetActive calls. r=jst 2011-08-18 22:08:38 +02:00
Jonas Sicking aed52c6d27 Bug 661297 Part 1: Remove Add/RemoveEventListenerByIID API. r=smaug 2011-08-08 11:26:26 -07:00
Benoit Girard eaaae7167d Bug 663259 - Enable Mac Async plugin by default. r=cjones,mattwoodrow 2011-07-12 10:31:18 -04:00