Nicholas Nethercote
15a618076e
Bug 1207944 (part 4) - Use SetColor(const Color&) when setting from an nscolor. r=jwatt.
...
In various places SetColor() gets passed an nscolor. These are converted
(either implicitly or explicitly) to a gfxRBGA, and then to a gfx::Color.
This patch changes all these cases to avoid the middle step, by (a)
constructing a gfx::Color directly instead of an nscolor, or (b) by converting
an nscolor with Color::FromABGR().
2015-09-23 23:41:30 -07:00
Jonathan Kew
7dc956655b
Bug 1193519 pt 10 - Clean up remaining mentions of 'sideways-left' in code comments. r=dholbert
2015-09-24 10:23:35 +01:00
Christoph Kerschbaumer
0e075876c3
Bug 1048048 - add preload content policy types for images (r=seth)
2015-09-20 14:55:59 -07:00
Wes Kocher
7e27875d2c
Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
...
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer
46f476eda8
Bug 1048048 - add preload content policy types for images (r=seth)
2015-09-20 14:55:59 -07:00
Masayuki Nakano
00ded62efd
Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
329427650a
Bug 895274 part.25 Rename NS_MOUSE_MOVE to eMouseMove r=smaug
2015-08-29 08:58:29 +09:00
Masayuki Nakano
5473d2dcb9
Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug
2015-08-22 10:34:51 +09:00
Seth Fowler
978efc9923
Bug 1151359 (Part 3) - Treat nsImageFrames subject to scale animation as having an identity scale when predicting size. r=tn,birtles
2015-07-19 19:30:40 -07:00
Seth Fowler
d8ebf7a220
Bug 1151359 (Part 1) - Predict the size of nsImageFrame images before drawing. r=tn
2015-07-19 19:30:35 -07:00
Markus Stange
3e403b093e
Bug 1182929 - Work around bug 803703 by refusing to turn heavily-downscaled images into image layers. r=seth
2015-07-14 12:06:27 -04:00
Timothy Nikkel
5d609865a6
Bug 1176156. Make sure images are asked to decode if we are drawing the alt feedback instead of the image. r=seth
...
The Draw() call on the image would normally kick off decoding, but we don't do that if we are drawing the alt feedback instead.
2015-07-12 19:10:07 -05:00
Timothy Nikkel
2968787960
Bug 1176081. Add a pref to control drawing of the image loading place holder icon and border, and disable it. r=seth
...
The loading icon and border is a little too intrusive.
2015-07-09 19:13:31 -05:00
Seth Fowler
e043206210
Bug 1177587 - Detect use of <img> elements for animation and use sync decoding to reduce flicker. r=tn
2015-07-07 14:00:08 -07:00
Emanuel Hoogeveen
b30abdc582
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Seth Fowler
69bd34af46
Bug 1163878 (Part 2) - Use IsImageContainerAvailable() when making layerization decisions and only call GetImageContainer() if we layerize. r=tn
2015-05-13 00:23:46 -07:00
L. David Baron
2dae17432b
Bug 1160635 patch 2 - Stop making image resizing optimization when image has percent width or height. r=dholbert
...
The reftests pass with the patch, based on local testing.
2015-05-06 08:52:19 +02:00
Nicolas Silva
d73f54cb00
Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas
2015-04-21 17:04:57 +02:00
Ehsan Akhgari
5f0881261e
Bug 1156028 - Teach clang-analyzer about XPCOM assertion macros; r=froydnj
2015-04-20 13:10:35 -04:00
Ehsan Akhgari
49be5ef4ff
Bug 1156097 - Make nsImageFrame::mImageMap an nsRefPtr; r=roc
2015-04-19 16:44:08 -04:00
Seth Fowler
3029fc3410
Bug 1150704 - Use the same dest rect calculation for nsDisplayImage::GetOpaqueRegion and nsDisplayImage::GetDestRect. r=dholbert
2015-04-07 18:55:28 -07:00
Seth Fowler
610a6bff26
Bug 1150774 (Part 2) - Use the correct units in nsDisplayImageContainer::ConfigureLayer and related code. r=botond
2015-04-07 18:55:28 -07:00
Mats Palmgren
3f92be8fe8
Bug 1148833 part 3 - Remove nsIFrame::WillReflow and add a non-virtual MarkInReflow method instead that sets NS_FRAME_IN_REFLOW. Call it at the start of Reflow(). r=roc
2015-03-29 22:38:40 +00:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Seth Fowler
2797fe5bdc
Bug 1019840 - Use cached intrinsic size in nsImageFrame::ComputeSize unless the image loader has a size. r=tn
2015-03-18 18:29:32 -07:00
Seth Fowler
8e05b4b298
Bug 1141376 - Do not call OnSizeAvailable in nsImageFrame::Init. r=tn
2015-03-18 18:29:32 -07:00
Seth Fowler
2349e6b580
Bug 1125055 - Sync decode layerized images if necessary. r=roc,tn
2015-03-17 19:40:16 -07:00
Seth Fowler
d338981ac7
Bug 1143267 - Make nsDisplayAltFeedback use nsGenericImageGeometry. r=tn
2015-03-17 19:40:16 -07:00
Andrea Marchesini
40ecc85b89
Bug 1134280 - Get rid of Tag() - patch 2.7 - layout/generic - Fix all the occurrences, m=smaug, r=surkov
2015-03-03 11:09:00 +00:00
Andrea Marchesini
6b10d5e43e
Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
2015-03-03 11:08:59 +00:00
Seth Fowler
b0c97a3c2b
Bug 1130328 (Part 2) - Update nsImageFrame to always use InvalidateLayer when handling FRAME_UPDATE. r=tn
2015-02-11 01:11:43 -08:00
Seth Fowler
4f7d6cb3c7
Bug 1128769 (Part 2) - Check if we invalidated for a sync decode and never painted before invalidating for sync decoding again. r=tn
2015-02-09 23:27:39 -08:00
Nicholas Nethercote
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Seth Fowler
087a3ec994
Bug 1128225 (Part 4) - Record the last draw result in nsDisplayImage and use it to decide whether to sync decode. r=tn
2015-02-04 13:50:56 -08:00
Seth Fowler
8f4d0bdde5
Bug 1118655 - Use decode-on-draw only, and ignore RequestDecode and the like, when APZ and downscale-during-decode are enabled. r=tn
2015-01-19 15:46:55 -08:00
Jonathan Kew
e97ee63a45
Bug 1113684 - part 1 - Handle vertical writing modes when displaying alt-text alongside a broken-image icon. r=smontagu
2015-01-06 20:56:03 +00:00
Seth Fowler
a5f4ad7f13
Bug 1106252 - Make nsImageFrame's icon loading code more robust. r=tn
2014-12-10 18:42:37 -08:00
Daniel Holbert
9a9c64d535
Bug 1098417 part 2: Make nsImageFrame pass "object-position"-determined anchor-point to DrawSingleImage. r=seth
2014-11-25 16:46:14 -08:00
Seth Fowler
24d84b70eb
Bug 1102617 - Replace imgIContainer::FrameIsOpaque with imgIContainer::IsOpaque. r=tn
2014-11-24 23:42:43 -08:00
Daniel Holbert
ecba53f98a
Bug 1101128 part 2: Make nsDisplayImage::GetOpaqueRegion() take object-fit & object-position into account. r=seth
2014-11-19 18:34:52 -08:00
Daniel Holbert
7ddd43ca7e
Bug 1101128 part 1: Move nsDisplayImage::GetOpaqueRegion() to .cpp file, and label it as MOZ_OVERRIDE. r=seth
2014-11-19 18:34:50 -08:00
Sid Stamm
29bcaaf68b
Bug 704320 - apply referrer policies to image loads (r=seth)
2014-11-18 08:46:53 -05:00
Seth Fowler
3f90d6455e
Bug 1098202 (Part 1) - Rename imgINotificationObserver handlers to be consistent with the notifications they handle. r=tn
2014-11-17 14:29:56 -08:00
Daniel Holbert
73935ffb40
Bug 624647 part 2: Honor "object-fit" & "object-position" in nsImageFrame, nsSubDocumentFrame, & nsVideoFrame. r=roc
2014-11-14 16:45:24 -08:00
Daniel Holbert
56a69f5c83
Bug 624647 part 0: Don't use ASSUME_DRAWING_RESTRICTED_TO_CONTENT_RECT flag if 'object-fit' and/or 'object-position' might make our drawing overflow. r=roc
2014-11-14 16:45:23 -08:00
Daniel Holbert
95ca30cb88
(no bug) Minor whitespace cleanup in nsImageFrame.cpp. whitespace-only, so DONTBUILD
2014-11-11 08:46:06 -08:00
Jonathan Kew
b15e11bc92
Bug 1096260 - Convert flags parameter of nsIFrame::ComputeSize from uint32_t to a typed enum, and update callers accordingly. r=dholbert
2014-11-11 11:02:41 +00:00
Jonathan Watt
2ae60576c4
Bug 1091323 - Convert the nsLayoutUtils helpers that paint images and take an nsRenderingContext to take a gfxContext instead. r=seth
2014-11-01 10:45:09 +00:00