Commit Graph

2542 Commits

Author SHA1 Message Date
Miko Mynttinen
896b0f3d84 Bug 1425078 - Remove nsDisplayList::AppendNewToTop and nsDisplayList::AppendNewToBottom r=mattwoodrow
MozReview-Commit-ID: E3neKT2sV4Q
2017-12-13 11:23:04 -06:00
Daniel Holbert
b2377b43d7 Bug 1418349: Make nsFrame::BoxReflow() handle missing-BoxMetrics() more gracefully (with explicit abort or early-return). r=mats
MozReview-Commit-ID: LSxMEYpWTmV
2017-12-01 11:14:26 -08:00
Mats Palmgren
03018ea47a Bug 1422839 part 1 - Add internal overflow-clip-box-block/-inline properties and make overflow-clip-box a shorthand. r=dholbert
MozReview-Commit-ID: axoDaWnOJQ
2017-12-05 21:08:41 +01:00
Botond Ballo
cd5ffe3d62 Bug 1300864 - Disable paint skipping for scroll frames that contain out-of-flow content inside a CSS filter. r=mstange
MozReview-Commit-ID: 5TwC75wzOsm
2017-11-27 16:45:29 -05:00
Matt Woodrow
f8ebb59353 Bug 1420312 - Followup to only mark frame as modified during retained building, since otherwise it won't be restored. 2017-11-27 16:47:28 +13:00
Matt Woodrow
981eb1e906 Bug 1420312 - Rebuild the entire visible area when we find preserve-3d content. r=miko 2017-11-27 15:00:19 +13:00
Kartikaya Gupta
904bd2136b Bug 1418541 - Correct an error when generating event regions. r=mstange
Turns out that there's been a bug in the event regions code since it was
first written, where touch-action:manipulation is not properly expressed
in the event region structs. It's sort of a design bug that we can't fix
without adding another region. However, in bug 1389149 I accidentally
changed the behaviour of some of these cases because I wasn't aware of
this bug. This patch repairs the code so that it behaves the same as it
used to prior to bug 1389149, and documents the buggy scenario.

MozReview-Commit-ID: 9XhkH6ypZHi
2017-11-25 10:53:35 -05:00
Kartikaya Gupta
be81b0e821 Bug 1418387 - Add CompositorHitTestInfo bits for scrollbars. r=mstange
MozReview-Commit-ID: KTfpXoESOxF
2017-11-24 16:23:06 -05:00
Kartikaya Gupta
ebe523672a Bug 1418387 - Make the nsDisplayOwnLayer flags more strongly typed. r=mstange
MozReview-Commit-ID: 8s14jKhp9Lb
2017-11-24 16:23:04 -05:00
Matt Woodrow
43f83a3c50 Bug 1417947 - Mark the correct frame as modified when invalidating due to blend mode. r=miko 2017-11-22 15:10:22 +13:00
Ting-Yu Lin
5ef96b463f Bug 1418905 - Move nsRuleNode::ComputeCoordPercentCalc() into nsStyleCoord. r=heycam
MozReview-Commit-ID: GLLseBxhUiP
2017-11-20 14:05:19 +08:00
Ting-Yu Lin
25ad28cc7e Bug 1417376 Part 3 - Pass nsPoint parameters by const references instead of values. r=mats
It's good to save some copy constructor calls.

MozReview-Commit-ID: 6TveqwkOvc0
2017-11-15 17:55:36 +08:00
Sebastian Hengst
ad4592c337 Backed out changeset bdab19ff2fef (bug 1415485) for letting web platform tests in /css/CSS2/backgrounds/ frequently fail. r=backout a=backout 2017-11-19 15:05:47 +02:00
Miko Mynttinen
02c6a9a1ae Bug 1415485 - Make the pref layout.display-list.retain live again r=mattwoodrow
MozReview-Commit-ID: 6QFc4Sq3WiC
2017-11-09 16:10:21 +01:00
Botond Ballo
a13717532a Bug 1415963 - Take into account stroke (not just fill) when calculating the contribution of an SVG element to a clip rect for a clip path. r=mstange
MozReview-Commit-ID: 7ZwwOH0ErRN
2017-11-13 19:35:51 -05:00
KuoE0
a311d0851e Bug 1418180 - Add parent information into the output of the frame tree. r=TYLin
Sometimes, when adjusting the frame construction procedure, the relationship
between parent and child would be unexpected. So, adding the parent info
into that allows us to notice the expected result.

