Commit Graph

1563 Commits

Author SHA1 Message Date
cku
35ee6e24a3 Bug 1295094 - Part 9. Implement nsDisplayMask. r=mstange
MozReview-Commit-ID: CBszApBehRE
2016-08-10 03:02:45 +08:00
cku
f3e46e0943 Bug 1295094 - Part 8. Implement nsSVGIntegrationUtils::PaintMaskAndClipPath r=mstange
MozReview-Commit-ID: EbIUVDXuHa0
2016-08-16 01:07:57 +08:00
Ryan VanderMeulen
3855123e33 Merge m-c to inbound. a=merge 2016-08-29 12:56:19 -04:00
Ryan VanderMeulen
a6456b7910 Merge inbound to m-c. a=merge 2016-08-29 12:48:10 -04:00
Yuri Kazuna
2ce21ba0b3 Bug 1291481 - Represent direction enum as uint8_t in LayersMessages.ipdlh; r=birtles
MozReview-Commit-ID: 9RcyYqsdsaB
2016-08-27 16:50:29 +09:00
Wes Kocher
5b030ce88d Merge m-c to inbound, a=merge 2016-08-26 16:32:56 -07:00
Timothy Nikkel
e6a3c2af90 Bug 1298100. Remove nsDisplayListBuilder::mHadToIgnoreSuppression because it is unused. r=cjku 2016-08-26 18:02:51 -05:00
Markus Stange
356750699c Bug 1298214 - Don't treat container items as forced-empty items if they have contents. r=tnikkel
MozReview-Commit-ID: LbZt3qBfoV8
2016-08-22 13:41:59 -04:00
Markus Stange
19cd9d650e Bug 1298209 - Fix indent. r=mattwoodrow
MozReview-Commit-ID: LGmP20aD0Et
2016-08-22 13:34:41 -04:00
Markus Stange
640c19264b Bug 1298209 - Use mFrame instead of Frame() because it's less confusing. r=mattwoodrow
MozReview-Commit-ID: 3UotUmhpEXR
2016-08-22 13:32:57 -04:00
hironari
6b8f560d5a Bug 1296123 - SetPerformanceWarning should be called against eCSSProperty_opacity! r=hiro
MozReview-Commit-ID: BCcXiRUui7Z
2016-08-27 12:55:36 +09: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
Ryan VanderMeulen
dbf61a2219 Merge m-c to autoland. a=merge 2016-08-25 08:14:36 -04:00
Jinank Jain
b875b54a4e Bug 712936 - Convert users of PR_STATIC_ASSERT to C++11 static_assert(). r=Ms2ger 2016-08-23 11:24:54 -04:00
Boris Chiou
1ef0babead Bug 1049975 - Part 4: Merge two Animation::SetEffect()s. r=birtles
This is a pre-patch for part 5, which is trying to make our code closer to the
spec. Some methods in KeyframeEffectReadOnly belong to AnimationEffectReadOnly,
so first, use AsKeyframeEffect() to access those keyframe-related methods, and
then add virtual methods for timing-related methods to AnimationEffectReadOnly.

MozReview-Commit-ID: 1srA1f8JYeN
2016-07-25 16:56:34 +08:00
Boris Chiou
db667f51cf Bug 1049975 - Part 3: Handle removed/replaced effect for CSS Transition. r=birtles
Add mTransitionProperty and mTransitionToValue into CSSTransition, so we can
retrieve the original property and ToValue after setting a different effect.

MozReview-Commit-ID: 6sBGHkPAhGX
2016-07-28 11:20:13 +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
Nathan Froyd
13c03441ab Bug 1295192 - part 4 - use a non-null-checked placement new operator in layout code; r=dholbert
The standard placement new function is declared to not throw, which
means that, per spec, a null check on its result is required.  There are
a number of places throughout layout/ where we know that we are passing
non-null pointers to placement new (and receiving them as a return
value), and we are therefore doing useless work performing these null
checks.

