Ting-Yu Lin
249fb2057b
Bug 1401807 Part 3 - Use a local reflow status when reflowing nsVideoFrame's children. r=dholbert
...
This ensures the video frame's reflow status is not affect by its children's
reflow result.
MozReview-Commit-ID: 4WwLFyIyV4q
2017-09-27 23:27:25 +08:00
Ting-Yu Lin
3f1f620630
Bug 1401807 Part 1 - Give unconstrained block size when reflowing mPosterImage. r=dholbert
...
Also, added MOZ_ASSERT to ensure all the video frame's children are fully
complete after reflowing (except for the mVideoControls special case on
Android).
This fixed aStatus.IsEmpty() assertion for the test case added in Part 2.
MozReview-Commit-ID: HKze4EZoaJY
2017-09-27 23:04:42 +08:00
Nicolas Silva
3c8f9ba825
Bug 1393031 - Remove unused nsTArray<WebRenderParentCommand>& parameter all over the place. r=jrmuizel
2017-09-20 13:36:53 +02:00
Nicolas Silva
32380e2bcc
Bug 1393031 - Use IpcResourceUpdateQueue in more places. r=jrmuizel
2017-09-20 10:56:20 +02:00
Ting-Yu Lin
d93880e505
Bug 1341009 - Add nsReflowStatus::IsEmpty() assertions to all nsIFrame::Reflow() methods and some reflow helpers, and remove unneeded Reset(). r=dholbert
...
nsReflowStatus::IsEmpty() assertions are added after DISPLAY_REFLOW in the
beginning of the Reflow().
A few Reflow() implementations have Reset() calls at the end which are left
in place by this patch (with an explanatory comment added to each). These
ending Reset()s are only needed for cases where a non-splittable frame
passes its own nsReflowStatus to a child's reflow method. Just in case the
child leaves a "not fully complete" value in the nsReflowStatus, the
non-splittable parent frame must clear out the nsReflowStatus before
returning, so that its own parent doesn't then try to split it.
MozReview-Commit-ID: 6Jj3jfMAqj4
2017-09-13 18:00:25 +08:00
Sebastian Hengst
835e4ad199
Backed out changeset 8291145f0920 (bug 1393031)
2017-09-14 23:18:05 +02:00
Sebastian Hengst
fc53f3bd53
Backed out changeset f34a52244cf9 (bug 1393031)
2017-09-14 23:17:35 +02:00
Nicolas Silva
8c829d94a4
Bug 1393031 - Remove unused nsTArray<WebRenderParentCommand>& parameter all over the place. r=jrmuizel
2017-09-14 20:21:54 +02:00
Nicolas Silva
25ffeade4e
Bug 1393031 - Use IpcResourceUpdateQueue in more places. r=jrmuizel
2017-09-14 20:21:46 +02:00
Nicolas Silva
7100d343f6
Bug 1393031 - Use shared memory to pass resource update data. r=jrmuizel
2017-09-14 18:48:55 +02:00
Miko Mynttinen
1d15e14450
Bug 1359584 - Part 3: Improve nsDisplayItem const correctness and fix surrounding whitespace r=mstange
...
MozReview-Commit-ID: 3GkWiu6C4Zo
2017-08-24 17:09:44 +02:00
Ehsan Akhgari
2d9c8b15b3
Bug 1394191 - Remove unneeded nsContentList.h includes from layout; r=dholbert
2017-08-29 07:29:11 -04:00
Bobby Holley
c2ce4d2e27
Bug 1393791 - Stop unbinding native-anonymous content off a script runner. r=emilio
...
The failure mode in the attached crashtest is an inconsistency in the flattened
tree. Specifically, we null out mVideoControls in an nsVideoFrame, but defer
the UnbindFromTree call on that NAC element, which measn that its mParent still
points to the nsVideoFrame's mContent. Because all this stuff runs off of script
runners, and the anonymous content destroyer is not guaranteed to run before
other potential script runners, we end up running arbitrary script while the
tree mismatch exists. This script calls back into ProcessPendingRestyles, which
causes trouble.
We could build a separate deferral mechanism, but it's not clear that we actually
need to defer the unbind anymore. The deferred unbind was added in bug 489008,
which predated a lot of simplifications in layout/dom interaction.
MozReview-Commit-ID: 1JYAhiXKVJC
2017-08-27 15:29:36 -07:00
Matt Woodrow
e62cf6dd69
Bug 1388161 - Store the dirty rect on the display list builder rather than passing it as a parameter to BuildDisplayList. r=mstange
2017-08-07 14:23:35 +12:00
Sebastian Hengst
2e92d940f4
Backed out changeset 8f2dd8f13b53 (bug 1388161) for failing chrome's test_animation_performance_warning.html | preserve-3d transform. r=backout
2017-08-10 14:40:21 +02:00
Matt Woodrow
61b7fddb66
Bug 1388161 - Store the dirty rect on the display list builder rather than passing it as a parameter to BuildDisplayList. r=mstange
2017-08-07 14:23:35 +12:00
Morris Tseng
c4c86c28b7
Bug 1376855 - Support nsDisplayVideo in layers free mode. r=kats,sotaro
...
MozReview-Commit-ID: HyelfkHokrw
2017-06-28 15:12:25 -07:00
Bill McCloskey
ce42826bdf
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
238bf154d5
Backed out changeset 4f6302a98ae4 (bug 1372405)
2017-06-21 13:59:26 +02:00
Bill McCloskey
67e8af4720
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
bbe9441993
Backed out changeset 9846de3bd954 (bug 1372405)
2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Alexis Beingessner
3117218f13
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-13 11:00:10 -04:00
Sebastian Hengst
1b1d14e565
Backed out changeset 3d1ce85e6348 (bug 1088760) for bustage, at least on Android at layout/generic/nsPluginFrame.cpp:1612. r=backout
2017-06-13 00:30:03 +02:00
Alexis Beingessner
c6fbc5e17e
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-12 17:32:48 -04:00
Mats Palmgren
661649e16a
Bug 1362886 part 2 - Devirtualize the IsLeaf() method by doing an array lookup instead. r=jfkthame
...
MozReview-Commit-ID: 1zm9rFhRVZ3
2017-05-26 12:11:12 +02:00
Mats Palmgren
6a8fbc8c30
Bug 1364805 part 4 - Remove the now unused LayoutFrameType values from the ctors. r=jfkthame
...
MozReview-Commit-ID: 1RSDoc3pQXf
2017-05-26 12:11:11 +02:00
Mats Palmgren
450c7ae245
Bug 1364805 part 2 - Add a nsIFrame::mClass field and propagate the concrete class' value up the ctor chain. r=jfkthame
...
nsIFrame::mClass is of type enum class nsQueryFrame::ClassID which is
a strict subset of the nsQueryFrame::FrameIID values. For a concrete
frame class, its FrameIID is the same numeric value as its ClassID.
MozReview-Commit-ID: 1N0AkCGo1ol
2017-05-26 12:11:11 +02: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
bechen
2364634165
Bug 1350821 - Notify the mediaElement to render subtitle when the mCaption was created or re-created. r=rillian
...
MozReview-Commit-ID: 3RM7u8jumT9
2017-03-28 16:48:40 +08:00
Ting-Yu Lin
e6769617e9
Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert
...
This patch is written by the following script with some manual adjustment to
the comment in nsRubyTextContainerFrame.cpp and nsRubyFrame.cpp, and
nsColumnSetFrame's constructor.
function rename() {
find layout\
-type f\
\( -name "*.cpp" -or\
-name "*.h" \)\
-exec sed -i -r "s/$1/$2/g" "{}" \;
}
rename "nsReflowStatus *([a-zA-Z0-9]*) = NS_FRAME_COMPLETE" "nsReflowStatus \1"
rename "([a-zA-Z0-9.*]*) *= NS_FRAME_COMPLETE;" "\1.Reset();"
rename "([a-zA-Z0-9.*]*) == NS_FRAME_COMPLETE" "\1.IsEmpty()"
MozReview-Commit-ID: 9tqQAHvdQex
2017-02-14 17:55:48 +08: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
Daniel Holbert
2df47b7268
Bug 1319318: When resolving a video/audio frame's shrinkwrapped BSize from controls, check whether controls are orthogonal when reading its size. r=mats
...
MozReview-Commit-ID: 9kH7rLF66zd
2016-12-08 09:20:25 -10:00
Carsten "Tomcat" Book
cc26655824
Backed out changeset 9d41238dabf4 (bug 1319318) for unexpected pass crashtest results after merge
2016-12-09 15:30:56 +01:00
Daniel Holbert
7a4fc63d0e
Bug 1319318: When resolving a video/audio frame's shrinkwrapped BSize from controls, check whether controls are orthogonal when reading its size. r=mats
...
MozReview-Commit-ID: 9kH7rLF66zd
2016-12-08 09:20:25 -10:00
Ray Lin
142fe6fa96
Bug 1313285 - remove nsVideoFrame::mBorderPadding. r=dholbert
...
MozReview-Commit-ID: Cz5JQqWxQWH
2016-11-25 14:03:15 +08:00
Ray Lin
695ad070a3
Bug 1271765 - Part 1: Remove XUL specific reflow code of video control. r=dholbert
...
MozReview-Commit-ID: KFn3ga2Uqq2
2016-10-12 13:41:50 +08:00
Wes Kocher
19195da2e1
Backed out 3 changesets (bug 1271765) for win8 mochitest(5) failures a=backout
...
Backed out changeset 022a4a018996 (bug 1271765)
Backed out changeset 1d96f03289f8 (bug 1271765)
Backed out changeset 57317a080c99 (bug 1271765)
2016-11-15 10:50:59 -08:00
Ray Lin
af83588b08
Bug 1271765 - Part 1: Remove XUL-specific reflow code of video control. r=dholbert
...
MozReview-Commit-ID: KFn3ga2Uqq2
2016-10-12 13:41:50 +08:00
Phil Ringnalda
71f1b14ba7
Backed out 3 changesets (bug 1271765) for -Werror bustage
...
CLOSED TREE
Backed out changeset 235ea1c681db (bug 1271765)
Backed out changeset 02d34b18d76b (bug 1271765)
Backed out changeset 088113647629 (bug 1271765)
2016-11-07 18:51:18 -08:00
Ray Lin
80de0416ce
Bug 1271765 - Part 1: Remove XUL-specific reflow code of video control. r=dholbert
...
MozReview-Commit-ID: KFn3ga2Uqq2
2016-10-12 13:41:50 +08: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
Kaku Kuo
666be0ef8d
Bug 1284350. Reland on top of backouts "Bug 1282710 - part 2 - Plumb the visibility event from nsIFrame to nsIDOMMediaElemnt; r=seth" r=kaku
2016-06-29 17:36:24 +08: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
Timothy Nikkel
0894c40f6a
Bug 1284350. Backed out changeset 103dc4eddacf (Bug 1282710 - part 2 - Plumb the visibility event from nsIFrame to nsIDOMMediaElemnt; r=seth)
2016-07-26 17:43:58 -05:00
Daniel Holbert
8d1634a780
(no bug) minor whitespace cleanup in nsVideoFrame.cpp. (no review, whitespace-only) DONTBUILD
...
MozReview-Commit-ID: EuW9ZzKcClm
2016-09-08 10:21:52 -07: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
3b9a7090d9
Bug 1277129 Part 6b - Rename rendContext to mRenderingContext in SizeComputationInput. r=dbaron
...
MozReview-Commit-ID: LczLJDtDncy
2016-07-21 18:36:38 +08:00