MozReview-Commit-ID: 8DWOXing463
2017-11-17 11:20:38 +08:00
Ciure Andrei
925321237d Merge inbound to mozilla-central r=merge a=merge 2017-11-17 11:59:03 +02:00
Kartikaya Gupta
c61c7c69c2 Bug 1389149 - Conditionally create the compositor hit-test info items. r=mstange
Create hit-test info items (if enabled) for each frame that is not
invisible to hit-testing. This is not optimized at all yet, so it
creates a lot of display items if enabled.

MozReview-Commit-ID: LFqoaZ9e99F
2017-11-15 11:39:45 -05:00
Kartikaya Gupta
8b299e91fb Bug 1389149 - Extract the logic from nsDisplayLayerEventRegions::AddFrame into a more reusable form. r=mstange
This introduces a enum bitset type that encapsulates some of the
interesting properties that frames have that make it interesting for
hit-testing in the compositor. This type is designed so it can be sent
directly to webrender and gotten back in the hit-test.

MozReview-Commit-ID: GCxV7ZaoJd1
2017-11-15 11:39:44 -05:00
Csoregi Natalia
ca77554a64 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-16 18:02:21 +02:00
Csoregi Natalia
2e899ebb91 Backed out 2 changesets (bug 1415963) for failing reftests on Android 4.3 API16 css-invalid/select/select-disabled-fieldset-1.html r=backout a=backout on a CLOSED TREE
Backed out changeset f592e4962e2b (bug 1415963)
Backed out changeset b98f2fff0e17 (bug 1415963)
2017-11-16 17:41:58 +02:00
Gurzau Raul
ff5e68f9bb Merge inbound to mozilla-central r=merge a=merge 2017-11-16 12:04:45 +02:00
Narcis Beleuzu
b329d068c1 Backed out changeset 0f783930e1b2 (bug 1406727) for GTest failures on ArenaAllocator. r=backout on a CLOSED TREE 2017-11-16 07:45:06 +02:00
Matt Woodrow
c23d838304 Bug 1406727. r=froydnj 2017-11-16 16:09:28 +13:00
Matt Woodrow
ccebca29f4 Bug 1416291 - Don't do partial display list building within preserve-3d contexts. r=miko 2017-11-16 16:09:19 +13:00
Gurzau Raul
77ba6087dd Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-16 12:17:24 +02:00
Matt Woodrow
c87f4fda09 Bug 1406727. r=froydnj 2017-11-16 16:09:28 +13:00
Botond Ballo
b0543a91b1 Bug 1415963 - Take into account stroke (not just fill) when calculating the contribution of an SVG element to a clip rect for a clip path. r=mstange
MozReview-Commit-ID: 7ZwwOH0ErRN
2017-11-13 19:35:51 -05:00
Ya-Chieh Wu
a09f299b01 Bug 1381153 - Part 2: Look up MayHaveTransformAnimation in nsIFrame. r=mstange
Find out where we use MayHaveTransformAnimation in EffectSet
and change them to MayHaveTransformAnimation in nsIFrame.

MozReview-Commit-ID: GhkztK8JtNa
2017-11-12 23:23:00 -05:00
Ya-Chieh Wu
c470d0ce9d Bug 1381153 - Part 1: Cache MayHaveOpacityAnimation and MayHaveTransformAnimation in nsIFrame. r=mstange, r=mats
There are two places where I have to cache the status of MayHaveOpacityAnimation
and MayHaveTransformAnimation. First place is in |nsIFrame:init()| where an
element is associated with a frame. Second place is in
|KeyframeEffectReadOnly::UpdateEffectSet()| where the script can add animations
on element.

btw I keep the original two flags of MayHaveOpacityAnimation and
MayHaveTransformAnimation in EffectSet because there is no guarantee that
an element has been associated with a frame when we call to |UpdateEffectSet()|.
But we still want to keep the benefits that we can quickly look up
MayHaveOpacityAnimation or MayHaveTransformAnimation. So I keep them in
EffectSet and transfer the status into nsIFrame when we bind an element
to a frame in nsIFrame:Init().

MozReview-Commit-ID: JDwyAQQTKA7
2017-11-13 18:15:00 -05:00
Sebastian Hengst
1f9977f734 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-14 14:48:43 +02:00
Sebastian Hengst
a191aa1438 Backed out changeset 32958aa32cb5 (bug 1415485) for frequently failing for failing reftest layout/reftests/async-scrolling/position-fixed-in-scroll-container.html on Linux x64 QuantumRender. r=backout a=backout on a CLOSED TREE 2017-11-14 14:47:14 +02:00
Miko Mynttinen
209af6ddf3 Bug 1415485 - Make the pref layout.display-list.retain live again r=mattwoodrow
MozReview-Commit-ID: 6QFc4Sq3WiC
2017-11-09 16:10:21 +01:00
Ting-Yu Lin
7170cf8dab Bug 1416962 - Remove the support for disabling "drag and select" on touchable devices. r=mats
The pref "browser.ignoreNativeFrameTextSelection" was used only by B2G, and
currently not enabled elsewhere, so this code is dead now. Also, this
functionality is obsoleted by AccessibleCaret.

