Commit Graph

8349 Commits

Author SHA1 Message Date
Robert O'Callahan
a3d1ab8a34 Bug 657780. Silence pldhash warnings by shrinking ThebesLayerItemsEntry. r=tnikkel 2011-05-18 17:48:43 +12:00
Mounir Lamouri
0782c0f9f3 Merging cedar with mozilla-central. 2011-05-17 15:32:32 +02:00
Robert O'Callahan
ee46b56186 Bug 648483. Record the transform used when we last painted a layer and use that to control what needs to be invalidated in the layer. r=tnikkel 2011-05-17 11:05:56 +12:00
Robert O'Callahan
ff4a04b32c Bug 640899. Have test_leaf_layers_partition_browser_window.xul test maximized windows as well as normal windows; on Windows XP, don't test normal windows because we know the resizer overlaps there. r=tnikkel 2011-05-17 11:04:53 +12:00
Markus Stange
02b4fd3198 Bug 596600 - Start generating window-level mouse out events at the root EventStateManager. r=smaug
--HG--
rename : widget/tests/test_native_mouse_mac.xul => widget/tests/test_bug596600.xul
2011-05-16 15:15:43 +02:00
Mounir Lamouri
d58b2950df Bug 655065 - Add a -moz-orient CSS property. r=bz 2011-05-10 15:47:46 +02:00
Tatiana Meshkova
8148576e7f Bug 656167 - Temporarily disable or back out fixed layers. Visibility part. r=roc 2011-05-13 16:21:59 +03:00
Ms2ger
f32c8d1912 Bug 657160 - Remove NS_NewCaret; r=ehsan,roc 2011-05-15 12:17:09 +02:00
Matt Brubeck
d4862ec52d Bug 598736 - Use bilinear image scaling when NEON is available [r=jrmuizel] 2011-04-08 10:15:37 -07:00
Nicholas Nethercote
e942f8f50a Bug 657327 - about:memory: merge the "mapped" and "heap used" trees, and make the resulting tree flatter. r=sdwilsh,Jesse, sr=roc. 2011-05-22 19:49:56 -07:00
Josh Aas
669eb04ac7 Bug 637253: Remove nsIPluginInstance interface. r=bsmedberg 2011-05-17 21:48:34 -04:00
Robert O'Callahan
a519d6e979 Bug 640889. Have test_leaf_layers_partition_browser_window.xul test maximized windows as well as normal windows; on Windows XP, don't test normal windows because we know the resizer overlaps there. r=tnikkel 2011-05-17 15:45:19 +02:00
Mounir Lamouri
47ddeb3dad Backout c0f9a84ffb2d (bug 640889) because it has been pushed with the incorrect bug number. 2011-05-17 15:43:59 +02:00
Olli Pettay
c7a9fa4b67 Bug 307258 - Support beforeprint and afterprint events, r=mats, sr=roc
--HG--
extra : rebase_source : f14da5d6e282fe6ab4813c121d3366844dd89af6
2011-05-14 15:03:58 +03:00
Chris Leary
277ecef0fa Merge mozilla-central and tracemonkey. 2011-05-13 15:06:53 -07:00
Jim Mathies
ada37f0740 Bug 633282 - Accumulate exclude glass regions during painting and update the widget opaque region info. r=roc. 2011-05-13 11:40:46 -05:00
Jim Mathies
4a2e304d12 Bug 633282 - Add support for -moz-appearance: -moz-win-exclude-glass. r=roc. 2011-05-13 11:40:46 -05:00
Jim Mathies
d839661fc9 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
Mounir Lamouri
137f2b751b Merging cedar with mozilla-central. 2011-05-13 10:59:05 +02:00
Robert O'Callahan
e8bdea28a0 Bug 654641. Make nsDisplaySolidColor::GetBounds reflect any snapping that's going on. r=tnikkel 2011-05-13 02:59:09 +12:00
Timothy Nikkel
64072dc44f Bug 655267. Move the synth mouse move handling from the view manager to the pres shell. r=roc
I also snuck in some minor cleanup.
2011-05-11 10:49:16 -05:00
Boris Zbarsky
d034eefa80 Bug 597291. Create nsIURI objects lazily for nsCSSValue::URL, so that we don't pay the cost of creating the ones we don't actually need. r=dbaron
In the new setup, the mURL member of nsCSSValue::URL stores either the actual URI pointed to or the base URI; a boolean flag keeps track of which is stored.  Consumers use GetURI() to get the URI instead of raw access to mURI, and GetURI calls NS_NewURI as needed.
2011-05-11 11:28:53 -04:00
Masayuki Nakano
a4ea6b689d Bug 651694 Sort out NS_PLUGIN_EVENT r=roc 2011-05-11 13:52:44 +09:00
Ed Morley
97cc9c4eea Bug 655756 - Remove final XP_MAC remnants; r=josh 2011-05-10 20:24:48 +02:00
Edmund Wong
9926796429 Bug 366774 - Removed unused preference bidi.characterset. r=smontagu 2011-05-10 20:24:43 +02:00
Tatiana Meshkova
3dd472d1eb Bug 653133 - Fennec crashes when loading a page with huge background-attachment:fixed background r=roc 2011-05-09 11:40:09 +03:00
Ehsan Akhgari
e422c276a8 Bug 612129 - Set the initial selection range to the beginning of the text field in order to be more compatible with other browsers; r=roc 2011-05-12 09:52:38 -04:00
Mounir Lamouri
9d45d86044 Bug 567872 - Layout part of the progress element. r=roc,dbaron 2011-05-10 14:59:07 +02:00
Olli Pettay
3b50630ddb Bug 649170, use the same nsIWeakReference in DocumentViewer and nsPrintEngine, r=roc 2011-05-10 15:55:26 +03:00
Shawn Wilsher
6df69767bc Merge for back out tracked by bug 655860. Also backs out bug 654990 because it depends on bugs in the back out range. 2011-05-09 15:52:44 -07:00
Shawn Wilsher
d616bf2fcb Back out bug 514437, bug 567872, bug 568825, bug 633209, bug 633913, bug 634086, bug 634088, bug 634549, bug 634551, bug 638176, bug 641517, bug 641905, bug 641942, bug 642127, and bug 642667 to undo the performance regression tracked by bug 655860. 2011-05-09 15:48:39 -07:00
Jonas Sicking
9a1d88b9ee Bug 650493 Part 3: Back out patch from bug 645572 as we should now always end up with correct update counts. r=ehsan 2011-05-09 12:33:03 -07:00
Jonas Sicking
6835982ecc Bug 650493 Part 1: Simplify mutation events by firing all but DOMNodeRemoved off of script runners, and DOMNodeRemoved before starting any update batches or aquiring any state. r=smaug/peterv 2011-05-09 12:33:03 -07:00
Ed Morley
6354509c50 Bug 655493 - Remove WinCE code from layout; r=roc 2011-05-09 09:56:09 -07:00
Mounir Lamouri
75a14a114e Bug 567872 - Layout part of the progress element. r=roc,dbaron 2011-05-07 10:15:14 +02:00
Jonathan Kew
83cedda246 bug 655198 - don't parse 'all' as a value for -moz-hyphens. r=dbaron 2011-05-07 16:01:01 +01:00
Boris Zbarsky
eddb0544bf Merge cedar with mozilla-central 2011-05-06 20:39:36 -04:00
Ehsan Akhgari
e66b9024c8 Bug 10209 - Part 2: Implement the absolute positioning support for all frames; r=roc 2011-04-29 19:02:33 -04:00
Ehsan Akhgari
d883e58253 Bug 10209 - Part 1: Add an API for absolute container support for all frame types; r=roc 2011-04-27 19:41:43 -04:00
Boris Zbarsky
13f47fe406 Bug 652401. Make sure to not have straggling JSContexts on the stack when notifying in the refresh driver. r=smaug 2011-05-05 12:26:32 -04:00
Boris Zbarsky
2724d954fd Merge cedar with mozilla-central 2011-05-04 13:58:26 -04:00
Boris Zbarsky
44b750c135 Bug 654167. Fix drawing of thin 'border-style: double' border-collapsed borders. r=roc 2011-05-04 13:57:01 -04:00
Jonathan Kew
88c9ed0c0c bug 253317 - part 1 - implement -moz-hyphens property in CSS. r=dbaron 2011-05-04 12:14:50 +01:00
Nicholas Nethercote
020b76968f Bug 633653 - revamp about:memory. r=vlad,sdwilsh,dvander,gavin,ehsan,edwsmith; sr=benjamin. 2011-05-03 17:12:58 -07:00
Zack Weinberg
a86d659d4f Bug 653179: fix a call to nsRenderingContext::GetWidth(). r=dholbert 2011-05-02 12:27:36 -07:00
Benjamin Stover
1b6808fa69 Bug 640048 Fix edge case for z-ordering for async scrollable elements r=roc 2011-05-01 18:53:01 -07:00
Craig Topper
16c85e6947 Bug 648885 - Part 3: Remove nsIImageMap. r=roc
--HG--
extra : rebase_source : 179eb2e28f555d2a6159f92aa5ccd6d0af900b2b
2011-04-26 22:51:13 -07:00
Timothy Nikkel
f18d13c30e Bug 653839. Don't call DidPaint on hidden documents. This just does for DidPaint what bug 594267 did for WillPaint. r=roc 2011-05-01 20:59:15 +02:00
Mark Finkle
cabb1dfab7 Backed out changeset c7f62d818af2. Causes content crashes Bug 653889 2011-04-30 00:01:29 -04:00
Benjamin Stover
c95d8badae Bug 640048 Fix edge case for z-ordering for async scrollable elements r=roc 2011-04-29 10:15:44 -07:00
Mounir Lamouri
56051af077 Merge cedar with mozilla-central. 2011-04-29 16:19:07 +00:00
Kevin Gadd
f1f3c7f993 bug 632102 - Don't assert that mozAfterPaint and mozPaintCount are in sync, since that's not reliable. r=roc 2011-04-29 12:26:46 +00:00
Timothy Nikkel
1f4fb4d375 Bug 653125. Remove misc SVG views. r=roc 2011-04-29 12:36:02 +02:00
Boris Zbarsky
2d337f0522 Bug 650379. Add a new XPCOM timer type that is like TYPE_REPEATING_PRECISE but does not swamp the event queue if the callback takes longer than the timer interval to run. r=cjones, sr=brendan
This implements proposal 3 from bug 650379 comment 13.  The main difference
between TYPE_REPEATING_PRECISE and TYPE_REPEATING_PRECISE_CAN_SKIP is to not
AddTimer the REPEATING_PRECISE_CAN_SKIP timer until after the callback has run;
this guarantees that no more timer events will be posted until after the
callback finishes executing.  A secondary change is to make
REPEATING_PRECISE_CAN_SKIP timers advance their firing time to mDelay from when
PostTimerEvent is called, not mDelay from the old mTimeout.  While this arguably
makes them less precise, the alternative is that if a timer is significantly
delayed for some reason (e.g. because the user puts the computer to sleep for a
while) it will then fire a whole bunch of times to "catch up" to where it's
supposed to be, advancing its firing time by mDelay at a time.  That seems
undesirable.

