Commit Graph

1581 Commits

Author SHA1 Message Date
Razvan Maries
77d87d9972 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-11-30 05:13:14 +02:00
Botond Ballo
5aba9815a4 Bug 1501342 - In ProcessDisplayItems(), handle the case where scrollMetadataASR and mContainerScrollMetadataASR are in different branches of the ASR tree. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D13346

--HG--
extra : moz-landing-system : lando
2018-11-30 02:02:48 +00:00
Kartikaya Gupta
cd40821489 Bug 1511042 - Back out some commits from bug 1503447 for introducing correctness and perf regressions. r=backout
This backs out hg commits 1e214baf8fc1, 7d4adeee5236, and f5ffebdcc014.
2018-11-29 14:24:25 -05:00
Coroiu Cristina
da4da94439 Merge mozilla-central to inbound a=merge 2018-11-29 06:39:53 +02:00
Mats Palmgren
7cdfa1649e Bug 1509903 part 1 - Make nsTextFrame::IsFrameSelected() 'final' and inline nsIFrame::IsSelected() to de-virtualize the IsFrameSelected() call in some cases. r=emilio
In particular, in nsCharClipDisplayItem::IsSelected() we know that
the frame must be a nsTextFrame (or nsContinuingTextFrame) which
means nsTextFrame::IsFrameSelected() can be called directly now.
2018-11-29 00:17:25 +01:00
Emilio Cobos Álvarez
448cf93a79 Bug 1498639 - Force the creation of APZ scroll data for the frames with perspective property, not just their children. r=kats
This fixes the assertion, though not the test-case, but now I can debug the
test-case and also land it as failing for now.

