gecko-dev/layout/base
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
..
crashtests 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
tests Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
FrameLayerBuilder.cpp Bug 651017, part 7: remove nsDeviceContext::CreateRenderingContextInstance and the CreateRenderingContext overload that takes a widget. 2011-04-16 21:08:22 -07:00
FrameLayerBuilder.h 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
FramePropertyTable.cpp Followup to bug 550611: Use a different placement-dtor form so as to appease gcc 4.5. rs=tn a=bustage 2010-11-09 00:17:06 -06:00
FramePropertyTable.h Bug 564991. Part 1: Create a new kind of frame property that can receive a frame pointer when its destructor is called. r=mats 2010-07-16 09:07:45 +12:00
Makefile.in Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg 2011-04-02 19:14:00 -07:00
nsBidi.cpp Basic bidi support for SVG. Bug 620446, r=roc, a=roc 2011-01-04 00:52:17 -08:00
nsBidi.h Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
nsBidiPresUtils.cpp Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
nsBidiPresUtils.h Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
nsCaret.cpp Bug 641426. Part 6: Rename Empty to SetEmpty. r=cjones 2011-04-19 15:07:23 +12:00
nsCaret.h Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>. 2011-04-07 18:04:40 -07:00
nsChangeHint.h Bug 505115. Use layers to render active 2D transforms. r=roc,dbaron 2010-08-02 15:07:04 +12:00
nsChildIterator.cpp Bug 577309 part 8. Stop using content indices in ChildIterator. r=roc 2010-07-15 00:38:21 -04:00
nsChildIterator.h Bug 577309 part 8. Stop using content indices in ChildIterator. r=roc 2010-07-15 00:38:21 -04:00
nsCompatibility.h
nsCounterManager.cpp
nsCounterManager.h
nsCSSColorUtils.cpp
nsCSSColorUtils.h
nsCSSFrameConstructor.cpp Bug 610305: decom nsEventStateManager r=smaug 2011-04-21 19:35:52 +02:00
nsCSSFrameConstructor.h Bug 598832 part 16. Use a single TreeMatchContext for all the style resolution that the frame constructor does as part of a single frame construction batch. r=dbaron 2011-03-29 13:29:21 -04:00
nsCSSRendering.cpp 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
nsCSSRendering.h 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
nsCSSRenderingBorders.cpp 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
nsCSSRenderingBorders.h Bug 588271 - Part 4: Add specialized rendering codepaths for the most common border types. r=vlad a=blocking-betan 2010-12-02 14:17:58 +01:00
nsDisplayItemTypes.h Bug 642246 Don't build ThebesLayers for elements with no displayports r=roc 2011-04-11 13:53:01 -07:00
nsDisplayList.cpp Bug 641426. Part 6: Rename Empty to SetEmpty. r=cjones 2011-04-19 15:07:23 +12:00
nsDisplayList.h Bug 651017, part 5: mechanical changes. 2011-04-16 18:22:44 -07:00
nsDocumentViewer.cpp Backed out changeset: baf7456adc98 2011-04-25 02:19:05 +08:00
nsFrameManager.cpp Should check link-related bits before reusing style context for root element. (Bug 652268) r=bzbarsky 2011-04-22 18:36:24 -07:00
nsFrameManager.h Bug 606125 - develop a way to handle visibility style, r=marcoz, davidb, sr=bz, a=blocking 2010-11-13 12:49:26 -05:00
nsFrameManagerBase.h
nsFrameTraversal.cpp
nsFrameTraversal.h
nsGenConList.cpp
nsGenConList.h
nsIDocumentViewer.h Bug 391177: XSLT should reuse the existing inner window in order to help debuggers and the like. r=jst a=blocker CLOSED TREE 2010-09-15 15:54:00 -07:00
nsIDocumentViewerPrint.h Bug 584193. Allow print preview to work without its own widget. r=smaug a=blocking beta5 2010-08-27 18:15:08 -05:00
nsIFrameTraversal.h
nsIImageMap.h
nsILayoutDebugger.h
nsILayoutHistoryState.h
nsImageLoader.cpp Don't construct image loaders for null border-image. (Bug 652052) r=bzbarsky 2011-04-22 18:36:23 -07:00
nsImageLoader.h Bug 582004 part 2: Make imgIContainerObserver::FrameChanged take a const aDirtyRect argument. r=joe a=blocking 2010-08-13 21:09:48 -07:00
nsIPercentHeightObserver.h
nsIPresShell.h Bug 266236 part 9: Move nsBoundingMetrics to its own header and prune inclusions of nsRenderingContext.h. 2011-04-07 18:04:40 -07:00
nsIReflowCallback.h
nsIStyleSheetService.idl
nsLayoutDebugger.cpp Bug 579808. Fix bounds for nsDisplayTransform and nsDisplayPlugin. r=tnikkel a=blocking-betaN+ 2011-01-06 19:38:22 -06:00
nsLayoutErrors.h
nsLayoutHistoryState.cpp
nsLayoutUtils.cpp Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
nsLayoutUtils.h Bug 651017, part 5: mechanical changes. 2011-04-16 18:22:44 -07:00
nsPresArena.cpp Bug 645423 - Initialize the poison value also for DEBUG_TRACEMALLOC_PRESARENA builds. r=dbaron 2011-04-04 13:41:02 +02:00
nsPresArena.h Add poisoning for nsRuleData::mValueOffsets. (Bug 636039, patch 19) r=bzbarsky 2011-03-17 20:14:31 -07:00
nsPresContext.cpp Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
nsPresContext.h Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
nsPresShell.cpp Back out bug 263359 and bug 624798 because of performance regressions (bug 650189) 2011-04-27 11:47:18 +03:00
nsPresState.h
nsQuoteList.cpp
nsQuoteList.h
nsRefreshDriver.cpp 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 2011-04-28 19:33:52 -04:00
nsRefreshDriver.h 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
nsStyleChangeList.cpp (no bug) fix end-of-line whitespace so I can add a changeset with an a=bustage annotation 2010-11-16 11:28:36 -08:00
nsStyleChangeList.h
nsStyleConsts.h 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
nsStyleSheetService.cpp Bug 569719 part 2: Move headers for the former nsCSSLoader and nsCSSDeclaration into mozilla/css/. r=dbaron 2010-06-28 15:49:35 -07:00
nsStyleSheetService.h
PaintTracker.cpp Bug 616812 Remove extraneous CRs r+a=dbaron 2011-02-16 21:39:52 +00:00
PaintTracker.h Bug 616812 Remove extraneous CRs r+a=dbaron 2011-02-16 21:39:52 +00:00
RestyleTracker.cpp Backed out changeset 0c4519d63a98 2010-08-12 11:32:21 +12:00
RestyleTracker.h Bug 579830 - Change nsCOMPtr<Element> to nsRefPtr<Element>. Change one location that was QIing to Element. r=bz a2.0=benjamin 2010-07-30 20:44:45 -07:00