Commit Graph

2752 Commits

Author SHA1 Message Date
Zack Weinberg
c3400ef3c4 Bug 266236 part 7: Simplify calling convention of SetClipRect and SetClipRegion.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : b1c68e23a4fa67cdc09b151ad39d7560cdd8baf7
2011-04-07 18:04:40 -07:00
Zack Weinberg
9d6cdac2b1 Bug 266236 part 6: Change out-parameters to return values and remove a bunch of default parameters that were never called with non-default values.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 0511852e51c2ad4d4833d6f8f2f61d46130a7151
2011-04-07 18:04:40 -07:00
Zack Weinberg
5a4a96e54e Bug 266236 part 4: Aggressively prune unused methods and dead #ifdefs from nsRenderingContext.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : b2911406bbe1b5995d1a501c59e02b5fffefa390
2011-04-07 18:04:40 -07:00
Jan Küchler
5ef6bf26cf Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
extra : rebase_source : 34884bfcafd885feaf73300bc7246cd192062a48
2011-04-07 18:04:40 -07:00
Jan Küchler
0e92a9d34a Bug 266236 part 1: Preliminary API cleanup on nsIRenderingContext.
--HG--
extra : rebase_source : a21ffad484f47103e403b8316eae5fdfd815c2cb
2011-04-07 18:04:39 -07:00
Ehsan Akhgari
3b68afadb4 Merge cedar into mozilla-central 2011-04-13 14:00:55 -04:00
Benjamin Stover
0b354a3d72 Bug 649666 Do not create container layers for scrollboxes with (0, 0) scrollRange r=roc 2011-04-13 10:45:00 -07:00
Oleg Romashin
fee82d5cf6 Bug 647462 - Video layer should not be ARGB by default; r=chris.double 2011-04-12 15:39:50 -04:00
Benjamin Stover
3dc5b1f7a2 Bug 642246 Don't build ThebesLayers for elements with no displayports r=roc 2011-04-11 13:53:01 -07:00
Benjamin Smedberg
6620f620d9 Bug 617539 - Remove nsIPluginHost_MOZILLA_2_0_BRANCH, nsIPluginInstanceOwner_MOZILLA_2_0_BRANCH, and nsIPluginInstance_MOZILLA_2_0_BRANCH; r=jst 2011-04-11 16:00:30 -04:00
Simon Montagu
d34ed4f099 Bug 263359 part 1.5: remove nsDirectionalFrame. r=roc 2011-04-11 10:59:30 +03:00
Simon Montagu
1eecb4f103 Bug 263359 part 1: refactor bidi resolution code, combining InitLogicalArray and CreateBlockBuffer. r=roc 2011-04-11 10:59:30 +03:00
Simon Montagu
1b5ecfe658 Debugging code for Bidi resolution. NPOTDB 2011-04-11 10:59:29 +03:00
L. David Baron
ad4318958b Back out 1edfae12015b (Bug 642246) due to mobile unittest orange. 2011-04-09 18:21:27 -07:00
Benjamin Stover
3270dd31cd Bug 642246 Don't build ThebesLayers for elements with no displayports r=roc 2011-04-09 12:38:28 -07:00
Ehsan Akhgari
63da2aa651 Bug 646382 - Position the caret correctly for empty BR frames; r=roc 2011-04-08 00:35:49 -07:00
Ehsan Akhgari
f62ed62de0 Bug 644428 - (Alternative approach) Clamp the baseline for every case to the context box height for inline frames; r=roc 2011-04-09 09:13:16 -07:00
Simon Montagu
8ade1e195e Make all nsBidiPresUtils methods static. Bug 624798, r=roc 2011-04-13 12:23:49 +03:00
Josh Aas
70a155c558 Bug 636872: Allow CSS cursor property to be used for plugins. r=bz 2011-04-08 12:58:04 -07:00
Jonathan Kew
05b8ef4302 bug 646983 - set the correct text length for the PropertyProvider. r=roc 2011-04-08 11:18:47 -07:00
Jonathan Kew
46ca3e4f06 add testcases from bug 646983, bug 647332. r=roc 2011-04-08 11:18:44 -07:00
Ehsan Akhgari
96d750195b Merge cedar into mozilla-central 2011-04-08 02:27:03 -07:00
Ms2ger
8abef9c63c Bug 647554 - Uninitialized variable oldSize in nsPluginInstanceOwner::InvalidateRect; r=mats 2011-04-07 21:56:13 -07:00
Matheus Kerschbaum matjk7@gmail.com
83489c2891 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now
--HG--
extra : rebase_source : bd8d7491d0fee17e0319ce130bd2988fefe82e93
2011-04-06 21:59:25 -07:00
Benoit Girard
c8e9583cc3 Bug 647710: Fixed color profile leak. r=josh 2011-04-06 16:00:45 -07:00
Matheus Kerschbaum
93480c6366 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg 2011-04-02 19:14:00 -07:00
Mats Palmgren
73a0c83824 Bug 614969 - Use the primary frame for the display style test. r=bzbarsky 2011-04-04 13:41:02 +02:00
Robert O'Callahan
c6e4498a20 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
Robert O'Callahan
77ab860b5c Bug 644832. Windowless plugins inside CSS transforms should be rendered. r=tnikkel 2011-04-01 10:33:46 +13:00
Robert O'Callahan
8fd77f670c Bug 617539. Remove nsIPresShell_MOZILLA_2_0_BRANCH(2). r=tnikkel 2011-04-01 10:33:46 +13:00
Ehsan Akhgari
41f6aee99f Merge cedar into mozilla-central 2011-03-31 14:11:37 -04:00
Kyle Huey
e169e16015 Back out Bug 639754. 2011-03-31 09:12:20 -04:00
Kyle Huey
61ff9410c4 Backed out changeset a5dbece71e4a due to test failures 2011-03-31 09:11:21 -04:00
Matheus Kerschbaum
1f81122982 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now. r=bsmedberg 2011-03-31 07:22:55 -04:00
Ehsan Akhgari
a0f4acae30 Merge cedar into mozilla-central 2011-03-30 13:53:35 -04:00
Ehsan Akhgari
5199d98d91 Bug 645914 - Do not eat the white-space when doing word selection if the eaten whitespace is a newline character and we have been instructed not to jump between lines; r=roc
This fixes a bug in selecting words at the end of lines in textarea's for Windows.
2011-03-30 11:56:48 -04:00
Ehsan Akhgari
6c4d70e8f0 Bug 644428 - Position the caret correctly for empty inline frames; r=roc 2011-03-28 20:17:16 -04:00
Jonathan Kew
1095b2347e bug 418975 - support &shy; when calculating min width for table and fieldset. r=roc. landing on the CLOSED TREE after dbaron went to bed :) 2011-03-24 15:22:37 +00:00
Jonathan Kew
df641cb631 additional crashtest for bug 645072 2011-03-30 07:39:11 +01:00
Simon Montagu
c1998d7c2c Change x-gbk to gbk in charset titles. Bug 369403, r=emk 2011-03-30 08:35:36 +02:00
Jonathan Kew
58ef27c608 bug 646561 - testcase. 2011-03-31 09:47:01 +01:00
Jonathan Kew
687c9f81ff bug 646561 - pass correct length to PropertyProvider in bidi case. r=roc 2011-03-31 09:47:01 +01:00
Ms2ger
3aac8958f3 Bug 637864 - Give nsIViewManager::GetRootView a sane signature; r=bz 2011-03-29 22:24:54 -04:00
Ehsan Akhgari
ca0a27ab24 Merge cedar into mozilla-central 2011-03-29 10:39:07 -04:00
David Bolter
8756e3e643 Bug 616594 - overflow:auto causes DIV to get tab focus, r=bz 2011-03-29 13:43:59 +09:00
Chen Liu
86a955132e Use PL_strncpyz in DR_FrameTypeInfo. (Bug 639220) r=dbaron 2011-03-28 16:07:27 -07:00
Ehsan Akhgari
db0e06d061 Merge cedar into mozilla-central 2011-03-28 13:28:13 -04:00
Alexander Surkov
8eec39795c Bug 629114 - crash on add comment link in review board [@ nsBulletFrame::GetListItemText ] [@ nsBulletFrame::GetListItemText(nsStyleList const&, nsString&) ], r=davidb, marcoz, sr=bz, a=blocking2.x+ 2011-03-28 22:59:54 +09:00
Simon Montagu
092b78d138 Make mRestorePos a logical position and convert to physical position when scrolling. Bug 638753, r=dbaron 2011-03-28 08:37:57 +02:00
Robert O'Callahan
4ca813ae6e 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