An alternate approach would have been to readd the timer from inside
PostTimerEvent, but only if we're not in the middle of firing the timer. That
would allow more precise timers in the case when the callback is not taking too
long, but still handle gracefully the case when the callback is
slow. Unfortunately this falls down if something _else_ is hogging the main
thread event loop (e.g. some other timer has a slow callback, or whatever); in
that case we would post multiple events for the one precise timer while the
event-loop-hogging operation is running. So I don't think we should do that.
2011-04-28 19:33:52 -04:00
Boris Zbarsky
24257a4235 Bug 654989 part 2. Use the nsStyleContext handed back from CreateAnonymousContent. r=roc
This asserts the parts of AddFrameConstructionItems that should never matter for anonymous content and then just copies the one-line style context get if it's needed.
2011-05-06 16:04:44 -04:00
Boris Zbarsky
7d3e2c97ad Bug 654989 part 1. Allow handing out both an nsIContent and an nsStyleContext from CreateAnonymousContent. r=roc 2011-05-06 16:04:44 -04:00
Timothy Nikkel
d7ba2c0b5d Bug 653129. Remove useless CreateViewForFrame calls that don't do anything anymore. r=roc 2011-04-29 15:51:09 +02:00
Blake Kaplan
9f083caecc Fixing bustage from bug 641342.
--HG--
extra : rebase_source : 4d0dc461bb21028b4f0dba4de8c1f925a3c85a47
2011-05-12 17:12:00 -07:00
Blake Kaplan
de8e28588c Bug 641342 - Treat chrome DOM objects like DOM objects. r=gal/jst 2011-05-10 14:41:25 -07:00
Simon Montagu
f213cf876f Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
Philip Chee
f3e044b88a Backed out changeset: baf7456adc98 2011-04-25 02:19:05 +08:00
Edmund Wong
e923fb2f59 Bug 366774 - Removed unused preference bidi.characterset.(p2) r=smontagu 2011-04-25 01:56:09 +08:00
L. David Baron
6448f71f0d Push a context on the stack when notifying a MediaQueryListListener. (Bug 652317) r=smaug 2011-04-23 13:19:01 -07:00
Mike Hommey
fb3a8d129b Bug 652139 - Use an integer type in DocumentViewerImpl::SetMinFontSize, instead of float. r=dbaron
At the same time, replace a couple (void*) casts with NS_INT32_TO_PTR.
2011-04-23 08:48:50 +02:00
Masayuki Nakano
1adf21f3e7 Bug 647421 -moz-text-decoration-color and -moz-text-decoration-style should be reset by text-decoration r=dbaron, sr=bzbarsky 2011-04-23 14:16:41 +09:00
L. David Baron
5f05f9582d Should check link-related bits before reusing style context for root element. (Bug 652268) r=bzbarsky 2011-04-22 18:36:24 -07:00
L. David Baron
97743a8c70 Don't construct image loaders for null border-image. (Bug 652052) r=bzbarsky 2011-04-22 18:36:23 -07:00
Mounir Lamouri
84203d9e11 Merge cedar with mozilla-central. 2011-04-22 15:25:11 +02:00
L. David Baron
2eabd34794 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
L. David Baron
eac95bc5f3 Implement window.matchMedia for matching of media queries and notification of media query changes. (Bug 542058, patch 3) r=bzbarsky
This is specified at:
http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface
2011-04-21 20:17:31 -07:00
David Zbarsky
a0b813679f Bug 610305: decom nsEventStateManager r=smaug 2011-04-21 19:35:52 +02:00
Doug Turner
d286f5395f Bug 649089 - test_after_paint_pref.html should use SpecialPowers. r=jmaher, a=test-only 2011-04-20 08:52:18 -04:00
Joel Maher
c6895fbe40 Bug 651013 - a couple of layout/base mochitests should be moved to mochitest-chrome tests. r=roc, a=test-only
--HG--
rename : layout/base/tests/test_bug370436.html => layout/base/tests/chrome/test_bug370436.html
rename : layout/base/tests/test_bug420499.xul => layout/base/tests/chrome/test_bug420499.xul
2011-04-20 08:52:15 -04:00
Justin Dolske
acc6ecc70e Bug 637160 - window-modal prompts used instead of tab-modal prompts when reentering a page using back/forward. r=bz 2011-04-19 14:18:17 -07:00
Zack Weinberg
a8dd50e303 Bug 651017, part 7: remove nsDeviceContext::CreateRenderingContextInstance and the CreateRenderingContext overload that takes a widget.
--HG--
rename : gfx/src/nsThebesDeviceContext.cpp => gfx/src/nsDeviceContext.cpp
rename : gfx/src/nsThebesDeviceContext.h => gfx/src/nsDeviceContext.h
extra : rebase_source : 6be7fe432488dcf2fb5b2faa0e178dccab480285
2011-04-16 21:08:22 -07:00
Zack Weinberg
3929b6bfdd Bug 651017, part 5: mechanical changes.
--HG--
extra : rebase_source : 8bbdf48488736b51d05e734e2e9316c1460cfed5
2011-04-16 18:22:44 -07:00
Zack Weinberg
0d75035ecd Bug 651017, part 4: deCOM nsIDeviceContext; include-minimization on nsDeviceContext.h itself; merge GetPrintDC() into Windows/OS/2 specific code; merge Shutdown() with ClearCachedSystemFonts(). Most references outside gfx not fixed up.
--HG--
rename : gfx/src/nsThebesDeviceContext.cpp => gfx/src/nsDeviceContext.cpp
rename : gfx/src/nsThebesDeviceContext.h => gfx/src/nsDeviceContext.h
extra : rebase_source : 9fb366d99d18c9335ba297d21f673178dae62a64
2011-04-16 18:22:42 -07:00
Zack Weinberg
8648dcc368 Bug 651017, part 1: minimize inclusion of ns*DeviceContext.h; move the printing error codes to nsIDeviceContextSpec.h; os2 small widget cleanup.
--HG--
extra : rebase_source : 5b7cebe68f71a760463e3522b159c7cde8a72f5e
2011-04-16 18:22:41 -07:00
Jonathan Watt
a5b747bfa7 Bug 649726 - Move nsHTMLContainerFrame static view methods to nsContainerFrame. r=bz. 2011-04-19 12:55:11 +01:00
Robert O'Callahan
92fcae3d0b 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
Robert O'Callahan
2c059fb8c2 Bug 641426. Part 7: Create Rect template. r=joe,sr=cjones 2011-04-19 15:07:48 +12:00
Robert O'Callahan
fc7faceefc Bug 641426. Part 6: Rename Empty to SetEmpty. r=cjones 2011-04-19 15:07:23 +12:00
Robert O'Callahan
a7b4f1246b Bug 641426. Part 5: Avoid operator== where possible to distinguish between 'equal edges' and 'equal areas' for rectangles. r=dbaron,sr=cjones 2011-04-19 15:07:23 +12:00
Robert O'Callahan
a66b612e32 Bug 641426. Part 4.2: Rename BaseMargin::side to BaseMargin::Side. r=cjones 2011-04-19 15:07:22 +12:00
Robert O'Callahan
1c5c997eb5 Bug 641426. Part 3: Convert gfxRect::pos/size to x/y/width/height. r=joe,sr=cjones 2011-04-19 15:07:21 +12:00
Robert O'Callahan
629c1b7e18 Bug 641426. Part 2: Remove a bunch of direct gfxRect::pos/size usage. r=joe 2011-04-19 15:07:21 +12:00
Robert O'Callahan
3c866720cc Bug 641426. Part 1: Create Point and Size templates. r=joe,sr=cjones 2011-04-19 15:07:21 +12:00
Ehsan Akhgari
c91dde16ae Bug 649012 - Fix some flaky mochitests which rely on non-zero timeout values; rs=ted
--HG--
extra : rebase_source : 88fc16ca38ded79ca87bb861dc4cef92a69dd548
2011-04-16 19:39:34 -04:00
Zack Weinberg
d856f0c057 Bug 174055, part 7: remove unnecessary members from nsFontMetrics. 2011-04-08 08:32:29 -07:00
Zack Weinberg
ef90e52c10 Bug 174055, part 6: eliminate pointless nsresult return values. 2011-04-07 21:18:43 -07:00
Zack Weinberg
5731d401c8 Bug 174055, part 5: prune unused and unimplemented methods. 2011-04-07 20:07:27 -07:00
Zack Weinberg
b6b73ad75a Bug 174055, part 4: mechanical fixups outside gfx. 2011-04-07 18:05:49 -07:00
Zack Weinberg
9f143f420f Bug 174055, part 1: minimize inclusion of nsI(Thebes)FontMetrics.h. 2011-04-07 18:04:41 -07:00
Zack Weinberg
1628ea1551 Bug 266236 part 9: Move nsBoundingMetrics to its own header and prune inclusions of nsRenderingContext.h.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 92660748436f03475e011184e2828f1db0ad63e0
2011-04-07 18:04:40 -07:00
Zack Weinberg
86131020a5 Bug 266236 part 8: Change nsRenderingContext::GetDeviceContext and ::GetFontMetrics to return bare pointers.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 36dd32d715cb75e99cd3a69e460c000c1777d6a6
2011-04-07 18:04:40 -07:00
Zack Weinberg
f8eccd9ec7 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
ab24450ef1 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
Jan Küchler
c510bc3046 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
ebb2f0c7ec Bug 266236 part 1: Preliminary API cleanup on nsIRenderingContext.
--HG--
extra : rebase_source : a21ffad484f47103e403b8316eae5fdfd815c2cb
2011-04-07 18:04:39 -07:00
Benjamin Stover
5dbc4242ca Bug 649583 Panning regression on google reader in 2011-04-12 nightly r=roc 2011-04-13 14:12:22 -07:00