Robert Longson
1bd8e4e106
Bug 1362400 part 2 - optimise SMIL image updates r=jwatt
2017-05-06 20:51:59 +01:00
Emilio Cobos Álvarez
643f3f8618
Bug 1361051: rename mozilla::FrameType to mozilla::LayoutFrameType. r=xidorn
...
This avoids conflicts with mozilla::dom::FrameType.
MozReview-Commit-ID: 7aEMbHRaTFk
2017-05-01 19:32:52 +02:00
Emilio Cobos Álvarez
3731858edf
Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam
...
MozReview-Commit-ID: 5Nzhyta5Hle
2017-04-30 17:30:08 +02:00
Jonathan Watt
078b27bbfd
Bug 1358794, part 1 - If necessary, synthesize a viewBox for SVG embedded via SVG <image>. r=longsonr
...
MozReview-Commit-ID: DuKOqfxCUW8
2017-03-25 15:57:29 +00:00
cku
21b8332975
Bug 1346618 - Part 1. Remove SVGImageContext::mGlobalOpacity. r=mstange
...
MozReview-Commit-ID: ByiPa4sreEh
2017-04-15 02:01:22 +08:00
cku
f66a191560
Bug 1345853 - Part 3. Pass sync docode flag down to nsSVGDisplayableFrame::PaintSVG. r=tnikkel
...
Add one paramater to nsSVGDisplayableFrame::PaintSVG, so that we can pass
sync-decode flag from nsXXXXDisplayItem::Paint function to SVG paint call.
MozReview-Commit-ID: 6VZbxnFaoUj
2017-03-24 16:49:37 +08:00
Timothy Nikkel
3d9218756c
Bug 1346501. Don't mark every image as visible when a frame is created for it. r=mats
...
This is a bug from https://hg.mozilla.org/mozilla-central/rev/2d171d75b746 (bug 1157546). It took a shortcut in trying to get around one of the downsides of tracking visibility on frames instead of content nodes.
We cannot get our primary frame during FrameCreate calls because FrameCreate is called during the frame's Init() function, which happens before the primary frame pointer is set.
So when TrackImage is called from FrameCreate |frame| will be null but mFrameCreateCalled will be true. So we won't hit the early return that tries to detect nonvisible images.
The comment being removed is just wrong. We can obtain a frame for <feImage> just as well as any other image type.
The thing that is different about <feImage> is that it calls IncApproximateVisibleCount() followed by FrameCreated() in the frame's Init() function. This means that the frame is marked visible at the time of the FrameCreated, and there will be no further calls to TrackImage (because there are no further changes). So the FrameCreated call is the last chance to mark this image visible. The regressing changeset tries to get around this by just considering the image visible whenever we know a frame exists (because of mFrameCreateCalled) but can't access it. This ends up affecting all types of images, not just <feImage>.
The above paragraph is also true for SVG <image> that are non-display.
2017-03-22 00:32:48 -05:00
Jonathan Watt
8e9411768a
Bug 1349244 - Rename nsISVGChildFrame to nsSVGDisplayableFrame to reduce confusion. r=longsonr
...
MozReview-Commit-ID: IQCv2ebZbwk
2017-02-09 18:24:31 +00:00
Jonathan Watt
e84b0a4edc
Bug 1345841 - Stop using Maybe<const T>. r=mats
2017-02-07 11:52:22 +00:00
Jonathan Watt
fda2839f54
Bug 1058040, part 12 - Make SVGImageContext's ctor's aViewportSize parameter optional. r=dholbert
2017-01-30 13:25:00 +00:00
Timothy Nikkel
dc3c6b6de0
Bug 1341881. Don't do sync decode for SVG <image> elements images. r=aosmond
...
SVG <image> elements have approximately the same level of visibility tracking as regular html <img>s so we shouldn't need to do sync decode. It shows up in some profiles.
The comment being removed was written a long time ago, before image visibility tracking for one.
We could even go a step further and ask for no sync decoding at all, but one step at a time to make sure this doesn't cause any regressions.
2017-02-22 18:58:42 -06:00
Jeff Walden
a6ec779698
Bug 1287006 - Don't pass Maybe (or any class containing a Maybe member) by value, only by reference or pointer, in layout/-related code. r=bz
2017-02-13 09:07:40 -08:00
Jonathan Watt
8b4dac7b4f
Bug 1058040, part 11 - Convert DrawImage/DrawImageInternal's SVGImageContext param from pointer to Maybe<>. r=dholbert
2017-01-11 01:48:29 +00:00
Robert Longson
29661e49d9
Bug 1239100 - Implement SVGGeometryElement interface. r=cam r=peterv
2016-12-18 11:11:47 +00:00
Sebastian Hengst
35ac5ad5d2
Backed out changeset 0b44e8715bf5 (bug 1239100) for build bustage (SVGGeometryElement.webidl missing). r=backout
2016-12-18 11:42:51 +01:00
Robert Longson
7691b0761b
Bug 1239100 - Implement SVGGeometryElement interface. r=cam r=peterv
2016-12-18 09:54:02 +00:00
Tomislav Jurin
9ff3007b90
Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj
2016-12-02 13:46:53 -08:00
Timothy Nikkel
1df76568d8
Bug 1284350. Backed out changeset 69abdc731a99 (Bug 1261554 (Part 1) - Prepare for implementing in-displayport visibility tracking. r=mstange)
2016-09-12 00:19:08 -05:00
Timothy Nikkel
b41427ff1e
Bug 1284350. Backed out changeset d6a286242f2d (Bug 1268348 - Pass the previous visibility state to OnVisibilityChange(). r=mstange)
2016-09-12 00:19:07 -05:00
Boris Chiou
d1d34499d8
Bug 1245751 - Part 3: Allow href without xlink on SVG <image> elements. r=jwatt
...
MozReview-Commit-ID: 1DGZUcJsrDY
2016-07-05 17:35:24 +08:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Nicolas Silva
3766bcc94a
Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond
2016-07-26 16:48:30 +02:00
cku
bb426c5864
Bug 1258510 - Part 2. Use the return value of nsLayoutUtils::DrawSingleImage & DrawSingleUnscaledImage. r=mstange
...
MozReview-Commit-ID: Eo8FzwOFAOT
2016-07-14 12:47:06 +08:00
Carsten "Tomcat" Book
85da581596
Backed out changeset c43fa1320372 (bug 1258510)
2016-07-13 08:37:24 +02:00
cku
d2ecfb0579
Bug 1258510 - Part 2. Use the return value of nsLayoutUtils::DrawSingleImage & DrawSingleUnscaledImage. r=mstange
...
MozReview-Commit-ID: Eo8FzwOFAOT
2016-07-12 16:15:45 +08:00
Kevin Chen
1602349db6
Bug 1264809 - (Part 1) Decouple SetImageOverridePreserveAspectRatio from mIsPaintingSVGImageElement setting. r=dholbert
2016-07-01 00:41:00 +02:00
Jonathan Watt
fa7b69b631
Bug 1277862, part 3 - Rename Moz2D's Filter to SamplingFilter in the rest of the tree. r=Bas
2016-05-25 17:01:18 +01:00
Seth Fowler
a897d09931
Bug 1268348 - Pass the previous visibility state to OnVisibilityChange(). r=mstange
2016-05-11 19:27:27 -07:00
Seth Fowler
40ecfeebae
Bug 1261554 (Part 1) - Prepare for implementing in-displayport visibility tracking. r=mstange
2016-04-21 01:21:58 -07:00
Ting-Yu Lin
7e56c62fa9
Bug 1264837 Part 27 - Remove nsSVGImageFrameBase. r=dholbert
...
MozReview-Commit-ID: Guh2gWnm45y
2016-04-18 15:21:40 +08:00
Cameron McCormack
4d84720983
Bug 1261754 - Part 11: Move opacity from nsStyleDisplay to nsStyleEffects. r=dholbert
2016-04-12 15:52:43 +10:00
Cameron McCormack
424a4cab99
Bug 1261754 - Part 10: Move mix-blend-mode from nsStyleDisplay to nsStyleEffects. r=dholbert
2016-04-12 15:52:42 +10:00
Cameron McCormack
98ad26ea1a
Bug 1261754 - Part 7: Move pointer-events from nsStyleVisibility to nsStyleUserInterface. r=dholbert
2016-04-12 15:52:41 +10:00
Seth Fowler
35deaa95ee
Bug 1261553 - Don't return from OnVisibilityChanged implementations without calling the superclass implementation. r=mstange
2016-04-05 01:11:14 -07:00
Robert Longson
a9bad2eed9
Bug 1242256 - ensure images in patterns and masks animate properly. r=jwatt,seth
2016-03-26 16:07:03 +00:00
Seth Fowler
0f24c44100
Bug 1157546 - Replace the image visibility API with a more general API that tracks visibility for any kind of frame. r=mstange
2016-03-25 14:49:43 -07:00
Timothy Nikkel
ac9d13b943
Bug 1209780. Mark some DrawResult's as unused in layout/svg. r=seth
...
We want to turn on the static analysis so no new violations are introduced. Fixing these is not straight forward.
2016-03-21 16:15:19 -05:00
Bobby Holley
2458093fc1
Bug 773429 - Remove dom.disable_image_src_set. r=khuey
2015-11-23 14:08:34 -08:00
Bas Schouten
3af4882b81
Bug 1210560 - Part 2: Convert some simple users to use PushGroupForBlendBack. r=jrmuizel
2015-11-11 16:15:39 +01:00
Nicholas Nethercote
10141da023
Bug 1208345 - Remove gfxContext::GraphicsOperator. r=jwatt.
...
Also...
- Rename various "operator" identifiers as "op" to match |CompositionOp|.
- Rename |nsBackgroundLayerState::mCompositingOp| as |mCompositionOp| to match
|CompositionOp|.
- Remove some deprecated functions that are no longer needed.
2015-09-24 22:38:58 -07: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
Daniel Holbert
c42671bca1
Bug 1149222 part 2 - Make nsSVGImageFrame::PaintSVG use LayoutDeviceSize & LayoutDevicePixel::ToAppUnits, when setting up its dest-rect. r=mats
2015-04-03 19:48:12 +00:00
Mats Palmgren
75786a9857
Bug 1149222 part 1 - Make nsLayoutUtils::DrawBackgroundImage and SVGImageContext use CSSIntSize instead of unitless nsIntSize. r=dholbert
2015-04-03 19:48:12 +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
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
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
Robert Longson
9abb29a3ec
Bug 1119698 - ensure image elements take pointer-events into account r=jwatt
2015-01-19 15:06:01 +00:00
Robert Longson
a9586a0bab
Bug 1090936 - Make invalidation of rendering observers asynchronous. r=jwatt
2014-11-06 09:30:11 +00:00