MozReview-Commit-ID: 2kHYXLueFH5
2017-11-14 11:22:59 +08:00
Jeremy Chen
bfa4bf8716 Bug 1416689 - fix frame dump code in nsIFrame::ListGeneric. r=TYLin
I believe this is a typo. This fix will not affect the existing frame dump result
because the input parameter, i.e., aTo, has been initialized to empty string by
the caller before calling. So, the first line of nsIFrame::ListGeneric can be
written as:

a) aTo =+ aPrefix;
b) aTo += aPrefix;
c) aTo = aPrefix;

and all three results are the same at present.

In this patch, we fix the typo by choosing (b) to make it align the rest parts
of nsIFrame::ListGeneric.

MozReview-Commit-ID: CHJDyVSJj5W
2017-11-13 17:12:03 +08:00
Chris Peterson
c5d0841695 Bug 1416164 - Replace NS_POSTCONDITION with MOZ_ASSERT. r=froydnj
MozReview-Commit-ID: 9K3Ksf36uxr
2017-11-04 22:48:48 -07:00
Matt Woodrow
5d70087147 Bug 1413073 - Part 3: Recompute ASR and clip-chains on wrap lists when merging. r=mstange 2017-11-10 13:16:55 +13:00
Kartikaya Gupta
8bfdaafe71 Bug 1415225 - Small early-exit optimization. r=botond
MozReview-Commit-ID: A3UuqKKOsjA
2017-11-09 09:03:52 -05:00
Mats Palmgren
2544eb586c Bug 1414666 part 1 - Add nsIFrame::PresShell() for convenient access to the shell. r=emilio
MozReview-Commit-ID: 8FPTPKWyVtY
2017-11-09 03:00:48 +01:00
Matt Woodrow
a853c7cd03 Bug 1414397 - Make sure we properly invalidate the entire frame subtree when detecting a caret frame change. r=miko 2017-11-08 15:33:34 +13:00
Matt Woodrow
95c277a7f0 Bug 1412110 - Make sure we build a wrap list for the caret frame, since it will have multiple display items. r=miko 2017-11-08 15:32:27 +13:00
Matt Woodrow
c8fd52f4c3 Bug 1413833 - Don't use WeakFrame for the modified frame list since get slow with large numbers of frames. r=miko 2017-11-08 15:25:44 +13:00
Matt Woodrow
ef713ab44c Bug 1413833 - Cap the number of modified frames that we track to avoid the overhead getting too large. r=miko 2017-11-08 15:23:34 +13:00
Sebastian Hengst
ca62aaeac7 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-11-07 02:47:30 +02:00
Mats Palmgren
0fe608900c Bug 1400618 part 6 - Remove the workaround for the broken IsPrimaryFrame() in nsFrame::DestroyFrom since it now works also for NAC frames. r=bz
MozReview-Commit-ID: 1DFyWZBpzwP
2017-11-07 01:20:34 +01:00
Mats Palmgren
26c8be1e23 Bug 1400618 part 2 - Remove the nsIFrame::GenConProperty property and make aPostDestroyData deal with unbinding it. r=bz
MozReview-Commit-ID: HJ5OTJ4v4Y1
2017-11-07 01:20:34 +01:00
Mats Palmgren
616f910f82 Bug 1400618 part 1 - Collect NAC / generated content and call DestroyAnonymousContent / UnbindFromTree on those after the frames are destroyed. r=bz
MozReview-Commit-ID: 2trDgeJPw25
2017-11-07 01:20:33 +01:00
Hiroyuki Ikezoe
0df8b63109 Bug 1414690 - Remove nsIFrame::IsPseudoStackingContextFromStyle. r=dholbert
The last places that call this function have been removed in
https://hg.mozilla.org/mozilla-central/rev/0f7e0529ee3f,
and never been used since then.

MozReview-Commit-ID: FQtnwRHQ8cH
2017-11-06 09:18:27 +09:00
Markus Stange
6d9891d83a Bug 1414097 - Convert nsDisplaySelectionOverlay to WebRender. r=ethlin
MozReview-Commit-ID: 5icpe4OR0Qa
2017-11-02 19:43:08 -04:00
Botond Ballo
031df70d41 Bug 1382534 - Try to give nsDisplayMask items proper scroll metadata. r=mstange
MozReview-Commit-ID: L6kYkzC1F8S
2017-10-20 18:16:50 -04:00