Ting-Yu Lin
d4aed39ebe
Bug 1110039 - Part 1 - Add nsLayoutUtils::ClampRectToScrollFrames. r=roc
...
ClampRectToScrollFrames generalizes IsRectVisibleInScrollFrames by
returning the clamped rect in scroll frames. IsRectVisibleInScrollFrames
could be implemented by checking whether the clamped rect is empty or
not.
2015-04-14 00:08:00 +02:00
Jonathan Kew
b45f261251
Bug 1159305 - patch 2 - Clean up layout code by using the new accessors. r=smontagu
2015-05-11 11:37:46 +01:00
Kartikaya Gupta
cb5c22758d
Bug 1160566 - Make FrameMetrics.mCompositionBounds private and add a getter/setter for it. r=botond
2015-05-07 14:44:03 -04:00
Kartikaya Gupta
27fd9c3087
Bug 1160250 - Fix up the rect being used for the composition size calculation. r=tn
2015-05-07 14:44:03 -04:00
Kartikaya Gupta
a989498c7e
Bug 1160250 - Put in a missing transfomToAncestor scaling factor. r=botond,tn
2015-05-07 14:44:02 -04:00
Kartikaya Gupta
4a32e98afd
Bug 1160250 - Collapse the code from CalculateRootCompositionSize into UpdateCompositionBounds. r=botond,tn
2015-05-07 14:39:20 -04:00
Kartikaya Gupta
463f762c92
Bug 1160250 - Extract a helper function from the triplicated composition-bounds-updating code. r=botond,tn
2015-05-07 14:39:20 -04:00
Kartikaya Gupta
f61642b15b
Bug 1160250 - Extract a helper method from the triplicated comp-bounds function to determine if we need to deflate the scrollbars. r=botond,tn
2015-05-07 14:39:19 -04:00
Seth Fowler
6cb966a0e5
Bug 1162282 - When canvas.drawImage is called on a corrupt image that's not in the broken state, don't throw. r=gw280
2015-05-07 09:25:10 -07:00
L. David Baron
613a1db1d8
Bug 1153539 patch 2 - Compute scale for rasterizing off-main-thread transform animations based on ratio to display size in addition to maximum and minimum scale. r=roc
...
This fixes bug 1153539 with the Firefox download arrow being pixellated
(verified by testing locally).
I also confirmed what happens on a flame device with the transform
unlocking the Firefox OS homescreen (bug 945082 / bug 972310). For that
transform (which had a maximum scale of 2), I see four calls to
GetSuitableScale:
GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000000
GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000586
GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000000
GetSuitableScale: aMaxScale=2.000000, displayVisibleRatio=1.000586
(Presumably the first and third are for width, and the second and fourth
are for height.) I believe this shows that bug 972310 will remain fixed
with this patch.
I chose to use the pres context's visible area rather than the screen
size because it seemed more appropriate, and also because (if memory
serves correctly) it's much cheaper to get.
2015-05-06 08:52:20 +02:00
Kartikaya Gupta
296d089ac3
Bug 1161040 - Add some assertions to guard against infinite loops in the handoff chains. r=botond
2015-05-05 08:36:52 -04:00
Kartikaya Gupta
7fb40e07f3
Bug 1161040 - Don't set a scrollparent on the root content document in the child process that points to itself. r=tn
2015-05-04 14:37:22 -04:00
Kartikaya Gupta
1ae2974b9a
Bug 1157579 - Make sure the visual scroll port size includes the area of scrollbars when used in TryLayout. r=tn
2015-05-04 10:17:26 -04:00
Wes Kocher
bb63360d2f
Merge inbound to m-c a=merge
2015-05-01 17:19:28 -07:00
Danilo Cesar Lemes de Paula
db43503184
Bug 1159405 - Fix "Found a non-root APZ with no handoff parent". r=botond
2015-04-30 06:06:00 -04:00
Jonathan Watt
18ce1a7020
Bug 923193, part 1 - Avoid calculation of the reference box for transforms unless they're actually needed. r=roc
2015-04-28 19:55:42 +01:00
Brian Birtles
67c6bec9aa
Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly. r=smaug
2015-04-30 09:06:43 -04:00
Carsten "Tomcat" Book
49dcd0d63c
Backed out changeset 1b5fc672f0d4 (bug 1159082) for B2G ICS Emulator opt R6 test failures on a CLOSED TREE
2015-04-30 13:15:04 +02:00
Brian Birtles
e3179b0530
Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly; r=smaug
2015-04-28 10:16:45 +09:00
Xidorn Quan
e93a74c8a2
Bug 1117227 part 5 - Render ellipsis in correct orientation. r=jfkthame
2015-04-24 10:15:32 +12:00
Botond Ballo
a5dd4ae015
Bug 1151663 - Only call GetOrMaybeCreateDisplayPort() in nsLayoutUtils::PaintFrame() if we are using containers for root scroll frames. r=tn
2015-04-15 17:14:32 -04:00
Botond Ballo
be304b7709
Bug 1151663 - Initialize display list builder flags earlier in nsLayoutUtils::PaintFrame(). r=tn
2015-04-15 15:48:09 -04:00
Seth Fowler
a9180e3535
Bug 1085783 (Part 1) - Snap both the fill and dest rects using UserToDeviceSnapped() when pixel snapping images. r=roc
2015-04-22 13:04:04 -07:00
Carsten "Tomcat" Book
4ffd4af74e
Backed out changeset 60bbc4230cd7 (bug 1085783)
2015-04-22 13:14:35 +02:00
Phil Ringnalda
e68dbf0040
Merge m-c to a CLOSED TREE m-i
2015-04-21 20:17:57 -07:00
David Anderson
431f304b55
Fix bogus assertion in nsLayoutUtils::SetDisplayPortMargins. (bug 1156409, r=botond, a=philor)
2015-04-21 23:01:41 -04:00
Seth Fowler
bef2a3ed1e
Bug 1085783 (Part 1) - Snap both the fill and dest rects using UserToDeviceSnapped() when pixel snapping images. r=roc
2015-04-21 19:23:10 -07:00
Timothy Nikkel
e30d596402
Bug 1156598. Remove old, dead scroll layer item code. r=mstange
2015-04-20 22:48:10 -05:00
Brian Birtles
e3a3e6d39d
Bug 1154615 part 6 - Rename references to players within layout/; r=jwatt
...
We will rename CSSAnimationPlayer/CSSTransitionPlayer in a separate patch
2015-04-21 10:22:10 +09:00
Brian Birtles
d81bc13082
Bug 1154615 part 5 - Rename AnimationPlayerCollection to AnimationCollection; r=jwatt
2015-04-21 10:22:10 +09:00
Brian Birtles
245d56b34b
Bug 1154615 part 1 - Rename AnimationPlayer to Animation in WebIDL; r=smaug
...
This patch is a fairly minimal rename of the AnimationPlayer interface. It
leaves a bunch of local variables and helper classes still using the word
"player". These will be addressed in subsequent patches that don't require DOM
peer review.
2015-04-21 10:22:09 +09:00
Phil Ringnalda
39379c2eae
Backed out changeset ffde08dc5ceb (bug 1154459) for bustage
...
CLOSED TREE
2015-04-19 08:19:14 -07:00
David Anderson
942f18152b
Enable APZ for E10S on Windows for one nightly build. (bug 1154459, r=kats)
2015-04-17 11:49:55 -04:00
Botond Ballo
a8c7a186fc
Bug 1152479 - Extract the implementations of layout-related nsIDOMWindowUtils APIs used by APZ into nsLayoutUtils. r=ehsan
2015-04-14 13:19:10 -04:00
Brian Birtles
a474c0c6c3
Bug 1153734 part 3 - Rename AnimationPlayer.source to AnimationPlayer.effect; r=smaug
...
There are still some other references to "source" in AnimationPlayer such as
HasInPlayerSource and UpdateSourceContent. These are renamed in a subsequent
patch (that doesn't require DOM peer review).
2015-04-15 08:48:21 +09:00
Brian Birtles
b23bc79d92
Bug 1153734 part 2 - Rename Animation to KeyframeEffectReadonly; r=smaug
...
We define KeyframeEffectReadonly in KeyframeEffect.cpp since Web Animations also
defines KeyframeEffect and when we come to implement that I expect we'll define
it in the same class, maybe even using the same object.
This patch also adds a few missing includes in places where
KeyframeEffectReadonly is used so that we're not just cargo-culting it in.
2015-04-15 08:48:21 +09:00
Botond Ballo
5bb52787af
Bug 1039818 - Extract the implementation of nsIDOMWindowUtils::GetResolution into nsLayoutUtils. r=ehsan
2015-04-10 19:33:56 -04:00
Markus Stange
7e172378c8
Bug 1151346 - Make ActiveLayerTracker::IsOffsetOrMarginStyleAnimated respect CSS animations. r=roc
2015-04-05 22:53:51 -04:00
Mats Palmgren
cce3038b50
Bug 1150042 - Make nsLayoutUtils::DrawSingleUnscaledImage use CSSIntSize instead of unitless nsIntSize. r=dholbert
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
Mats Palmgren
76c9d4c6d0
Bug 1149215 - Remove nsLayoutUtils::GetWholeImageDestination that use unitless nsIntSize. r=dholbert
2015-04-03 19:48:12 +00:00
Brian Birtles
3a473ff0a6
Bug 1109390 part 21 - Reuse GetAnimationsForCompositor in nsLayoutUtils; r=jwatt
2015-04-01 12:23:24 +09:00
Mats Palmgren
fe65991446
Bug 1148971 - Make nsITheme::GetMinimumWidgetSize return a LayoutDeviceIntSize result instead of the unit-less nsIntSize type. r=roc
2015-03-30 11:36:14 -04:00
Mats Palmgren
f01622564a
Bug 1149037 - Make nsLayoutUtils::ComputeSizeForDrawing* take a CSSIntSize param instead of a unit-less nsIntSize. r=roc
2015-03-30 11:35:47 -04:00
Carsten "Tomcat" Book
1dadb1db1d
Backed out changeset 513192eb7df4 (bug 1148971) for causing bc2 memory leaks
2015-03-30 15:04:09 +02:00
Carsten "Tomcat" Book
bcedf8abde
Backed out changeset e507145a198c (bug 1149037)
2015-03-30 15:03:25 +02:00
Mats Palmgren
1b8d3a65c6
Bug 1149037 - Make nsLayoutUtils::ComputeSizeForDrawing* take a CSSIntSize param instead of a unit-less nsIntSize. r=roc
2015-03-30 10:37:34 +00:00
Mats Palmgren
6258bed9a3
Bug 1148971 - Make nsITheme::GetMinimumWidgetSize return a LayoutDeviceIntSize result instead of the unit-less nsIntSize type. r=roc
2015-03-30 10:37:33 +00:00
Nicolas Silva
a1b30cee6c
Bug 1132854 - Remove useless ThebesIntSize conversion helper. r=Bas
2015-03-29 16:59:15 +02:00
Seth Fowler
a9fb87dd79
Bug 1068881 - Inflate the dest rect to at least one device pixel when computing the optimal image size for drawing. r=roc
2015-03-27 20:07:31 -07:00