gecko-dev/layout/generic
Emilio Cobos Álvarez cfc856d950 Bug 1814047 - Make buttons not ignore the "print backgrounds" setting. r=jfkthame,layout-reviewers
We were ignoring print backgrounds, but still darkening colors, which
obviously breaks.

I tracked this down to bug 191574 /
https://searchfox.org/mozilla-central/commit/0757c0a5b18b646554969a67eedf2bcb0ad41b63

> Make sure all caller have to pass in the "ignore 'print backgrounds'
> Make block/inline _not_ ignore that pref

Which was just preserving behavior. So this seems all rather accidental.

Implement backgrounds for page / page sequence frame using
print-color-adjust, and remove the virtual method.

The XUL box removal stuff seems harmless. The only XUL boxes we have
around in content are scrollbars, and we don't have scrollbars when
printing.

Differential Revision: https://phabricator.services.mozilla.com/D168382
2023-01-31 22:22:58 +00:00
..
crashtests Bug 1639947: Re-enable a crashtest that used to crash but seems to be fine now. r=hiro 2023-01-20 00:15:50 +00:00
test Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao 2023-01-04 19:01:13 +00:00
AnonymousContentKey.h Bug 1735797 - Fix scrollbar caching on macOS. r=mstange 2021-10-18 18:25:31 +00:00
AspectRatio.cpp Bug 1683424 - Add UseBoxSizing for AspectRatio class, and fix non-replaced element usage. r=TYLin 2020-12-23 22:42:55 +00:00
AspectRatio.h Bug 1786568 - AspectRatio invalidation should check mUseBoxSizing as well. r=emilio 2022-09-21 23:17:25 +00:00
AutoCopyListener.h
BRFrame.cpp Bug 1792134 Part 6 - More rename and clean up related to StyleClear. r=emilio 2022-09-29 03:40:56 +00:00
BlockReflowState.cpp Bug 1792134 Part 6 - More rename and clean up related to StyleClear. r=emilio 2022-09-29 03:40:56 +00:00
BlockReflowState.h Bug 1792134 Part 6 - More rename and clean up related to StyleClear. r=emilio 2022-09-29 03:40:56 +00:00
CSSAlignUtils.cpp
CSSAlignUtils.h
CSSOrderAwareFrameIterator.cpp
CSSOrderAwareFrameIterator.h Bug 1799732 Part 2 - Flatten the namespace for FrameChildList and co. by removing namespace layout. r=emilio 2022-11-12 04:38:53 +00:00
ColumnSetWrapperFrame.cpp Bug 1799732 Part 3 - Convert FrameChildListID to enum class. r=emilio 2022-11-12 04:38:53 +00:00
ColumnSetWrapperFrame.h Bug 1798373 Part 7 - Change nsContainerFrame::InsertFrames() to take rvalue reference of nsFrameList. r=emilio 2022-11-01 21:15:55 +00:00
ColumnUtils.cpp
ColumnUtils.h
FrameClass.py Bug 1758564 - Allow rendering children of <img>'s shadow root. r=dholbert 2022-03-10 05:11:38 +00:00
FrameClasses.py Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao 2023-01-04 19:01:13 +00:00
GenerateFrameLists.py Bug 1790816 - Reformat layout/ with isort. r=linter-reviewers,ahal DONTBUILD 2022-11-24 17:23:27 +00:00
JustificationUtils.h
LayoutMessageUtils.h Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio 2022-08-16 16:42:58 +00:00
MathMLTextRunFactory.cpp Bug 1808757 - [refactor] Migrate defines to constexpr vars r=emilio 2023-01-09 09:03:42 +00:00
MathMLTextRunFactory.h Bug 1797805: Run clang-format on layout directory. r=dshin 2022-10-27 17:50:45 +00:00
PrintedSheetFrame.cpp Bug 1681183: Ignore unwriteable margins user specifies `Margins: None` for printing. r=dholbert,mstriemer 2022-08-15 19:55:08 +00:00
PrintedSheetFrame.h Bug 1691858 - Minor cleanup of our @page rule setup. r=AlaskanEmily 2021-02-12 15:42:38 +00:00
ReflowInput.cpp Bug 1807963 - Remove non-standard values of caption-side for good. r=TYLin,layout-reviewers 2023-01-09 18:02:23 +00:00
ReflowInput.h Bug 1804146 - Clarify why we need NS_CSS_MINMAX. r=emilio DONTBUILD 2022-12-06 03:08:00 +00:00
ReflowOutput.cpp Bug 1800907 - Do not `UnionRect` empty rects in `OverflowAreas::Union*`. r=jwatt 2022-12-13 15:23:35 +00:00
ReflowOutput.h Bug 1770729 - Fix IntersectionObserver overflow: clip on zero-sized elements. r=jwatt 2022-05-23 13:52:48 +00:00
RubyUtils.cpp
RubyUtils.h
ScrollAnchorContainer.cpp Bug 1808077 - Shrink back ScrollFrameHelper. r=hiro 2023-01-17 02:06:53 +00:00
ScrollAnchorContainer.h Bug 1808077 - Shrink back ScrollFrameHelper. r=hiro 2023-01-17 02:06:53 +00:00
ScrollAnimationBezierPhysics.cpp
ScrollAnimationBezierPhysics.h
ScrollAnimationMSDPhysics.cpp Bug 1759958 - Implement ScrollAnimationMSDPhysics::ApplyContentShift() correctly. r=hiro 2022-03-18 05:13:59 +00:00
ScrollAnimationMSDPhysics.h Bug 1759958 - Implement ScrollAnimationMSDPhysics::ApplyContentShift() correctly. r=hiro 2022-03-18 05:13:59 +00:00
ScrollAnimationPhysics.h Bug 1759958 - Add comments to clarify the purpose of ScrollAnimationPhysics::Update() and ApplyContentShift(). r=hiro 2022-03-18 05:13:59 +00:00
ScrollGeneration.cpp Bug 1571758 - Introduce scroll generation in APZC and SampledAPZCState and inform it to the scrollable frame on the main-thread via RepaintRequest. r=botond 2022-01-31 09:40:33 +00:00
ScrollGeneration.h Bug 1767131: run clang-format on the layout/ directory. r=emilio DONTBUILD 2022-04-30 15:25:29 +00:00
ScrollOrigin.h
ScrollPositionUpdate.cpp Bug 1774537 - Propagate snap target ids for async scroll operations triggered on the main-thread, but will be processed in APZ. r=botond 2022-07-15 06:47:37 +00:00
ScrollPositionUpdate.h Bug 1774537 - Propagate snap target ids for async scroll operations triggered on the main-thread, but will be processed in APZ. r=botond 2022-07-15 06:47:37 +00:00
ScrollSnap.cpp Bug 1791606 - Downgrade the assertion when we found multiple SnapTargets for the same focused content. r=emilio 2022-10-31 22:58:12 +00:00
ScrollSnap.h Bug 1777649 - Factor out some utility functions for scroll snap. r=botond 2022-07-31 22:51:56 +00:00
ScrollSnapTargetId.h Bug 1774537 - Propagate last snap target id(s) from APZ to the content. r=botond 2022-07-15 06:47:37 +00:00
ScrollVelocityQueue.cpp
ScrollVelocityQueue.h
ScrollbarActivity.cpp Bug 1756831. When considering mousemoves over scroll frames to show overlay scrollbars rejects mousemove over content descendants that aren't frame descandants. r=emilio 2022-03-22 15:31:45 +00:00
ScrollbarActivity.h
ScrollbarPreferences.h
StickyScrollContainer.cpp Bug 1472602 - Sticky/relative position fixes in nsTableWrapperFrame. r=dholbert 2022-05-23 23:40:42 +00:00
StickyScrollContainer.h
TextDrawTarget.h Bug 1802799 - [refactor] Migrate NS_STYLE_TEXT_DECORATION_STYLE_* defines r=emilio,geckoview-reviewers,ohall 2022-12-19 22:47:24 +00:00
TextOverflow.cpp Bug 1789123 - Make anonymous box wrapping inside XUL boxes be similar to modern flex boxes. r=dholbert 2022-09-08 11:51:15 +00:00
TextOverflow.h Bug 1797211: Make TextOverflow's default constructor private (as a nudge towards its static factory method). r=dshin 2022-10-27 17:58:06 +00:00
ViewportFrame.cpp Bug 1379458 - The ScrollParentId should match the ASR tree. r=botond,tnikkel,mstange 2022-12-27 14:08:51 +00:00
ViewportFrame.h Bug 1799732 Part 3 - Convert FrameChildListID to enum class. r=emilio 2022-11-12 04:38:53 +00:00
Visibility.h
WBRFrame.cpp Bug 1730774 part 2: Add includes and forward-decls to fix non-unified-build bustage in layout/generic. r=TYLin 2021-09-15 16:15:02 +00:00
WritingModes.h Bug 1769512 - Implement overflow-clip-margin: <length>. r=jwatt 2022-05-23 07:21:43 +00:00
broken-image.png
folder.png
frame-graph.py
jar.mn
loading-image.png
moz.build Bug 1799407 - Move definitions in FrameChildList.h/cpp into nsFrameList.h/cpp. r=emilio 2022-11-07 18:59:10 +00:00
nsAbsoluteContainingBlock.cpp Bug 1803377 - Rename the values of the `IntrinsicDirty` enum r=emilio 2022-12-02 12:27:31 +00:00
nsAbsoluteContainingBlock.h Bug 1799732 Part 3 - Convert FrameChildListID to enum class. r=emilio 2022-11-12 04:38:53 +00:00
nsAtomicContainerFrame.h
nsBackdropFrame.cpp Bug 1730774 part 2: Add includes and forward-decls to fix non-unified-build bustage in layout/generic. r=TYLin 2021-09-15 16:15:02 +00:00
nsBackdropFrame.h Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsBlockDebugFlags.h Bug 1323517 Part 2 - Remove float debug log that requires manual #define. r=jfkthame 2022-07-07 19:01:54 +00:00
nsBlockFrame.cpp Bug 1808888 - [refactor] Migrate NS_STYLE_LIST_STYLE_POSITION_* defines r=emilio 2023-01-09 07:07:13 +00:00
nsBlockFrame.h Bug 1799732 Part 3 - Convert FrameChildListID to enum class. r=emilio 2022-11-12 04:38:53 +00:00
nsBlockReflowContext.cpp Bug 1792134 Part 6 - More rename and clean up related to StyleClear. r=emilio 2022-09-29 03:40:56 +00:00
nsBlockReflowContext.h Bug 1777627 Part 2 - Remove aIsAdjacentWithBStart argument on nsBlockReflowContext::ReflowBlock(). r=emilio 2022-07-05 23:43:52 +00:00
nsCanvasFrame.cpp Bug 1379458 - The ScrollParentId should match the ASR tree. r=botond,tnikkel,mstange 2022-12-27 14:08:51 +00:00
nsCanvasFrame.h Bug 1800238 - Make popups position: fixed rather than position: absolute. r=TYLin 2022-11-12 21:10:18 +00:00
nsColumnSetFrame.cpp Bug 1800952 - Compute column-rule-width to 0 when column-rule-style is none. r=emilio 2023-01-02 21:11:30 +00:00
nsColumnSetFrame.h Bug 1798373 Part 7 - Change nsContainerFrame::InsertFrames() to take rvalue reference of nsFrameList. r=emilio 2022-11-01 21:15:55 +00:00
nsContainerFrame.cpp Bug 1809430 - Clean up ClientToWindowRect. r=cmartin,mstange 2023-01-26 11:19:16 +00:00
nsContainerFrame.h Bug 1798373 Part 7 - Change nsContainerFrame::InsertFrames() to take rvalue reference of nsFrameList. r=emilio 2022-11-01 21:15:55 +00:00
nsContainerFrameInlines.h Bug 1733952 - When computing inline intrinsic sizes, resolve with a 0 percentage basis rather than just resolving to zero if there's a percentage. r=jfkthame 2021-10-04 15:20:30 +00:00
nsDirection.h
nsFirstLetterFrame.cpp Bug 290125 - Create a pref to treat floated ::first-letter more like webkit/blink, not tightly wrapping the glyph extents. r=emilio 2022-12-20 07:55:24 +00:00
nsFirstLetterFrame.h Bug 290125 - Create a pref to treat floated ::first-letter more like webkit/blink, not tightly wrapping the glyph extents. r=emilio 2022-12-20 07:55:24 +00:00
nsFlexContainerFrame.cpp Bug 1809564 - Remove macros getting main/cross component. r=dholbert 2023-01-11 23:17:44 +00:00
nsFlexContainerFrame.h Bug 1804997 Part 4 - Move SumOfChildrenBlockSizeProperty into a struct. r=dholbert 2022-12-15 21:58:31 +00:00
nsFloatManager.cpp Bug 1060421 - Change the type of [Int]PointTyped::[x|y] back to [Int]CoordTyped. r=botond 2022-11-04 18:29:35 +00:00
nsFloatManager.h Bug 1792134 Part 6 - More rename and clean up related to StyleClear. r=emilio 2022-09-29 03:40:56 +00:00
nsFontInflationData.cpp Bug 1744009 - Simplify combobox <select> code. r=mconley,dholbert 2022-01-17 11:10:05 +00:00
nsFontInflationData.h
nsFrameList.cpp Bug 1799732 Part 3 - Convert FrameChildListID to enum class. r=emilio 2022-11-12 04:38:53 +00:00
nsFrameList.h Bug 1799732 Part 3 - Convert FrameChildListID to enum class. r=emilio 2022-11-12 04:38:53 +00:00
nsFrameSelection.cpp Bug 1803355: Basic implementation of Custom Highlight API. r=edgar,emilio 2023-01-27 11:42:18 +00:00
nsFrameSelection.h Bug 1803355: Basic implementation of Custom Highlight API. r=edgar,emilio 2023-01-27 11:42:18 +00:00
nsFrameSetFrame.cpp Bug 1799732 Part 3 - Convert FrameChildListID to enum class. r=emilio 2022-11-12 04:38:53 +00:00
nsFrameSetFrame.h Bug 1798373 Part 5 - Change nsContainerFrame::SetInitialChildList() to take rvalue reference of nsFrameList. r=emilio 2022-11-01 21:15:54 +00:00
nsFrameState.cpp Bug 1542807 part 2 - Remove (now unused) nsBulletFrame. r=emilio 2021-06-14 01:22:05 +00:00
nsFrameState.h
nsFrameStateBits.h Bug 1799343 - Simplify XUL popup handling. r=TYLin 2022-11-09 20:38:04 +00:00
nsGfxScrollFrame.cpp Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
nsGfxScrollFrame.h Bug 1804812 - Allow authors to override listbox select overflow styles. r=jfkthame,layout-reviewers 2023-01-07 23:52:31 +00:00
nsGridContainerFrame.cpp Bug 1805097 - [refactor] Migrate NS_STYLE_MASONRY_* defines r=emilio 2023-01-03 12:14:56 +00:00
nsGridContainerFrame.h Bug 1798373 Part 7 - Change nsContainerFrame::InsertFrames() to take rvalue reference of nsFrameList. r=emilio 2022-11-01 21:15:55 +00:00
nsHTMLCanvasFrame.cpp Bug 1805209 - Use RemoteTexture for WebGPU r=gfx-reviewers,lsalzman 2022-12-23 20:41:02 +00:00
nsHTMLCanvasFrame.h Bug 1802225 - Remove class Layer. r=tnikkel 2022-11-29 01:52:01 +00:00
nsHTMLParts.h Bug 1740365 Part 1 - Use CSS page name when constructing nsPageContentFrames and computed page content style r=dholbert,emilio 2022-11-10 23:43:48 +00:00
nsIAnonymousContentCreator.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
nsIFrame.cpp Bug 1814047 - Make buttons not ignore the "print backgrounds" setting. r=jfkthame,layout-reviewers 2023-01-31 22:22:58 +00:00
nsIFrame.h Bug 1814047 - Make buttons not ignore the "print backgrounds" setting. r=jfkthame,layout-reviewers 2023-01-31 22:22:58 +00:00
nsIFrameInlines.h Bug 1814026 - Remove IsSVGGeometryFrameOrSubclass and improve SVGGeometryFrame::IsInvisible r=emilio 2023-01-31 21:26:19 +00:00
nsILineIterator.cpp Bug 1792333 - Factor out the "find closest frame in the line" checks. r=dholbert 2022-10-02 07:06:46 +00:00
nsILineIterator.h Bug 1793375 - Rename nsILineIterator::GetDirection to IsLineIteratorFlowRTL. r=dholbert 2022-10-03 11:00:39 +00:00
nsIScrollPositionListener.h
nsIScrollableFrame.h Bug 1794056 - Use static pref version of scroll distance prefs. r=hiro,TYLin 2022-10-06 23:56:58 +00:00
nsIStatefulFrame.h
nsImageFrame.cpp Bug 1771867 - Early Hints Phase 2 - Part 7: Pass early hint preload to image preloader r=necko-reviewers,valentin 2022-12-02 16:15:55 +00:00
nsImageFrame.h Bug 1795990. Remove unused nsImageFrame/nsImageBoxFrame::RestartAnimation/StopAnimation. r=emilio 2022-10-21 06:03:52 +00:00
nsImageMap.cpp Bug 1665151 - Part 2: Expose custom element default accessibility attributes. r=edgar,Jamie,credential-management-reviewers,sgalich 2022-11-02 14:50:56 +00:00
nsImageMap.h Bug 1751473 Part 2 - Use CSSIntPoint instead of nsIntPoint in image event handling code. r=emilio 2022-01-22 01:07:19 +00:00
nsInlineFrame.cpp Bug 1798373 Part 4 - Remove nsFrameList::SetFrames() that takes nsFrameList. r=emilio 2022-11-01 21:15:53 +00:00
nsInlineFrame.h Bug 1667501 - Add an nsIFrame::IsFrameOfType bit to say whether frames support aspect-ratio. r=TYLin 2021-02-11 00:19:58 +00:00
nsIntervalSet.cpp
nsIntervalSet.h
nsLeafFrame.cpp Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsLeafFrame.h Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsLineBox.cpp Bug 1792333 - Factor out the "find closest frame in the line" checks. r=dholbert 2022-10-02 07:06:46 +00:00
nsLineBox.h Bug 1793375 - Rename nsILineIterator::GetDirection to IsLineIteratorFlowRTL. r=dholbert 2022-10-03 11:00:39 +00:00
nsLineLayout.cpp Bug 1805603: When aligning inline frames for `text-align`, ignore marker frames. r=emilio 2023-01-03 21:30:05 +00:00
nsLineLayout.h Bug 1758018 Part 1 - Rename the helpers testing "position:relative" or "position:sticky". r=emilio 2022-03-04 03:02:00 +00:00
nsPageContentFrame.cpp Bug 1802238 - Don't allow using mixed page sizes when printing unless layout.css.allow-mixed-page-sizes is set r=dholbert 2022-12-06 21:24:29 +00:00
nsPageContentFrame.h Bug 1803861 - Implement nsPageFrame::FirstContinuation and nsPageContentFrame::FirstContinuation with constant complexity r=dholbert 2022-12-06 00:07:09 +00:00
nsPageFrame.cpp Bug 1802238 - Don't allow using mixed page sizes when printing unless layout.css.allow-mixed-page-sizes is set r=dholbert 2022-12-06 21:24:29 +00:00
nsPageFrame.h Bug 1814047 - Make buttons not ignore the "print backgrounds" setting. r=jfkthame,layout-reviewers 2023-01-31 22:22:58 +00:00
nsPageSequenceFrame.cpp Bug 1464761 Part 4 - Remove nsReflowStatus::mTruncated bit. r=dholbert 2022-07-27 21:55:18 +00:00
nsPageSequenceFrame.h Bug 1814047 - Make buttons not ignore the "print backgrounds" setting. r=jfkthame,layout-reviewers 2023-01-31 22:22:58 +00:00
nsPlaceholderFrame.cpp Bug 1799732 Part 3 - Convert FrameChildListID to enum class. r=emilio 2022-11-12 04:38:53 +00:00
nsPlaceholderFrame.h Bug 1799343 - Simplify XUL popup handling. r=TYLin 2022-11-09 20:38:04 +00:00
nsQueryFrame.h
nsRubyBaseContainerFrame.cpp Bug 1757230 - Add missing includes elsewhere to unbust hybrid builds. 2022-02-26 01:08:16 +01:00
nsRubyBaseContainerFrame.h Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsRubyBaseFrame.cpp
nsRubyBaseFrame.h
nsRubyContentFrame.cpp
nsRubyContentFrame.h
nsRubyFrame.cpp Bug 1730774 part 2: Add includes and forward-decls to fix non-unified-build bustage in layout/generic. r=TYLin 2021-09-15 16:15:02 +00:00
nsRubyFrame.h
nsRubyTextContainerFrame.cpp Bug 1799732 Part 3 - Convert FrameChildListID to enum class. r=emilio 2022-11-12 04:38:53 +00:00
nsRubyTextContainerFrame.h Bug 1798373 Part 7 - Change nsContainerFrame::InsertFrames() to take rvalue reference of nsFrameList. r=emilio 2022-11-01 21:15:55 +00:00
nsRubyTextFrame.cpp Bug 1697529 - Implement visibility: collapse support for ruby text. r=dholbert 2021-03-12 09:28:00 +00:00
nsRubyTextFrame.h Bug 1697529 - Implement visibility: collapse support for ruby text. r=dholbert 2021-03-12 09:28:00 +00:00
nsSplittableFrame.cpp Bug 1725555 - patch 1 - Cache first-continuation pointer in nsContinuingTextFrame so that accessing FirstContinuation() is constant-time. r=emilio 2021-08-27 16:23:24 +00:00
nsSplittableFrame.h Bug 1803861 - Implement nsPageFrame::FirstContinuation and nsPageContentFrame::FirstContinuation with constant complexity r=dholbert 2022-12-06 00:07:09 +00:00
nsSubDocumentFrame.cpp Bug 1379458 - The ScrollParentId should match the ASR tree. r=botond,tnikkel,mstange 2022-12-27 14:08:51 +00:00
nsSubDocumentFrame.h Bug 1802225 - Remove class Layer. r=tnikkel 2022-11-29 01:52:01 +00:00
nsTextFrame.cpp Bug 1803355: Basic implementation of Custom Highlight API. r=edgar,emilio 2023-01-27 11:42:18 +00:00
nsTextFrame.h Bug 1803355: Basic implementation of Custom Highlight API. r=edgar,emilio 2023-01-27 11:42:18 +00:00
nsTextFrameUtils.cpp Bug 1744009 - Simplify combobox <select> code. r=mconley,dholbert 2022-01-17 11:10:05 +00:00
nsTextFrameUtils.h Bug 1744009 - Simplify combobox <select> code. r=mconley,dholbert 2022-01-17 11:10:05 +00:00
nsTextRunTransformations.cpp Bug 1799346 - [refactor] Remove unused nsStylePage and nsStyleText defines r=emilio 2022-11-07 00:28:48 +00:00
nsTextRunTransformations.h Bug 1747922 - Rename StyleMathMLMathVariant -> StyleMathVariant. 2021-12-30 02:35:54 +01:00
nsVideoFrame.cpp Bug 1794164 - Fix C++20 -Wenum-float-conversion warnings in layout-related code. r=dholbert 2022-10-28 00:45:25 +00:00
nsVideoFrame.h Bug 1783069 - Make aspect-ratio work on <video> properly. r=boris,Oriol,layout-reviewers 2022-08-16 12:20:15 +00:00