Therefore, we should be using an operator new overload that doesn't
require the null check.  MFBT has just such an overload, so use that.
2016-08-17 15:28:45 -04:00
Nathan Froyd
6b5f12063a Bug 1295192 - part 3 - remove CPP_THROW_NEW from display list code; r=dholbert
nsDisplayListBuilder::Allocate is infallible.  Therefore,
nsDisplayListItem::operator new, which calls Allocate to obtain memory,
does not need to declare itself as throwing.  And so on for functions
that call nsDisplayListBuilder::Allocate.
2016-08-17 15:28:45 -04:00
Randall Barker
bac11cde77 Bug 1291373 - [geckoview] part 3, Remove MOZ_ANDROID_APZ r=botond,snorp 2016-08-16 14:33:43 -07:00
Mason Chang
127139a011 Bug 1294121 - Develop a continuous paint mode for Firefox. r=mattwoodrow 2016-08-16 08:46:13 -07:00
Wes Kocher
63041461e3 Backed out 4 changesets (bug 1295192) for being a possible cause of crashtest assertions CLOSED TREE
Backed out changeset 7f10779fe019 (bug 1295192)
Backed out changeset e683dce4197a (bug 1295192)
Backed out changeset 67d12eaa8074 (bug 1295192)
Backed out changeset 44f143a01f78 (bug 1295192)
2016-08-16 11:22:04 -07:00
Mason Chang
768d97be3e Bug 1294121 - Backed out changeset 635d266614ad for windows build failures. r=me. CLOSED TREE 2016-08-16 09:17:25 -07:00
Mason Chang
1d9aabb4aa Bug 1294121 - Develop a continuous paint mode for Firefox. r=mattwoodrow 2016-08-16 08:46:13 -07:00
Nathan Froyd
66b623e381 Bug 1295192 - part 4 - use a non-null-checked placement new operator in layout code; r=dholbert
The standard placement new function is declared to not throw, which
means that, per spec, a null check on its result is required.  There are
a number of places throughout layout/ where we know that we are passing
non-null pointers to placement new (and receiving them as a return
value), and we are therefore doing useless work performing these null
checks.

Therefore, we should be using an operator new overload that doesn't
require the null check.  MFBT has just such an overload, so use that.
2016-08-16 17:05:38 -04:00
Nathan Froyd
03eccd26e7 Bug 1295192 - part 3 - remove CPP_THROW_NEW from display list code; r=dholbert
nsDisplayListBuilder::Allocate is infallible.  Therefore,
nsDisplayListItem::operator new, which calls Allocate to obtain memory,
does not need to declare itself as throwing.  And so on for functions
that call nsDisplayListBuilder::Allocate.
2016-08-16 17:05:38 -04:00
Mason Chang
ca5b51516e Backed out changeset aaaab9a073a4 for build failures. r=me 2016-08-15 20:38:40 -07:00
Mason Chang
4eda31bf6b Bug 1294121 - Develop a continuous paint mode for Firefox. r=mattwoodrow 2016-08-15 19:59:26 -07:00
Jonathan Chan
23ccd0531f Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA
2016-08-09 16:28:19 -07:00
Wes Kocher
924bec4dbe Merge inbound to central, a=merge 2016-08-15 14:20:38 -07:00
Xidorn Quan
2be3be9c34 Bug 1274158 part 1 - Handle zero perspective gracefully. r=mattwoodrow
MozReview-Commit-ID: CEX39wo6oX8
2016-08-12 14:51:10 +10:00
L. David Baron
287271d650 Bug 1294918 - Fix spelling of method name nsIFrame::IsAbsPosContainingBlock. r=dholbert
This misspelling was introduced in bug 1125767, changeset b9951cca6d1f.

MozReview-Commit-ID: KQNlLelY2Kn
2016-08-12 18:39:45 -07:00
Kearwood (Kip) Gilbert
429c0c2603 Bug 1250244 - Part 7: Implement WebVR 1.0 API,r=bz
MozReview-Commit-ID: JTOmaWePlJq
2016-02-24 15:54:50 -08:00
Kearwood (Kip) Gilbert
bbfa14d4ea Bug 1250244 - Part 5: Rename VRDevice to VRDisplay,r=bz
- In order to reduce the size of the following patches
  and increase their readability, we rename VRDevice
  to VRDisplay here first.

