Brad Werth
5b390abfab
Bug 1355675 Part 1: Add optional inCSSUnits parameters to GetTransformMatrix and GetTransformToAncestor. r=mattwoodrow
...
MozReview-Commit-ID: EA5uqeoUWE3
2017-05-30 09:05:52 -07:00
Mats Palmgren
f53a6843c6
bug 1368547 part 2 - Remove nsFrameManager/PresShell methods dealing with placeholders and introduce a nsIFrame::GetPlaceholderFrame() convenience method. r=jfkthame
...
MozReview-Commit-ID: GBUiUBqJxhQ
2017-05-31 21:29:49 +02:00
Jonathan Kew
4dcf0fe444
Bug 1365982 - Attach frame properties to each frame instead of looking them up in a hashtable on the prescontext. r=mats
2017-05-27 12:36:00 +01:00
Ting-Yu Lin
b8f0384e83
Bug 1363640 Part 2 - Move the logic in SupportsServoStyleBackend() to UpdateStyleBackendType(). r=heycam
...
SupportsServoStyleBackend() uses methods in nsIDocument, so it would be more
straightforward to do that in UpdateStyleBackendType().
Also, call StyloEnabled() before doing other logic so that the warning about
"no docshell" won't show up when stylo is built but disabled.
MozReview-Commit-ID: 9ZUYatPBv1r
2017-05-09 18:33:57 -07:00
Ting-Yu Lin
672280851d
Bug 1363640 Part 1 - Move IsContentDocument() and IsTopLevelContentDocument() from nsDocument to nsIDocument. r=heycam
...
In this way, the callers who have nsIDocument don't need to cast to nsDocument.
MozReview-Commit-ID: 8zVUjkbrlaG
2017-05-09 18:28:36 -07:00
Manish Goregaokar
4daf9cf4f3
Bug 1366914 - Remove pref layout.css.background-clip-text.enabled; r=dholbert
...
MozReview-Commit-ID: 6XibTM1f1Rh
2017-05-22 18:57:21 -07:00
Mats Palmgren
bd90393cc1
Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
...
MozReview-Commit-ID: IbwWM0FL6HF
2017-05-21 17:15:00 +08:00
Carsten "Tomcat" Book
1aa86b3e0e
Backed out changeset bbb688fe1ba3 (bug 1365614)
2017-05-22 15:45:31 +02:00
Mats Palmgren
473a358067
Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
2017-05-21 17:15:00 +08:00
Boris Chiou
29d264bed7
Bug 1334036 - Part 10: Return AnimationValue for BaseStyle. r=hiro
...
We need to retrieve the correct base style for Servo backend, so change
the return value to AnimationValue and update
KeyframeEffectReadOnly::BaseStyle().
MozReview-Commit-ID: 9FL3h1DLoJt
2017-05-10 11:06:19 +08:00
cku
0ca983ad6e
Bug 1205475 - Part 2. Prevent multiple EffectSet property look up. r=mattwoodrow
...
Functions like BuildDisplayListForStackingContext or BuildDisplayListForChild look
up EffectSet property several times in callees, such as IsTransformed() or
HasOpacity(), which is time wasting.
We should look up EffectSet just once, and pass the found one to all callees
that need it.
MozReview-Commit-ID: GZywm2UcpU7
2017-05-17 15:13:12 +08:00
cku
9dbf7146e6
Bug 1205475 - Part 1. Hold MAY_HAVE_OPACITY_ANIM/ MAY_HAVE_TRANSFOMR_ANIM information in EffectSet. r=mattwoodrow
...
FRAME_STATE_BIT of nsFrame and nsINode::mBoolFlags are both full, we need to
find another place to hold MAY_HAVE_OPACITY information.
nsINode::mSlots might be a choice, but since we always use this information in
painting, memory footprint of nsINode will become larger after this change.
So I decide to put this information right in EffectSet. The drawback of storing
this information in EffectSet is, although unnecessary Effect look-up is
prevented, we still need EffectSet property look-up in each time
HasOpacityInternal call, so we need Part 2.
Conceptually, Part 1 and Part 2 are independent.
MozReview-Commit-ID: 6sfBFSHjxQb
2017-05-16 19:11:04 +08:00
Jonathan Kew
eecfba38f3
Bug 1365356 - patch 2 - Allow callers to pass an nsStyleDisplay in to FinishAndStoreOverflow, to avoid internal StyleDisplay() calls. r=mats
2017-05-17 15:47:31 +01:00
Botond Ballo
a4743bb472
Bug 1359868 - Move the ComputePartialPrerenderArea() helper to nsLayoutUtils so it can be reused. r=mstange
...
MozReview-Commit-ID: GVRBUfYwOFP
2017-05-01 19:59:08 -04:00
Mats Palmgren
78fce530a6
Bug 1349320 part 2 - [css-grid] Make nsLayoutUtils::IntrinsicForAxis take an optional percentage basis to use for resolving transferred percentages. r=dholbert
...
If the percentage basis isn't provided it will be calculated from the ancestors
as before. Note that that algorithm is only valid if the frame's containing
block is the ancestor's content box, which isn't the case for grid items.
So grid layout MUST provide a percentage basis, although the given value may
be NS_UNCONSTRAINEDSIZE for either axis if the value is indefinite.
MozReview-Commit-ID: 7nvAuR43xfM
2017-05-11 02:33:14 +02:00
Kartikaya Gupta
4ad6851189
Back out bug 1359868 (2 csets) for possibly causing a checkerboarding regression. r=backout
...
MozReview-Commit-ID: KFOsj8If3sZ
2017-05-09 13:23:23 -04:00
Carsten "Tomcat" Book
687bb63b46
Merge mozilla-central to mozilla-inbound
2017-05-09 14:40:11 +02:00
Randall Barker
1e8751762a
Bug 1361781 - Ensure nsLayoutUtils::SetFixedPositionLayerData sets the SideBits: eSideBitsTop and eSideBitsLeft r=tnikkel
...
MozReview-Commit-ID: LxKOsExXGfH
2017-05-08 17:02:07 -07:00
Kartikaya Gupta
0a51fe4ea8
Merge m-c to graphics
...
MozReview-Commit-ID: 2cIoGVmLEuA
2017-05-08 10:50:52 -04:00
Kartikaya Gupta
79b515ab57
Merge m-c to graphics
...
MozReview-Commit-ID: 9HO5vhW5fyh
2017-05-04 09:05:26 -04:00
Kartikaya Gupta
30355f64ab
Merge m-c to graphics
...
MozReview-Commit-ID: DVUE3Wys3HV
2017-05-03 08:52:43 -04:00
Kartikaya Gupta
b15f65ddbd
Merge m-c to graphics
...
MozReview-Commit-ID: 9XwZUWIhGir
2017-05-02 09:45:11 -04:00
Ethan Lin
af28b15c49
Bug 1360112 - Correct background image position when enabling webrender background image. r=mattwoodrow
2017-05-01 00:59:26 +08:00
Botond Ballo
2ca730b70d
Bug 1359868 - Move the ComputePartialPrerenderArea() helper to nsLayoutUtils so it can be reused. r=mstange
...
MozReview-Commit-ID: GVRBUfYwOFP
2017-05-01 19:59:08 -04:00
Brian Birtles
a21e613ca1
Bug 1355348 - Add constructor to AnimationValue; r=hiro
...
We will use this later in this patch series to simplify the creation of SMIL's
ValueWrapper objects.
MozReview-Commit-ID: 7EF9CN2SdwQ
2017-04-26 13:00:11 +09:00
Emilio Cobos Álvarez
7e1330401f
Bug 1355351: Simplify nsLayoutUtils callers, and make child iterators notice display: contents pseudos. r=heycam
...
This also happens to fix other bugs, like making display: contents pseudos
animatable, which weren't before.
MozReview-Commit-ID: LhwTPNbFvSZ
2017-04-19 12:53:57 +02:00
Emilio Cobos Álvarez
d1f4335361
Bug 1355351: Clean up pseudo-element props. r=heycam
...
MozReview-Commit-ID: JZAhEN3chPs
2017-04-19 10:27:33 +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
Henri Sivonen
43720a8e05
Bug 1269490 - Merge nsHtml5Atoms into nsGkAtoms. r=wchen
...
MozReview-Commit-ID: EcfnXkFuJy3
2017-04-20 11:47:02 +03:00
Botond Ballo
c54a7e6d2f
Bug 1357903 - Clip event regions when combining them to a containing PaintedLayerData. r=mstange
...
MozReview-Commit-ID: 9Z3ITH5raXl
2017-04-28 20:32:05 -04:00
Nicholas Nethercote
a7e5660c91
Bug 1360471 (part 4) - Use a bitfield to represent profiler features. r=mstange.
...
Currently the profiler mostly uses an array of strings to represent which
features are available and in use. This patch changes the profiler core to use
a uint32_t bitfield, which is a much simpler and faster representation.
(nsProfiler and the profiler add-on still use the array of strings, alas.) The
new ProfilerFeature type defines the values in the bitfield.
One side-effect of this change is that profiler_feature_active() now can be
used to query all features. Previously it was just a subset.
Another side-effect is that profiler_get_available_features() no longer incorrectly
indicates support for Java and stack-walking when they aren't supported. (The
handling of task tracer support is unchanged, because the old code handled it
correctly.)
2017-05-01 14:23:34 +10:00
Jonathan Kew
f7e305bc0d
Bug 1362167 - Use strongly-typed enum classes instead of generic uint16_t fields for the gfxShapedText and gfxTextRun flags. r=jrmuizel
2017-05-04 22:27:05 +01:00
Jonathan Kew
527ecaca8e
Bug 1362167 - Split gfxShapedText.mFlags into two 16-bit flags fields, and arrange storage more compactly to reduce size of gfxShapedWord and gfxTextRun objects. r=jrmuizel
2017-05-04 22:25:16 +01:00
Jeremy Chen
5268525d78
Bug 1359343 - enable stylo for SVG documents. r=heycam
2017-05-05 09:58:56 +00:00
Emilio Cobos Álvarez
3731858edf
Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam
...
MozReview-Commit-ID: 5Nzhyta5Hle
2017-04-30 17:30:08 +02:00
Phil Ringnalda
c728e05216
Backed out 7 changesets (bug 1302470) for mochitest-chrome failures
...
CLOSED TREE
Backed out changeset de9f42b512c8 (bug 1302470)
Backed out changeset 2394e63f50ff (bug 1302470)
Backed out changeset 3542d7bacbdc (bug 1302470)
Backed out changeset 22793139a866 (bug 1302470)
Backed out changeset cc6ff95187d0 (bug 1302470)
Backed out changeset 033fce5ecd39 (bug 1302470)
Backed out changeset 0bb3e70e5f46 (bug 1302470)
MozReview-Commit-ID: 5DmpbQp335X
2017-04-28 20:12:06 -07:00
Brad Werth
9d28495c94
Bug 1302470 Part 4: Fix the case where HTML buttons need to generate display item children when doing opaque hit tests. r=mattwoodrow
...
MozReview-Commit-ID: HwDYsnMJkM8
2016-11-30 14:35:37 -08:00
Jonathan Watt
cdd6a1c7e7
Bug 1358690, part 2 - Support context paint in SVG when drawn as a CSS background image. r=dholbert
2017-03-28 12:07:39 +01:00
Sebastian Hengst
210d39dc97
Backed out changeset d0ecd711cbc4 (bug 1302470)
2017-04-21 19:09:11 +02:00
Brad Werth
316ca4fae0
Bug 1302470 Part 4: Fix the case where HTML buttons need to generate display item children when doing opaque hit tests. r=mattwoodrow
...
MozReview-Commit-ID: HwDYsnMJkM8
2016-11-30 14:35:37 -08:00
Carsten "Tomcat" Book
790eabc789
Backed out changeset 71de099b2eb7 (bug 1302470)
2017-04-21 17:10:40 +02:00
Brad Werth
b912b7d28a
Bug 1302470 Part 4: Fix the case where HTML buttons need to generate display item children when doing opaque hit tests. r=mattwoodrow
...
MozReview-Commit-ID: HwDYsnMJkM8
2016-11-30 14:35:37 -08:00
L. David Baron
d1b825be2d
Bug 1307134 - Rename nsGlobalWindow::EnsureSizeUpToDate to EnsureSizeAndPositionUpToDate. r=tnikkel
...
This is because it does ensure both, and some of the callers care about
size and some care about position.
MozReview-Commit-ID: 3e8II6Lf72X
2017-04-18 11:28:52 +09:00
Jeff Gilbert
ef8acdb9c3
Bug 1355763 - Add gfxAlphaType for specifying opaque/premult/non-premult. - r=daoshengmu
...
MozReview-Commit-ID: Jzr8aPYlEcO
2017-04-13 09:14:34 -07:00
Timothy Nikkel
203896ccec
Bug 1355898. Rename flag SFE_WANT_FIRST_FRAME to SFE_WANT_FIRST_FRAME_IF_IMAGE to represent what it does better. r=jgilbert
...
We only pay attention to the flag for images.
2017-04-13 03:40:45 -05:00
Iris Hsiao
191fdd1b09
Backed out changeset f97fd860c168 (bug 1355763)
2017-04-13 14:46:43 +08:00
Jeff Gilbert
37d512e4b7
Bug 1355763 - Add gfxAlphaType for specifying opaque/premult/non-premult. - r=daoshengmu
...
MozReview-Commit-ID: Jzr8aPYlEcO
2017-04-12 22:03:43 -07:00
David Anderson
7ff89642e7
Collect diagnostics on paint times for the compositor overlay. (bug 1352151 part 1, r=mattwoodrow)
2017-04-10 19:44:45 -07:00
Ting-Yu Lin
2c0ccc8249
Bug 1312328 - Remove CSS variables preference "layout.css.variables.enabled". r=xidorn
...
MozReview-Commit-ID: HwYpwbhQkZj
2017-04-07 00:29:39 +08:00
Hiroyuki Ikezoe
2aaa9d1814
Bug 1311257 - Update comment refering to bug 1311257. r=birtles
...
MozReview-Commit-ID: EM1dYILDlzS
2017-04-06 11:51:29 +09:00