gecko-dev/image
Daniel Holbert 0414682ea1 Bug 1701510: Zero out the 'body' margin for all ImageDocuments (including iframes and printed images). r=emilio
This makes us match Blink and WebKit on how to render an iframe whose src
attribute is an image URL.  They seem to have always used 0 margin in this
case, and this seems preferable from an author's perspective (since the
standard HTML-body margin feels kind of arbitrary, when viewing an image).

Note that this change does also mean that images will be slightly closer to the
upper-left of the page, if they're viewed directly and then printed.  This
shouldn't cause them to be clipped or cause other issues; they'll still be
offset from the page edge by the printed-page margins, as well as any
unprintable areas that we get from the printer.

Differential Revision: https://phabricator.services.mozilla.com/D110294
2021-04-01 00:24:10 +00:00
..
build Bug 1696111 - Use sniffers in the requested category; r=necko-reviewers,valentin 2021-03-30 00:52:32 +00:00
decoders Bug 1697670 - Remove gfx::YUVColorSpace::UNKNOWN. r=mstange 2021-03-19 00:58:23 +00:00
encoders Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
test Bug 1701510: Zero out the 'body' margin for all ImageDocuments (including iframes and printed images). r=emilio 2021-04-01 00:24:10 +00:00
AnimationFrameBuffer.cpp
AnimationFrameBuffer.h
AnimationParams.h
AnimationSurfaceProvider.cpp Bug 1651587 - Make image::Image released efficient on main thread r=aosmond 2020-07-10 14:34:01 +00:00
AnimationSurfaceProvider.h
BMPHeaders.h
ClippedImage.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
ClippedImage.h
CopyOnWrite.h
DecodePool.cpp Bug 1691589 - Reduce reliance on GeckoProfiler.h when only labels (and maybe markers) are needed - r=necko-reviewers,geckoview-reviewers,sg,agi,florian 2021-02-16 04:44:19 +00:00
DecodePool.h Bug 1672597 - Part 2: Use TaskController's thread pool for image decoding. r=aosmond 2020-10-27 15:29:26 +00:00
DecodedSurfaceProvider.cpp Bug 1651587 - Make image::Image released efficient on main thread r=aosmond 2020-07-10 14:34:01 +00:00
DecodedSurfaceProvider.h
Decoder.cpp Bug 1701758. Avoid identity sRGB transforms. r=aosmond 2021-03-31 13:15:26 +00:00
Decoder.h Bug 1678487 - Make CMSMode an enum class. r=aosmond 2021-02-13 03:59:23 +00:00
DecoderFactory.cpp
DecoderFactory.h
DecoderFlags.h
Downscaler.cpp
Downscaler.h
DownscalingFilter.h
DynamicImage.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
DynamicImage.h
FrameAnimator.cpp Bug 1691589 - Reduce reliance on GeckoProfiler.h when only labels (and maybe markers) are needed - r=necko-reviewers,geckoview-reviewers,sg,agi,florian 2021-02-16 04:44:19 +00:00
FrameAnimator.h
FrameTimeout.h
FrozenImage.cpp Bug 1697963 - Handle non-animated frozen images better, avoiding WR fallback. r=aosmond 2021-03-12 18:39:05 +00:00
FrozenImage.h Bug 1697963 - Handle non-animated frozen images better, avoiding WR fallback. r=aosmond 2021-03-12 18:39:05 +00:00
ICOFileHeaders.h
IDecodingTask.cpp
IDecodingTask.h
IProgressObserver.h Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp 2020-07-23 14:51:46 +00:00
ISurfaceProvider.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
Image.cpp Bug 1687391 - Avoid using a spinlock in ThreadSafeWeakReference, r=glandium,mccr8,Gankra,sg 2021-02-03 17:00:04 +00:00
Image.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
ImageBlocker.cpp Bug 1685900 - Split internal and external contentPolicyType. r=ckerschb,smaug 2021-01-15 12:07:16 +00:00
ImageBlocker.h
ImageCacheKey.cpp Bug 1654649 - Deny requestStorageAccess for sites with denied cookie permission. r=timhuang 2020-12-16 16:45:18 +00:00
ImageCacheKey.h Bug 1665343 - Remove blob specialness in image cache. r=tnikkel 2020-09-22 22:02:42 +00:00
ImageFactory.cpp Bug 1683557 - Make `image` buildable outside of `unified-build` environment. r=aosmond 2021-01-04 14:20:22 +00:00
ImageFactory.h
ImageLogging.h
ImageMemoryReporter.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
ImageMemoryReporter.h
ImageMetadata.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
ImageOps.cpp
ImageOps.h
ImageRegion.h Bug 1683557 - Make `image` buildable outside of `unified-build` environment. r=aosmond 2021-01-04 14:20:22 +00:00
ImageWrapper.cpp Bug 1656114 - Part 4: Accumulate page use counters in the parent process. r=emilio,nika 2020-10-11 22:03:43 +00:00
ImageWrapper.h
ImgDrawResult.h Bug 1685796 - Return BAD_IMAGE when sync-decoding an incomplete, errored image. r=tnikkel 2021-01-12 02:28:00 +00:00
LookupResult.h
MultipartImage.cpp
MultipartImage.h
Orientation.h
OrientedImage.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
OrientedImage.h
PlaybackType.h
ProgressTracker.cpp Bug 1184468 - Use nsBaseHashtable::Values. r=xpcom-reviewers,nika 2021-03-24 17:56:49 +00:00
ProgressTracker.h Bug 1698098 - Make use of nsBaseHashtable::Clone. r=xpcom-reviewers,mccr8 2021-03-19 09:01:46 +00:00
RasterImage.cpp Bug 1681546 - rename MOZ_ATOMIC_BITFIELDS methods to Load/Store. r=valentin,necko-reviewers 2020-12-09 18:14:55 +00:00
RasterImage.h Bug 1681546 - rename MOZ_ATOMIC_BITFIELDS methods to Load/Store. r=valentin,necko-reviewers 2020-12-09 18:14:55 +00:00
SVGDocumentWrapper.cpp Bug 1683557 - Make `image` buildable outside of `unified-build` environment. r=aosmond 2021-01-04 14:20:22 +00:00
SVGDocumentWrapper.h
SVGDrawingParameters.h Bug 1652254 - Remove svg from some moz.build local includes r=dholbert 2020-07-12 16:38:26 +00:00
ScriptedNotificationObserver.cpp
ScriptedNotificationObserver.h
ShutdownTracker.cpp
ShutdownTracker.h
SourceBuffer.cpp
SourceBuffer.h
StreamingLexer.h
SurfaceCache.cpp Bug 1184468 - Use nsBaseHashtable::Values. r=xpcom-reviewers,nika 2021-03-24 17:56:49 +00:00
SurfaceCache.h Bug 1651587 - Make image::Image released efficient on main thread r=aosmond 2020-07-10 14:34:01 +00:00
SurfaceCacheUtils.cpp
SurfaceCacheUtils.h
SurfaceFilters.h
SurfaceFlags.h
SurfacePipe.cpp
SurfacePipe.h
SurfacePipeFactory.h
VectorImage.cpp Bug 1699742 - Remove MOZ_GECKO_PROFILER ifdefs that are no longer needed, r=gerald. 2021-03-22 16:29:52 +00:00
VectorImage.h Bug 1683557 - Make `image` buildable outside of `unified-build` environment. r=aosmond 2021-01-04 14:20:22 +00:00
imgFrame.cpp Bug 1691589 - Reduce reliance on GeckoProfiler.h when only labels (and maybe markers) are needed - r=necko-reviewers,geckoview-reviewers,sg,agi,florian 2021-02-16 04:44:19 +00:00
imgFrame.h
imgICache.idl
imgIContainer.idl Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
imgIContainerDebug.idl
imgIEncoder.idl
imgILoader.idl
imgINotificationObserver.idl
imgIRequest.idl
imgIScriptedNotificationObserver.idl
imgITools.idl
imgLoader.cpp Bug 1696111 - ORB core Implementation; r=necko-reviewers,dragana 2021-03-30 00:52:30 +00:00
imgLoader.h Bug 708901 - Migrate to nsTHashSet in image. r=tnikkel 2021-03-23 10:36:36 +00:00
imgRequest.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
imgRequest.h Bug 1519636 - Reformat with clang-format-11 to the Google coding style r=andi,sg,geckoview-reviewers,snorp 2020-11-18 09:05:59 +00:00
imgRequestProxy.cpp Bug 1683557 - Make `image` buildable outside of `unified-build` environment. r=aosmond 2021-01-04 14:20:22 +00:00
imgRequestProxy.h Bug 1678560 - Avoid including nsILoadGroup.h in header files. r=tnikkel 2020-11-23 16:12:44 +00:00
imgTools.cpp Bug 1674777 part 3 - Change Get*LengthAndData outparam from uint32_t to size_t. r=sfink,aosmond 2021-01-31 08:35:40 +00:00
imgTools.h
moz.build Bug 1696111 - ORB core Implementation; r=necko-reviewers,dragana 2021-03-30 00:52:30 +00:00
nsIIconURI.idl