MozReview-Commit-ID: 3pv8scdIi5w
2016-04-12 17:39:28 -07:00
Kearwood (Kip) Gilbert
f9fd286412 Bug 1250244 - Part 2: Remove old VR rendering paths,r=gw280
MozReview-Commit-ID: 8H7spQggI2w
2016-05-27 13:49:04 -07:00
Kearwood (Kip) Gilbert
63dd60be74 Bug 1250244 - Part 1: Remove FullScreenOptions parameter from Element.RequestFullScreen,r=bz
MozReview-Commit-ID: 8wmexZT5SB4
2016-04-18 12:12:38 -07:00
Jamie Nicol
c6653902b6 Bug 1292856 - Don't cast scale to int in nsDisplayTransform::ShouldPrerenderTransformedContent; r=mstange
Casting the scale components to integers before multiplying meant that
nsDisplayTransform::ShouldPrerenderTransformedContent was incorrectly
calculating the scaled frame size. This was especially bad when scale <
(1.0, 1.0), as it would calculate a size of (0, 0), leading us to
prerender the frame even if it was too large.

Calculate the frame's size using floating point scale components so as
to avoid this problem.

MozReview-Commit-ID: KhbP8tJ8qYx
2016-08-09 14:55:45 +01:00
Matt Woodrow
75d4a848c5 Bug 1237102 - Make sure we don't generate invalidations for children of opacity:0 frames, even when plugins are present. r=tnikkel 2016-08-10 15:15:28 +12:00
Myk Melez
e3c6e2128e Bug 1291889 - specify CPP_THROW_NEW on definition of function whose declaration specifies it r=tnikkel
MozReview-Commit-ID: 9a8hLbfJbkl
2016-08-03 14:22:06 -07:00
Matt Woodrow
f41b6f280b Bug 1281428 - Don't skip paint painting SVG effects due to 0 opacity if the opacity is being handled by a separate item. r=jwatt 2016-07-29 17:58:15 +12:00
Iris Hsiao
6c52cd2336 Backed out changeset 3531847a7419 (bug 1285174) for Reftest failures 2016-07-28 11:34:18 +08:00
Matt Woodrow
cf8d0c801f Bug 1285174 - Make sure we override the visible region of nsDisplayTransform when we're prerendering. r=mstange 2016-07-28 13:05:40 +12:00
Kartikaya Gupta
3fc2dbcef6 Bug 1287142 - Ensure that the touch-action property on the scrollable element is applied to both the inner and outer scrollframe. r=tnikkel
MozReview-Commit-ID: JafhGnhpApE
2016-07-20 23:29:17 -04:00
Kartikaya Gupta
68edabd58a Bug 1286957 - Because combining touch-action areas into the event regions is fraught with peril, dump them into the dispatch-to-content region. r=tnikkel
MozReview-Commit-ID: FOyCEFP3Hw6
2016-07-20 19:02:09 -04:00
cku
18cb951ca4 Bug 1258510 - Part 1. Use the return value of nsCSSRendering::PaintBackgroundWithSC. r=mstange
MozReview-Commit-ID: D1gKBng8hnJ
2016-07-12 01:22:54 +08:00
Carsten "Tomcat" Book
0e76f92d82 Backed out changeset af828ca7cc58 (bug 1258510) on developers request 2016-07-13 08:37:37 +02:00
cku
d82135b607 Bug 1258510 - Part 1. Use the return value of nsCSSRendering::PaintBackgroundWithSC. r=mstange
MozReview-Commit-ID: D1gKBng8hnJ
2016-07-12 01:22:54 +08:00
Timothy Nikkel
707e109efa Bug 1276467. Enforce that any items creating when we descend into an out-of-flow for which we don't have the proper clip are invisible. r=mattwoodrow
Just giving them an empty visible rect isn't enough because the initial visible rect can be ignored when we compute visibility.

When we enter an out of flow without saved clip data we set a flag on the builder indicating all items created should be invisible. When we enter a visible out of flow (ie one with saved clip data) inside the first out of flow we clear the flag so items created inside the second out of flow can be visible.
2016-07-12 00:49:11 -05:00
Carsten "Tomcat" Book
2a67034d62 Merge mozilla-central to autoland 2016-07-08 12:18:14 +02:00
Timothy Nikkel
f104772b6b Bug 1285409. Store out of flow data for frames we are going to descent into anyways (despite no intersection with the dirty rect) so we have the correct clip for them. r=mattwoodrow
If the frame already has the NS_FRAME_FORCE_DISPLAY_LIST_DESCEND_INTO bit we are going to descend into it anyways, so we may as well store the oof data so we can have the correct clip.

Sometimes we add the bit after this test though, so it doesn't allow us to have the proper clip in all cases.
2016-07-08 00:25:18 -05:00