fune/layout/base
Sean Feng 708bd702d2 Bug 1682045 - Allow nsPresContext to store and release the last registered OneShotPostRefreshObserver r=smaug
OneShotPostRefreshObserver works as the caller registers it, and
let it deletes itself via the DidRefresh method. The issue is that
DidRefresh is not guaranteed to run, and it'll leak PresShell
if it doesn't run.

This patch allows nsPresContext to store and release the last
registered OneShotPostRefreshObserver, and converted the existing
usage of OneShotPostRefreshObserver to use that. So instead of asking
OneShotPostRefreshObserver to delete itself, we now ask nsPresContext
to release it.

Differential Revision: https://phabricator.services.mozilla.com/D99939
2021-01-18 19:23:10 +00:00
..
crashtests Bug 1618584 - Some tests are asserting less. 2020-12-18 17:25:58 +01:00
gtest Bug 1649191 - Remove the guarding statement about mismatching carets mode from AccessibleCaretManager APIs. r=botond 2020-12-09 23:02:34 +00:00
tests Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs,marionette-reviewers,whimboo,remote-protocol-reviewers 2021-01-14 21:45:14 +00:00
AccessibleCaret.cpp Bug 1676356 - Avoid including PresShell.h from header files. r=emilio 2020-11-23 16:08:23 +00:00
AccessibleCaret.h Bug 1673931 - Avoid including Element.h from header files. 2020-11-23 16:08:40 +00:00
AccessibleCaretEventHub.cpp Bug 1667594 - Move nsLayoutUtils::RectCallback to namespace scope. r=emilio,jgilbert 2020-09-30 21:06:47 +00:00
AccessibleCaretEventHub.h Bug 1667594 - Move nsLayoutUtils::RectCallback to namespace scope. r=emilio,jgilbert 2020-09-30 21:06:47 +00:00
AccessibleCaretLogger.h
AccessibleCaretManager.cpp Bug 1685303: part 14) Annotate SelectByTypeAtPoint with MOZ_CAN_RUN_SCRIPT. r=smaug 2021-01-15 09:28:07 +00:00
AccessibleCaretManager.h Bug 1685303: part 8) Annotate nsFrameSelection::SetDragState with MOZ_CAN_RUN_SCRIPT. r=smaug 2021-01-14 13:24:16 +00:00
ArenaObjectID.h
AutoProfilerStyleMarker.h Bug 1675409 - Migrated StyleMarkerPayload to Markers 2.0 API - r=gregtatum 2020-11-18 21:46:23 +00:00
CaretAssociationHint.h
DisplayPortUtils.cpp Bug 1466224 - Follow out-of-flow frames to their placeholders in GetAsyncScrollableAncestorFrame(). r=tnikkel 2020-12-22 04:00:51 +00:00
DisplayPortUtils.h Bug 1669861 - Use the visual scroll offset consistently for DisplayPortMargins computations. r=kats 2020-10-28 22:13:14 +00:00
FrameProperties.h Bug 1365982 followup - Update FrameProperties::Has() document. r=jfkthame 2020-08-29 00:04:18 +00:00
GeckoMVMContext.cpp Bug 1667475 - Moved displayport-related functions from nsLayoutUtils to a new DisplayPortUtils class. r=kats 2020-10-03 21:07:34 +00:00
GeckoMVMContext.h
GeometryUtils.cpp
GeometryUtils.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
LayoutConstants.h Bug 1675852 Part 2 - Define extra fallback intrinsic sizes in app units. r=emilio 2020-11-09 20:31:57 +00:00
LayoutLogging.cpp
LayoutLogging.h
LayoutTelemetryTools.cpp Bug 1652788: Preemptively fix unified build bustage in layout/{base,generic,printing}. r=TYLin 2020-07-14 18:15:49 +00:00
LayoutTelemetryTools.h
MediaEmulationData.h
MobileViewportManager.cpp Bug 1663000 - Send the composition size without the dynamic toolbar height to the compositor. r=botond 2020-11-04 03:16:04 +00:00
MobileViewportManager.h Bug 1676356 - Avoid including PresShell.h from header files. r=emilio 2020-11-23 16:08:23 +00:00
MotionPathUtils.cpp
MotionPathUtils.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
MVMContext.h Bug 1676356 - Avoid including PresShell.h from header files. r=emilio 2020-11-23 16:08:23 +00:00
nsAutoLayoutPhase.cpp
nsAutoLayoutPhase.h
nsBidi.cpp
nsBidi.h
nsBidiPresUtils.cpp Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
nsBidiPresUtils.h Bug 1685303: part 11) Add some const-correctness to frame code. r=smaug 2021-01-14 14:45:01 +00:00
nsCaret.cpp Bug 1368015 - Null-check selection in nsCaret::GetFrameAndOffset. r=masayuki 2020-11-26 11:38:11 +00:00
nsCaret.h Backed out changeset 5dd5f0d3a09b (bug 1663475) for mochitest failure on test_reftests_with_caret.html CLOSED TREE 2020-10-06 06:22:01 +03:00
nsChangeHint.h
nsCompatibility.h
nsCounterManager.cpp Bug 1548753 - [css-lists] Prefer an ancestor's counter scope over a sibling's scope. r=emilio 2020-08-27 18:26:38 +00:00
nsCounterManager.h
nsCSSColorUtils.cpp
nsCSSColorUtils.h Bug 1670853 - Support scrollbar-color and scrollbar-width on cross-platform and Linux non-native theme. r=spohl 2020-10-15 04:54:41 +00:00
nsCSSFrameConstructor.cpp Bug 1679272 - Include ScopeExit.h exactly where used. r=andi 2020-12-07 14:25:59 +00:00
nsCSSFrameConstructor.h Bug 1667594 - Avoid including nsLayoutUtils.h in nsContainerFrame.h. r=emilio 2020-09-26 18:19:14 +00:00
nsDocumentViewer.cpp Bug 1662265 - Fix input events handling for sync XHR when both TaskController and e10s are enabled r=smaug 2020-12-15 01:33:24 +00:00
nsFrameManager.cpp
nsFrameManager.h
nsFrameTraversal.cpp Bug 1665476 - Handle XUL root frame backgrounds explicitly in AppendBackgroundItemsToTop. r=mats 2020-10-20 16:42:53 +00:00
nsFrameTraversal.h
nsGenConList.cpp
nsGenConList.h Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio 2020-07-15 13:44:39 +00:00
nsIDocumentViewerPrint.h Bug 1663826 - Keep freezing navigation during window.print() for compat. r=smaug 2020-09-16 22:55:19 +00:00
nsIFrameTraversal.h Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio 2020-07-15 13:44:39 +00:00
nsILayoutHistoryState.idl
nsIPercentBSizeObserver.h
nsIPreloadedStyleSheet.idl
nsIReflowCallback.h
nsIStyleSheetService.idl
nsLayoutDebugger.cpp
nsLayoutHistoryState.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
nsLayoutUtils.cpp Bug 1466224 - Follow out-of-flow frames to their placeholders in GetAsyncScrollableAncestorFrame(). r=tnikkel 2020-12-22 04:00:51 +00:00
nsLayoutUtils.h Bug 1466224 - Follow out-of-flow frames to their placeholders in GetAsyncScrollableAncestorFrame(). r=tnikkel 2020-12-22 04:00:51 +00:00
nsPresArena.cpp
nsPresArena.h
nsPresArenaObjectList.h
nsPresContext.cpp Bug 1682045 - Allow nsPresContext to store and release the last registered OneShotPostRefreshObserver r=smaug 2021-01-18 19:23:10 +00:00
nsPresContext.h Bug 1682045 - Allow nsPresContext to store and release the last registered OneShotPostRefreshObserver r=smaug 2021-01-18 19:23:10 +00:00
nsPresContextInlines.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
nsQuoteList.cpp
nsQuoteList.h
nsRefreshDriver.cpp Backed out changeset f64bb4f21c91 (bug 1681030) for causing crashes. 2020-12-28 19:51:40 +02:00
nsRefreshDriver.h Bug 1682045 - Allow nsPresContext to store and release the last registered OneShotPostRefreshObserver r=smaug 2021-01-18 19:23:10 +00:00
nsRefreshObservers.cpp Bug 1682045 - Allow nsPresContext to store and release the last registered OneShotPostRefreshObserver r=smaug 2021-01-18 19:23:10 +00:00
nsRefreshObservers.h Bug 1682045 - Allow nsPresContext to store and release the last registered OneShotPostRefreshObserver r=smaug 2021-01-18 19:23:10 +00:00
nsStyleChangeList.cpp
nsStyleChangeList.h
nsStyleSheetService.cpp
nsStyleSheetService.h
OverflowChangedTracker.h Bug 1677635 Part 4 - Rename nsOverflowAreas to OverflowAreas, and move it into mozilla namespace. r=layout-reviewers,emilio 2020-11-18 00:08:12 +00:00
PositionedEventTargeting.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
PositionedEventTargeting.h Bug 1667594 - Avoid including nsLayoutUtils.h from various headers. r=kats 2020-09-26 17:55:00 +00:00
PresShell.cpp Bug 1682045 - Allow nsPresContext to store and release the last registered OneShotPostRefreshObserver r=smaug 2021-01-18 19:23:10 +00:00
PresShell.h Bug 1682045 - Allow nsPresContext to store and release the last registered OneShotPostRefreshObserver r=smaug 2021-01-18 19:23:10 +00:00
PresShellForwards.h Bug 1666991. Remove PresShell::GetNearestScrollableFrame. r=kats 2020-09-24 13:44:54 +00:00
PresShellInlines.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
PresState.ipdlh Bug 1660470 - Move void_t/null_t to a new IPCCore.h header. r=nika 2020-11-23 16:05:20 +00:00
RelativeTo.h Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
RestyleManager.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2021-01-06 17:17:23 +00:00
RestyleManager.h
ScrollStyles.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-08-02 15:29:15 +00:00
ScrollStyles.h Bug 1531609 part 2 - Implement overflow:clip/visible combinations. r=emilio 2020-08-01 01:57:41 +00:00
ScrollTypes.h
ShapeUtils.cpp Bug 1652254 - Remove svg from some moz.build local includes r=dholbert 2020-07-12 16:38:26 +00:00
ShapeUtils.h
StackArena.cpp
StackArena.h
StaticPresData.cpp
StaticPresData.h Bug 1674227 - Handle -moz-emoji generic in gfxPlatformFontList. r=jfkthame 2020-10-30 10:10:06 +00:00
SurfaceFromElementResult.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
TouchManager.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
TouchManager.h
Units.h Backed out changeset 3e90a3759639 (bug 1679208) for scrollbars-no-margin.html failures CLOSED TREE 2020-12-03 01:11:32 +02:00
UnitTransforms.h
ViewportUtils.cpp Bug 1619186 - Apply the layout-to-visual transform when querying text/caret rects. r=masayuki,botond 2020-08-15 00:43:51 +00:00
ViewportUtils.h Bug 1619186 - Apply the layout-to-visual transform when querying text/caret rects. r=masayuki,botond 2020-08-15 00:43:51 +00:00
WordMovementType.h
ZoomConstraintsClient.cpp Bug 1666802 - Remove LayersLogging.*. r=mattwoodrow 2020-10-11 21:20:46 +00:00
ZoomConstraintsClient.h Bug 1665332. Fetch the value of mZoomableByAPZ in the ScrollFrameHelper constructor so it is always correct. r=kats 2020-09-22 11:21:39 +00:00