What was happening is that we had two ASRs (for the canvas and for the <body>),
and we were creating scroll data for the CompositorHitTestInfo of the <body>
(which obviously didn't have any ancestor transform) and for the
nsDisplayTransform in the backface for which HasPerspective returns true for,
but which already had an ancestor transform for the frame for which
ChildrenHavePerspective returns true.

It may be less risky to force it for both, but this doesn't make anything fail.

Differential Revision: https://phabricator.services.mozilla.com/D13242

--HG--
extra : moz-landing-system : lando
2018-11-28 15:56:58 +00:00
Dzmitry Malyshau
54ba2010c1 Bug 1503447 - Always use zero origin for WR reference frames and stacking contexts r=kats
Previously, WebRender was getting a rectangle for reference frames
and stacking contexts, and it had to carefully treat the origin of this rectange:
  - by offseting all the items in a stacking context
  - by negatively compensating the sticky frame scroll port according to the
parent reference frame origin

With this change, we stop providing any non-zero origins. Instead we accomplish
the same behavior using existing API primitives, such as reference frames:
  1. when a stacking context has an origin, we push another reference frame for it
  2. when computing the sticky frame scroll port, we take this origin into account

This slightly simplifies Gecko-WR API, but more importantly it would allow WR to
get rid of this logic (of handling origins), which in turn would allow to switch
the reference frames from push()/pop() model to just define(), like we do for
scroll/sticky frames already.

Differential Revision: https://phabricator.services.mozilla.com/D13081

--HG--
extra : moz-landing-system : lando
2018-11-28 15:32:41 +00:00
Hiroyuki Ikezoe
22056382c0 Bug 1504065 - Run background-color animations on the compositor. r=birtles
Changes for nsIDOMWindowUtils.getOMTAValue is in the next commit with come test
cases.

Differential Revision: https://phabricator.services.mozilla.com/D13001

--HG--
extra : moz-landing-system : lando
2018-11-28 00:58:46 +00:00
Jonathan Watt
4c1b207664 Bug 1510116. Fix some unified build issues in layout code. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D13039

--HG--
extra : rebase_source : f0b6516484ed97ed52b92e04617f89e4ee8189ff
2018-11-12 22:20:52 +00:00
Coroiu Cristina
a2f107533b Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-11-27 01:03:16 +02:00
Coroiu Cristina
9f7204e754 Merge inbound to mozilla-central a=merge 2018-11-27 00:34:45 +02:00
Miko Mynttinen
7fcf912c40 Bug 1504233 - Part 1: Update container item ASR properly when hit test information is present r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D12612

--HG--
extra : moz-landing-system : lando
2018-11-26 20:14:09 +00:00
Miko Mynttinen
da20c7650e Bug 1504924 - Avoid nsIFrame::IsSelected() call in nsDisplayText::CanApplyOpacity() r=mats
Differential Revision: https://phabricator.services.mozilla.com/D12750

--HG--
extra : moz-landing-system : lando
2018-11-26 16:06:00 +00:00
Matt Woodrow
d7464df528 Bug 1509227 - Cache selection state with RDL. r=miko
MozReview-Commit-ID: CmMDBlYzHyN

Differential Revision: https://phabricator.services.mozilla.com/D12722

--HG--
extra : moz-landing-system : lando
2018-11-25 22:58:14 +00:00
Kartikaya Gupta
bc812d01bd Bug 1508811 - Guard against trying to create an oversized DrawTargetRecording with WebRender. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D12677

--HG--
extra : moz-landing-system : lando
2018-11-23 16:43:48 +00:00
Matt Woodrow
86298e2149 Bug 1458993 - Use correct bounds for WR solid color. r=miko
MozReview-Commit-ID: Gp5C4v8qJXI

Differential Revision: https://phabricator.services.mozilla.com/D12713

--HG--
extra : moz-landing-system : lando
2018-11-22 22:15:34 +00:00
Margareta Eliza Balazs
876022232b Merge inbound to mozilla-central. a=merge 2018-11-22 11:21:21 +02:00
Hiroyuki Ikezoe
f0cd943dd9 Bug 1508843 - Factor out common processes to send animations to the compositor for WebRender. r=birtles
Depends on D12483

Differential Revision: https://phabricator.services.mozilla.com/D12484

--HG--
extra : moz-landing-system : lando
2018-11-22 03:57:21 +00:00
Hiroyuki Ikezoe
377e2fc797 Bug 1508843 - Make boolean arguments for AddAnimationsForProperty enums. r=birtles
Differential Revision: https://phabricator.services.mozilla.com/D12483

--HG--
extra : moz-landing-system : lando
2018-11-22 03:57:19 +00:00
Jeff Muizelaar
eb4806b6a3 Bug 1507021. Add a SnappedClip function to gfxContext. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D11839
2018-11-20 08:56:35 -05:00
Jeff Muizelaar
5624b1e36e Bug 1507021. Use SnappedRectangle in more places. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D11840

--HG--
extra : moz-landing-system : lando
2018-11-19 23:03:32 +00:00
Nicolas Silva
eef47a1b87 Bug 1507140 - Gecko changes for WebRender PR #3291. r=kats
Move wr::DeviceUint* to wr::DeviceInt*.

Differential Revision: https://phabricator.services.mozilla.com/D12150

--HG--
extra : moz-landing-system : lando
2018-11-16 17:13:26 +00:00
Kristen Wright
f22175b197 Bug 1460439 - Conversion from NS_STYLE_BORDER_STYLE_* macro to StyleBorderStyle::* enum class r=emilio
Converted NS_STYLE_BORDER_STYLE_* consts to enum class. Updated corresponding values to enum class. reduced BCCornerInfo struct values to fit StyleBorderStyle values inside struct. Added defaults to switches that do not fully cover all instances of StyleBorderStyle.
2018-11-07 11:56:17 -08:00
Jonathan Watt
f31705c291 Bug 1505374. Remove dead hasClip code from FrameLayerBuilder::AddPaintedDisplayItem. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D11168

--HG--
extra : rebase_source : c2637d8eea66e5e454c1de976083e3410e6c3569
2018-11-05 13:00:33 +00:00
Miko Mynttinen
929f8a7027 Bug 1509579 - Part 1: Do not mark frames modified after the rebuild limit has been reached r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13279

--HG--
extra : moz-landing-system : lando
2018-11-29 05:19:36 +00:00
Randell Jesup
3a05a3fb0f Bug 1298381: Implement TimeToFirstContentfulPaint behind a pref r=mattwoodrow,smaug 2018-10-18 16:16:45 -04:00
Randell Jesup
5c1319a45d Bug 1507315: don't pass an invalid list to LeavePresShell on partial updates r=mattwoodrow 2018-11-14 20:55:39 -05:00
Dzmitry Malyshau
aa76de2aae Bug 1503447 - Remove Nothing() semantic from ASR overrides r=kats
Previously, the ASR overrides contained Maybe<ClipId>, where Nothing() corresponded to taking the top of the clip/scroll stack instead of overriding. This change removes the associated complexity by ensuring that we always provide the ClipId.

Differential Revision: https://phabricator.services.mozilla.com/D11813

--HG--
extra : moz-landing-system : lando
2018-11-14 14:15:16 +00:00
Kartikaya Gupta
76cb4247d3 Bug 1466613 - Prevent creation of DynamicImage instances that are excessively large. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D11528

--HG--
extra : moz-landing-system : lando
2018-11-13 10:39:27 +00:00
Hiroyuki Ikezoe
e0aa8f4fcb Bug 1504929 - Break RestyleManager::GetAnimationGenerationForFrame into EffectSet::GetEffect and EffectSet::GetAnimationGeneration in AddAnimationsForProperty. r=birtles,sotaro
Since we use the EffectSet later in the same function.

Depends on D11599

Differential Revision: https://phabricator.services.mozilla.com/D11601

--HG--
extra : moz-landing-system : lando
2018-11-13 10:18:23 +00:00
Hiroyuki Ikezoe
163ee505df Bug 1504929 - Avoid hashmap lookups in nsLayoutUtils::HasEffectiveAnimation and EffectCompositor::FindAnimationsForCompositor. r=birtles
Depends on D11427

Differential Revision: https://phabricator.services.mozilla.com/D11597

--HG--
extra : moz-landing-system : lando
2018-11-13 10:17:44 +00:00
Hiroyuki Ikezoe
c592937db4 Bug 1504929 - Further optimizations for RestyleManager::AddLayerChangesForAnimations.. r=birtles,sotaro
This change eliminates
 - nsLayoutUtils::LastContinuationOrIBSplitSibling calls for each CSS
   properties on WebRender
 - iterating over each display item for each compositor runnable CSS properties
 - a bunch of stuff in the case where the layer manager has not yet created,
   i.e. the compositor thread is not ready to receive animations

Depends on D11425

Differential Revision: https://phabricator.services.mozilla.com/D11426

--HG--
extra : moz-landing-system : lando
2018-11-13 10:23:20 +00:00
Miko Mynttinen
69825a35fa Bug 1503463 - Part 3: Move component alpha handling to SetupComponentAlpha(), and make it work with items inside flattened transforms. r=mattwoodrow
Depends on D11252

Differential Revision: https://phabricator.services.mozilla.com/D11253

--HG--
extra : moz-landing-system : lando
2018-11-12 18:41:56 +00:00
Miko Mynttinen
520e147b9c Bug 1503463 - Part 2: Remove obsolete layer flattening code r=mattwoodrow
Depends on D11251

Differential Revision: https://phabricator.services.mozilla.com/D11252

--HG--
extra : moz-landing-system : lando
2018-11-08 18:53:41 +00:00
Miko Mynttinen
fa7b4ca2f6 Bug 1503463 - Part 1: Make TransformClipNode::TransformRect() methods const r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D11251

--HG--
extra : moz-landing-system : lando
2018-11-08 18:52:08 +00:00
Miko Mynttinen
e2e8b3d221 Bug 1504233 - Clip hit test info items properly r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D11038

--HG--
extra : moz-landing-system : lando
2018-11-12 01:36:59 +00:00
Bogdan Tara
388d7c8b5a Merge inbound to mozilla-central. a=merge 2018-11-08 20:48:31 +02:00
Emilio Cobos Álvarez
f247168544 Bug 1505645 - Remove unused outparam from nsStyleTransformMatrix. r=boris
dummy bool is dummy.

Differential Revision: https://phabricator.services.mozilla.com/D11275

--HG--
extra : moz-landing-system : lando
2018-11-08 02:25:28 +00:00
Emilio Cobos Álvarez
b3a5d43536 Bug 1505645 - Remove other now useless old style system code. r=hiro
We'd better not be hitting those code paths already :-)

Differential Revision: https://phabricator.services.mozilla.com/D11276

--HG--
extra : moz-landing-system : lando
2018-11-08 02:10:58 +00:00
Botond Ballo
074e717745 Bug 1477847 - Do not layerize mask items if we are inside a BasicLayerManager already. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D10414

--HG--
extra : moz-landing-system : lando
2018-11-07 18:51:00 +00:00
Nicolas Silva
1b186dddd4 Bug 1485512 - Try to express SVG filters as CSS filters when possible. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D8085

--HG--
extra : source : 28104a88b5855f21395f60192ab3f86325931915
extra : intermediate-source : 4a9ee25e545696b17ba09e2b7c9f702ab3d0efc1
2018-11-02 19:01:14 +01:00
Emilio Cobos Álvarez
4cf97e23c7 Bug 1504033 - Ensure we don't start walking past our subtree. r=mattwoodrow
In this case aAncestor is an SVGOuterSVGFrame, and aItem is a transform item for
its AnonChildFrame.

I'm not sure if it's quite expected to have such a frame generating a
transform...

Let me know if not and I can try to dig more, but this looks intentional given
the comment in nsSVGOuterSVGAnonChildFrame.

Differential Revision: https://phabricator.services.mozilla.com/D10955

--HG--
extra : moz-landing-system : lando
2018-11-07 01:37:19 +00:00
Nazım Can Altınova
f967885c60 Bug 1417976 - Part 2: Include DocShell IDs to marker payloads r=mstange
MozReview-Commit-ID: AML1ESUnFlu

Depends on D4914

Differential Revision: https://phabricator.services.mozilla.com/D4915

--HG--
extra : moz-landing-system : lando
2018-11-06 21:45:50 +00:00
Sebastian Hengst
2707fcbd6c Bug 1504521 - rename in-tree mentions of bugzilla metadata for product and component "Core :: Layout: Web Painting" to "Core :: Web Painting" r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10832

--HG--
extra : moz-landing-system : lando
2018-11-04 12:57:04 +00:00
shindli
7c0a5e2aef Merge inbound to mozilla-central. a=merge 2018-11-03 11:40:50 +02:00
Noemi Erli
e8db1dcf1f Backed out 3 changesets (bug 1417976) for causing devtools failures in builds/worker/workspace/build/src/tools/profiler/core/platform.cpp
Backed out changeset e70a24d50f20 (bug 1417976)
Backed out changeset 01ca16ef0b25 (bug 1417976)
Backed out changeset ede2fbe20d14 (bug 1417976)
2018-11-03 01:40:27 +02:00
Emilio Cobos Álvarez
c52a218234 Bug 1504078 - Use references in the shapes code. r=bradwerth,TYLin
It doesn't make much sense to return const UniquePtr<Foo>& for something that
can't be null, it's just confusing.

Also make more stuff actually const.

Differential Revision: https://phabricator.services.mozilla.com/D10647

--HG--
extra : moz-landing-system : lando
2018-11-02 18:19:06 +00:00
Nazım Can Altınova
ed3240c681 Bug 1417976 - Part 2: Include DocShell IDs to marker payloads r=mstange
MozReview-Commit-ID: AML1ESUnFlu

Depends on D4914

Differential Revision: https://phabricator.services.mozilla.com/D4915

--HG--
extra : moz-landing-system : lando
2018-11-02 20:26:48 +00:00
Margareta Eliza Balazs
df311518fe Backed out 3 changesets (bug 1417976) for bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/GeckoProfiler.h CLOSED TREE
Backed out changeset 908f30faf4b6 (bug 1417976)
Backed out changeset 44ae0b8569b2 (bug 1417976)
Backed out changeset 801cdde1f597 (bug 1417976)
2018-11-02 18:42:21 +02:00
Nazım Can Altınova
8432e48060 Bug 1417976 - Part 2: Include DocShell IDs to marker payloads r=mstange
MozReview-Commit-ID: AML1ESUnFlu

Depends on D4914

Differential Revision: https://phabricator.services.mozilla.com/D4915

--HG--
extra : moz-landing-system : lando
2018-11-02 16:17:54 +00:00