gecko-dev/layout/base
Masayuki Nakano 2fde14a338 Bug 1623918 - part 2: Mark `nsINode::GetSelectionRootContent()` and its root callers as `MOZ_CAN_RUN_SCRIPT` as far as possible r=smaug
This patch tries to mark root callers of `nsINode::GetSelectionRootContent()`
which calls `nsINode::GetAnonymousRootElementOfTextEditor()` as far as possible
(and reasonable).

It's used by `ContentEventHandler` so that a lot of methods of
`EventStateManager`, `ContentEventHandler`, `IMEContentObserver` which are main
users of it are also marked as `MOZ_CAN_RUN_SCRIPT`.  I think that this is
reasonable.

On the other hand, it might not be reasonable to mark `IMEStateManager` methods
as `MOZ_CAN_RUN_SCRIPT` for initializing `IMEContentObserver` because
`IMEStateManager` may be able to initialize `IMEContentObserver` asynchronously
and its root callers are in XUL layout code.  Therefore, this patch uses
`MOZ_CAN_RUN_SCRIPT_BOUNDARY` for `IMEStateManager` at least for now.

Differential Revision: https://phabricator.services.mozilla.com/D92730
2020-10-09 02:37:47 +00:00
..
crashtests Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio 2020-08-01 01:56:58 +00:00
gtest Bug 1643464 - Part 1: Rename eLeft/eRight to ePrimary/eSecondary r=masayuki 2020-06-19 18:02:41 +00:00
tests Bug 1588458 - Replace dxr links by searchfox in the code/test r=kats,sparky 2020-10-08 14:02:40 +00:00
AccessibleCaret.cpp Bug 1667594 - Move nsLayoutUtils::RectCallback to namespace scope. r=emilio,jgilbert 2020-09-30 21:06:47 +00:00
AccessibleCaret.h Bug 1657256 - Always update the cached mImaginaryCaretRect in SetPosition(). r=marionette-reviewers,mats,whimboo 2020-08-31 17:54:19 +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 1637130 - Rename visual overflow to ink overflow. r=dbaron 2020-07-20 20:17:36 +00:00
AccessibleCaretManager.h Bug 1623918 - part 2: Mark `nsINode::GetSelectionRootContent()` and its root callers as `MOZ_CAN_RUN_SCRIPT` as far as possible r=smaug 2020-10-09 02:37:47 +00:00
ArenaObjectID.h
AutoProfilerStyleMarker.h
CaretAssociationHint.h
DisplayPortUtils.cpp Bug 1664101 - When querying the displayport for the purpose of applying it to fixed content, apply an async scroll adjustment suitable for fixed content. r=kats 2020-10-07 22:36:57 +00:00
DisplayPortUtils.h Bug 1664101 - When querying the displayport for the purpose of applying it to fixed content, apply an async scroll adjustment suitable for fixed content. r=kats 2020-10-07 22:36:57 +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 Bug 1259861 - Move everything else into the mozilla namespace in layout/svg r=dholbert 2020-07-11 02:20:20 +00:00
GeometryUtils.h Bug 1593756 Part 1: Add a new method GetBoxQuadsFromWindowOrigin. r=emilio,hiro 2020-03-04 00:45:38 +00:00
LayoutConstants.h Bug 1667594 - Avoid including nsLayoutUtils.h in nsContainerFrame.h. r=emilio 2020-09-26 18:19:14 +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 Bug 1613192: Fix non-unified build bustage in layout/{base,generic} directories. r=TYLin 2020-02-04 19:34:51 +00:00
MVMContext.h
MediaEmulationData.h Bug 1614208 - Remove more dependencies on nsStyleConsts.h / ServoStyleConsts.h. r=jfkthame 2020-02-11 01:22:15 +00:00
MobileViewportManager.cpp Bug 1667863 - Replace AppendToString of SizeTyped with ostream usage. r=mattwoodrow 2020-09-29 11:54:33 +00:00
MobileViewportManager.h Backed out changeset b5d0e150491e (bug 1661544) for perma failures on HTMLBody-ScrollArea_quirksmode.html. 2020-09-12 09:48:34 +03:00
MotionPathUtils.cpp Bug 1259861 - Move everything else into the mozilla namespace in layout/svg r=dholbert 2020-07-11 02:20:20 +00:00
MotionPathUtils.h Bug 1613490 - Cleanup usage of ReferenceBox. r=miko 2020-02-07 13:34:42 +00:00
OverflowChangedTracker.h
PositionedEventTargeting.cpp Bug 1668870 - Ignore touch listeners in the system group for event retargeting. r=smaug 2020-10-06 18:03:25 +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 1623918 - part 2: Mark `nsINode::GetSelectionRootContent()` and its root callers as `MOZ_CAN_RUN_SCRIPT` as far as possible r=smaug 2020-10-09 02:37:47 +00:00
PresShell.h Bug 1623918 - part 2: Mark `nsINode::GetSelectionRootContent()` and its root callers as `MOZ_CAN_RUN_SCRIPT` as far as possible r=smaug 2020-10-09 02:37:47 +00:00
PresShellForwards.h Bug 1666991. Remove PresShell::GetNearestScrollableFrame. r=kats 2020-09-24 13:44:54 +00:00
PresShellInlines.h
PresState.ipdlh Bug 1635224 - Preserve mLastValueChangeWasInteractive between SaveState and RestoreState r=emilio,masayuki 2020-05-08 15:15:04 +00:00
RelativeTo.h Bug 1631568 - Move ViewportType and RelativeTo into a separate header. r=tnikkel 2020-05-05 19:33:40 +00:00
RestyleManager.cpp Bug 1664156 - Remove -moz-suppressed. r=edgar 2020-09-13 11:33:13 +00:00
RestyleManager.h Bug 1519636 - Reformat recent changes to the Google coding style r=necko-reviewers,dragana 2020-05-30 09:55:27 +00:00
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 Backed out changeset 69fded25adc2 (bug 1602088) for causing several box-shadow reftest failures. 2020-01-30 13:23:10 +02:00
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 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in layout. r=dholbert 2020-03-17 09:38:32 +00:00
StackArena.h
StaticPresData.cpp Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame 2020-06-22 09:45:40 +00:00
StaticPresData.h Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame 2020-06-22 09:45:40 +00:00
SurfaceFromElementResult.h Bug 1667594 - Move nsLayoutUtils::SurfaceFromElementResult to its own file. r=emilio 2020-09-30 21:05:34 +00:00
TouchManager.cpp Bug 1667594 - Avoid including nsLayoutUtils.h in nsIFrame.h. r=emilio 2020-09-26 18:18:11 +00:00
TouchManager.h Bug 1648630 - Part 3: Propagate layers id to touch event properly for Fission; r=kats 2020-07-03 07:45:35 +00:00
UnitTransforms.h Bug 1618432 - Move the root horizontal scrollbar in response to the dynamic toolbar transitions. r=botond 2020-03-03 05:33:54 +00:00
Units.h Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame 2020-06-22 09:45:40 +00:00
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 1668921 - Move ZoomConstraints serializer into a friend function. r=mattwoodrow 2020-10-08 12:39:37 +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
moz.build Bug 1667475 - Moved displayport-related functions from nsLayoutUtils to a new DisplayPortUtils class. r=kats 2020-10-03 21:07:34 +00:00
nsAutoLayoutPhase.cpp
nsAutoLayoutPhase.h
nsBidi.cpp
nsBidi.h Backed out changeset 8f4da5c776b0 (bug 1630704) for build bustages. CLOSED TREE 2020-04-25 15:29:59 +03:00
nsBidiPresUtils.cpp Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
nsBidiPresUtils.h Bug 1645879 - Detect reversed direction frame when collapsing selection r=jfkthame 2020-06-16 11:52:49 +00:00
nsCSSColorUtils.cpp
nsCSSColorUtils.h
nsCSSFrameConstructor.cpp Bug 1660122 Part 6 - Move static function IsXULDisplayType() into nsStyleDisplay. r=emilio 2020-09-29 22:32:57 +00:00
nsCSSFrameConstructor.h Bug 1667594 - Avoid including nsLayoutUtils.h in nsContainerFrame.h. r=emilio 2020-09-26 18:19:14 +00:00
nsCaret.cpp 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
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 Bug 1614208 - Remove more dependencies on nsStyleConsts.h / ServoStyleConsts.h. r=jfkthame 2020-02-11 01:22:15 +00:00
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 Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan 2020-01-21 09:51:27 +00:00
nsDocumentViewer.cpp Bug 1669096: Add missing kungFuDeathGrip. r=nika 2020-10-06 18:05:32 +00:00
nsFrameManager.cpp Bug 1647525 - Use HasAnyStateBits() in nsFrameManager r=emilio 2020-06-25 15:39:32 +00:00
nsFrameManager.h Bug 1622008 Part 1 - Revise nsFrameManager's documentation. r=dholbert 2020-03-12 21:50:18 +00:00
nsFrameTraversal.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in layout. r=dholbert 2020-03-17 09:38:32 +00:00
nsFrameTraversal.h
nsGenConList.cpp No bug - Remove a comment over an assertion that used to make an exception for XBL. 2019-12-28 02:46:18 +00:00
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 Bug 1596958 - Synchronize layouthistorystate to parent process, r=peterv 2019-12-05 20:30:45 +00:00
nsIPercentBSizeObserver.h
nsIPreloadedStyleSheet.idl
nsIReflowCallback.h
nsIStyleSheetService.idl
nsLayoutDebugger.cpp Bug 1630704 - Part 28: Remove nsFrame r=emilio 2020-07-06 22:38:11 +00:00
nsLayoutHistoryState.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in layout. r=dholbert 2020-03-17 09:38:32 +00:00
nsLayoutUtils.cpp Bug 1668966. Only clear PresShell::mResolutionUpdated after the apz transaction. r=kats,botond 2020-10-04 21:26:46 +00:00
nsLayoutUtils.h Bug 1667475 - Moved displayport-related functions from nsLayoutUtils to a new DisplayPortUtils class. r=kats 2020-10-03 21:07:34 +00:00
nsPresArena.cpp Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj 2020-06-10 10:46:14 +00:00
nsPresArena.h
nsPresArenaObjectList.h
nsPresContext.cpp Bug 1670051 - Add a stack-capturing marker when calling ThemeChanged in the parent process. r=dholbert 2020-10-09 01:58:24 +00:00
nsPresContext.h Backed out changeset 20fadec3e9dc (bug 1187682) for perma failures on layout/reftests/mathml/stretchy-munderover-1c.html. CLOSED TREE 2020-10-02 17:11:33 +03:00
nsPresContextInlines.h
nsQuoteList.cpp Bug 1605803 - Use cbindgen for content property. r=xidorn 2020-01-05 13:10:39 +00:00
nsQuoteList.h
nsRefreshDriver.cpp Bug 1667475 - Moved displayport-related functions from nsLayoutUtils to a new DisplayPortUtils class. r=kats 2020-10-03 21:07:34 +00:00
nsRefreshDriver.h Bug 1666617 - Add refresh observer descriptions to the RefreshDriverTick markers. r=smaug 2020-09-25 11:42:35 +00:00
nsRefreshObservers.h Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange 2020-08-04 21:17:50 +00:00
nsStyleChangeList.cpp
nsStyleChangeList.h Bug 1629732 - Fix non-unified build errors in layout/base. r=tnikkel 2020-04-14 03:05:26 +00:00
nsStyleSheetService.cpp Bug 1626570 - Improve handling of copying arrays in layout/base/. r=emilio 2020-05-05 10:40:24 +00:00
nsStyleSheetService.h