Bobby Holley
3775205e64
Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal. r=emilio
...
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Timothy Nikkel
f8ecec21ca
Bug 1317559. Make image layer related functions that may be called during paint ask for async image notifications. r=aosmond
2016-11-24 23:48:04 -06:00
Matt Woodrow
4d5c7bc427
Bug 1318156 - Convert images into layers if we're forcing active layers. r=mstange
2016-11-24 18:11:30 +13:00
Mats Palmgren
3d9028fde0
Bug 1300369 part 9 - Add a ComputeSizeFlags param to nsFrame::ComputeSizeWithIntrinsicDimensions (idempotent patch). r=dholbert
2016-11-05 02:57:06 +01:00
Mats Palmgren
f00cf4e1ad
Bug 1300369 part 8 - Move nsLayoutUtils::ComputeSizeWithIntrinsicDimensions to a nsFrame method (idempotent patch). r=dholbert
2016-11-05 02:57:06 +01:00
Xidorn Quan
1cfc0298d4
Bug 1266621 part 5 - Convert border-color to store complex color. r=heycam
...
MozReview-Commit-ID: 19sl9f3EVgt
2016-09-27 20:16:35 +10: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
Nicholas Nethercote
c57fffaa55
Bug 1297300 - Add missing checks to GetSpec() calls in layout/. r=dholbert,heycam.
2016-08-31 20:10:10 +10:00
Ravi Shankar
181d48792f
Bug 1297982 - Replace NS_STYLE_BOX_DECORATION_BREAK_* with enum class; r=xidorn
...
MozReview-Commit-ID: 9Cli68UpKdz
2016-08-26 12:44:32 +05:30
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
Timothy Nikkel
1491cc0380
Bug 1260324. Don't draw garbage to the screen if an image doesn't happen to be decoded. r=seth
...
Layout has been using imgIContainer::IsOpaque to determine if the image will draw opaquely to all pixels it covers, and doing culling based on this.
However imgIContainer::IsOpaque doesn't guarantee anything. It only describes if the image, when in a decoded state, has all opaque pixels. So if the image doesn't have fully decoded frames around (because they got discarded) it may not draw opaquely to all of its pixels.
So we create a new function that first checks if there is a fully decoded frame.
2016-08-22 21:15:38 -05:00
Wes Kocher
b60cddc542
Backed out changeset 54933b5b96f1 (bug 1260324) for frequent windows reftest failures a=backout CLOSED TREE
2016-08-23 13:50:14 -07:00
Timothy Nikkel
8b16d4ef08
Bug 1260324. Don't draw garbage to the screen if an image doesn't happen to be decoded. r=seth
...
Layout has been using imgIContainer::IsOpaque to determine if the image will draw opaquely to all pixels it covers, and doing culling based on this.
However imgIContainer::IsOpaque doesn't guarantee anything. It only describes if the image, when in a decoded state, has all opaque pixels. So if the image doesn't have fully decoded frames around (because they got discarded) it may not draw opaquely to all of its pixels.
So we create a new function that first checks if there is a fully decoded frame.
2016-08-22 21:15:38 -05:00
Ting-Yu Lin
d3e8cf1818
Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron
...
This patch is generated by the following script:
function rename() {
find .\
-type f\
! -path "./obj*"\
! -path "./.git"\
! -path "./.hg"\
\( -name "*.cpp" -or\
-name "*.h" \)\
-exec sed -i -r "s/$1/$2/g" "{}" \;
}
rename "([[:alpha:]]*)([rR])eflowState(s?)" "\1\2eflowInput\3"
MozReview-Commit-ID: ITFO7uMTkSb
2016-07-21 18:36:39 +08:00
Ting-Yu Lin
bb0825b5c7
Bug 1277129 Part 5c - Rename nsHTMLReflowMetrics to ReflowOutput. r=dbaron
...
This patch is generated by the following script:
function rename() {
find .\
-type f\
! -path "./obj*"\
! -path "./.git"\
! -path "./.hg"\
\( -name "*.cpp" -or\
-name "*.h" \)\
-exec sed -i -e "s/$1/$2/g" "{}" \;
}
rename "nsHTMLReflowMetrics" "ReflowOutput"
MozReview-Commit-ID: 2HBb7DkooH5
2016-07-21 18:36:38 +08:00
Ting-Yu Lin
10912a51e3
Bug 1277129 Part 1c - Rename nsHTMLReflowState to ReflowInput. r=dbaron
...
This patch is generated by the following script:
function rename() {
find .\
-type f\
! -path "./obj*"\
! -path "./.git"\
! -path "./.hg"\
\( -name "*.cpp" -or\
-name "*.h" \)\
-exec sed -i -e "s/$1/$2/g" "{}" \;
}
rename nsHTMLReflowState ReflowInput
MozReview-Commit-ID: 9r9vdVv1pXc
2016-07-21 18:36:35 +08:00
Stone Shih
9d8370d252
Bug 1260704 - Instead of handling mouse up event, we handle mouse click event to trigger links. r=smaug
2016-05-16 15:45:43 +08:00
Jonathan Hao
cc18311684
Bug 1280006 - Backout "Bug 1270680 - Part 1: Double-key the image cache by origin attribute." r=tanvi
...
This reverts commit bb0482fe09fbfad9be89384ec5cb8b6518187379.
2016-06-14 12:43:21 +01:00
Jonathan Hao
9e1494388d
Bug 1270680 - Part 1: Double-key the image cache by origin attribute. r=jdm,seth
2016-06-01 23:07: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
Masatoshi Kimura
5ffcccd3a2
Bug 1205027 - Only size <img> to broken-image size if it's actually broken. r=dholbert
2016-06-03 07:05:46 +09:00
Sebastian Hengst
8955dbd399
Backed out changeset 17dcafc58287 (bug 1205027) for wpt windows-1251.html permafail on Windows. r=backout
2016-05-29 09:10:07 +02:00
Masatoshi Kimura
6a1aec77a7
Bug 1205027 - Only size <img> to broken-image size if it's actually broken. r=dholbert
2016-05-29 07:51:49 +09:00
Seth Fowler
a897d09931
Bug 1268348 - Pass the previous visibility state to OnVisibilityChange(). r=mstange
2016-05-11 19:27:27 -07:00
Edwin Flores
712f6538c5
Bug 1253995 - Display stale image in nsImageFrame if we have a new src but haven't decoded it yet - r=seth
2016-04-22 14:08:25 +01: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
731255ba80
Bug 1264837 Part 6 - Remove ImageFrameSuper. r=dholbert
...
MozReview-Commit-ID: ujNsOONTzI
2016-04-18 13:58:30 +08:00
Mats Palmgren
c066fae6e9
Bug 645647 part 1 - Don't let empty bullet frames block suppressing white-space in intrinsic size calculations. r=dholbert
2016-04-14 01:32:12 +02:00
Christoph Kerschbaumer
8ffee19dd7
Bug 1256999 - Pass the right context to new channels for image loads. r=bz r=seth
2016-04-11 10:58:03 +02:00
Matt Woodrow
35a6d1ae18
Bug 852754 - Part 3: Share the implementation of ConfigureLayer. r=mstange
2016-04-07 18:54:33 +12:00
Matt Woodrow
824d125a52
Bug 852754 - Part 2: Share the implementation of GetContainer. r=mstange
2016-04-07 18:53:15 +12:00
Matt Woodrow
ed1801d715
Bug 852754 - Part 1: Share the code for limiting scale factors to all image types. r=mstange
2016-04-07 18:52:35 +12: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
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
Xidorn Quan
ba620a636b
Bug 1257121 part 4 - Use return value rather than out param to return font metrics. r=jfkthame
...
MozReview-Commit-ID: 6xrHYbgHGVd
2016-03-17 13:55:48 +08:00
Xidorn Quan
289ca1f35e
Bug 1257121 part 3 - Add GetInflatedFontMetricsForFrame function to simplify a common use pattern. r=jfkthame
...
MozReview-Commit-ID: 4KMLCz6wQHQ
2016-03-17 12:07:47 +08:00
Seth Fowler
d5b59e6987
Bug 1255362 - Null-check GetContainer() before using it in image-related ConfigureLayer() methods. r=mstange a=Tomcat
2016-03-11 15:12:07 +08:00
Seth Fowler
ff14d33f49
Bug 1251804 - Use the ImageContainer's size and not the intrinsic size when computing the transform in nsDisplayImage::ConfigureLayer. r=tn
2016-03-07 17:06:04 -08:00
Cameron McCormack
8a879b8032
Bug 1244068 - Part 4: Use StyleSetHandle instead of concrete style set class in most places. r=dholbert
2016-02-24 18:01:11 +11:00
Timothy Nikkel
b487b18590
Bug 1238337. If the intrinsic size of the image hasn't changed then we don't need to do a new predictive image decode. r=mats
...
nsImageFrame::OnSizeAvailable will update the intrinsic ratio and ask for a reflow. Then nsImageFrame::NotifyNewCurrentRequest will be called when the image is finished loading. It previously would do a predictive decode if the intrinsic size hadn't changed.
This was a mistake in http://hg.mozilla.org/mozilla-central/rev/146f1bea4147 (bug 1151359).
OnSizeAvailable has this structure:
if (intrinsicSizeChanged && gotInitialReflow) {
if (!sizeConstrained) {
requestReflow();
}
}
NotifyNewCurrentRequest has this structure:
if (gotInitialReflow) {
if (!sizeConstrained && intrinsicSizeChanged) {
requestReflow();
}
}
Bug 1151359 added a predictive decode in a new else branch to both inner if statements. The meaning of this is obviously quite different.
2016-02-02 16:51:52 -06:00
Xidorn Quan
ed39296097
Bug 1064843 part 1 - Make nsImageFrame inherit nsContainerFrame. r=dholbert
2016-01-28 10:11:00 +11:00
Nicholas Nethercote
9e0b88bf43
Bug 1237457 - Partially Moz2Dify nsDisplayGeneric. r=roc.
2015-12-03 19:16:59 -08:00
Nicholas Nethercote
5213edb3d9
Bug 1232852 (part 1) - Set |aSnap| in two GetOpaqueRegion() overloadings that are missing it. r=roc.
2016-01-04 20:38:17 -08:00
Nicholas Nethercote
7fabd8754f
Bug 1231550 - Use DrawTarget instead of gfxContext and/or nsRenderingContext in many places in font/text code. r=jfkthame.
...
AutoTextRun now only needs a DrawTarget instead of an nsRenderingContext, and
similar nsRenderingContext/gfxContext-to-DrawTarget replacements can be
propagated a long way up the call graph. This patch replaces 93 occurrences of
nsRenderingContext and 135 occurrences of gfxContext with DrawTarget; that's
13% of them.
The patch is mostly plumbing changes. A couple of not-entirely-plumbing
changes:
- It adds a comment about the null check in
gfxGlyphExtents::GetTightGlyphExtentsAppUnits().
- A couple of functions simply had an unused gfxContext or nsRenderingContext
parameter removed, e.g. SetLineBreaks().
2015-12-15 13:56:41 -08:00
Nicholas Nethercote
fe73890223
Bug 1230413 (part 4) - Remove unused nsRenderingContext argument from ForceBreak() and OptionallyBreak(). r=mattwoodrow.
2015-12-06 14:13:57 -08:00
Markus Stange
4281cff181
Bug 1200611 - Size ImageLayers correctly for <img>s using object-fit. r=dholbert
...
This changes nsDisplayImage::GetDestRect and nsImageFrame::PredictedDestRect to return
the true dest rect of the image, without intersecting it with the image content box.
The only caller of these functions that actually requires a rectangle that's within
the image's content bounds is nsDisplayImage::GetOpaqueRegion, so I'm changing that
to intersect with the display item's bounds.
I'm pretty sure nsImageFrame::MaybeDecodeForPredictedSize() also prefers the unclipped
dest rect, because it cares about the scale at which the image is painted, and not
about which parts of the image are painted.
2015-12-03 15:20:10 +01:00
Birunthan Mohanathas
ac37dec517
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Seth Fowler
a41bda6a8d
Bug 1207355 (Part 3) - Request decodes intelligently in nsImageFrame. r=tn
2015-10-29 16:37:42 -07:00
Phil Ringnalda
f09341276b
Back out 8 changesets (bug 1207355) for OS X 10.10 reftest failures in generated-content/
...
CLOSED TREE
Backed out changeset aafd6db2fbb4 (bug 1207355 )
Backed out changeset 9dd950b837fb (bug 1207355 )
Backed out changeset e941e0e106a1 (bug 1207355 )
Backed out changeset ecebca101fcb (bug 1207355 )
Backed out changeset 08f2017137e1 (bug 1207355 )
Backed out changeset 3dc69e37c9b4 (bug 1207355 )
Backed out changeset bcdf51edb121 (bug 1207355 )
Backed out changeset 1d4c00dbf49a (bug 1207355 )
2015-10-28 22:57:43 -07:00