Commit Graph

2663 Commits

Author SHA1 Message Date
Mats Palmgren
6d50b11990 Bug 1427221 part 1 - Do nsMathMLmfencedFrame cleanup in DestroyFrom, not in the dtor. r=mattwoodrow 2018-01-10 20:09:18 +01:00
Matt Woodrow
8cd6f1f702 Bug 1427476 - Don't try to retain display lists for popups since their display root isn't the root frame of a document. r=miko 2018-01-03 18:31:31 +13:00
Tiberius Oros
343df02d82 Merge inbound to mozilla-central r=merge a=merge 2018-01-05 11:57:58 +02:00
Hiroyuki Ikezoe
4a9f727d6a Bug 1421507 - Throttle animations in position:fixed element that the element is out of view. r=boris,tnikkel
MozReview-Commit-ID: jLvrcVhTKW
2018-01-05 10:30:46 +09:00
Mats Palmgren
d079be3365 Bug 1423761 - Make CorrectStyleParentFrame / UpdateStyleOfChildAnonBox deal with abs.pos. anon boxes. r=dholbert
For an OOF frame, the parent frame that's associated with our parent style
context is the *placeholder's* parent -- not the OOF frame's parent.
2018-01-04 22:16:37 +01:00
Emilio Cobos Álvarez
7f2020dd53 Bug 1428144: Remove some dead nsIFrame code. r=mats
MozReview-Commit-ID: Aaj6XLp3LnA
2018-01-04 20:37:11 +01:00
Emilio Cobos Álvarez
8a71d3197b Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ecd202d763 Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me 2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
b3956b6171 Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-07 19:13:50 +01:00
Matt Woodrow
e95577a1a6 Bug 1344971 - Part 2: Check NS_FRAME_MAY_BE_TRANSFORMED as part of Extend3DContext. r=thinker 2017-03-07 14:07:32 +13:00
Matt Woodrow
4919a6c407 Bug 1344971 - Part 1: Create OutOfFlowDisplayData for the parent of the OOF frame so they can be shared. r=mstange 2017-03-01 12:09:43 +13:00
Matt Woodrow
00d3947a6b Bug 1413546 - Add pref to allow retained display lists within the parent process. r=jet 2017-12-22 11:45:32 +13:00
Emilio Cobos Álvarez
8245586af5 Bug 975644: Enable position sticky in table parts. r=bz
MozReview-Commit-ID: 85nCuChHdTa
2017-12-21 20:29:20 +01:00
Emilio Cobos Álvarez
beefce9983 Bug 975644: Add a hack to skip table row groups for sticky positioning. r=bz
This matches Blink's behavior.

Just skipping table row groups from being containing blocks makes
layout/reftests/table-overflow/table-cell-block-overflow.html render differently
(and way more different than any other browser, actually...), so I avoided doing
that.

Though I'm not really proud of this one, better ideas welcome. Maybe I should
just fix table layout so that we agree with WebKit / Blink... But that seemed
harder, too.

MozReview-Commit-ID: AkUB4MFzwZK
2017-12-21 20:29:19 +01:00
Daniel Holbert
7d219d6c3a Bug 1398963 part 1: Rename frame-state bit from NS_STATE_FLEX_IS_LEGACY_WEBKIT_BOX to NS_STATE_FLEX_IS_EMULATING_LEGACY_BOX (idempotent patch). r=mats
This patch isn't changing semantics of this bit at all - it just renames it to
a more general name. In other words, this patch does not change behavior.

MozReview-Commit-ID: 4wb13X4YinJ
2017-12-18 12:17:10 -06:00
Margareta Eliza Balazs
335fc3dcb4 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-15 11:52:23 +02:00
Matt Woodrow
eb54539b33 Bug 1419021 - Part 2: Don't do a full display list build when there are no modified frames. r=miko 2017-12-14 17:38:21 -06:00
Narcis Beleuzu
0d5e874622 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-12-15 03:46:15 +02:00
Gerald Squelart
8ae66ef2e6 Bug 1416991 - Fix perspective indexing in partial DL builds - r=mattwoodrow
Perspective item indices (used to produce unique per-frame keys) were generated
by incrementing a counter in the builder when building a perspective display
item. This caused problems with retained display lists, because an unmodified
perspective could be skipped during a partial build, causing other perspectives
to be incorrectly numbered and then incorrectly merged with the previous
retained display list.

To fix this, we need to always increment the counter if there is likely to be
a perspective, before that item may be skipped.

MozReview-Commit-ID: Edn7lUOLuPw
2017-12-13 05:41:13 -06:00
Mats Palmgren
2669e7c654 Bug 1424528 part 3 - A few manual fixes related to removing the nsDidReflowStatus param in DidReflow. r=dholbert
MozReview-Commit-ID: 8elJQTfOaaL
2017-12-14 16:21:49 +01:00
Mats Palmgren
430070c174 Bug 1424528 part 2 - Remove nsDidReflowStatus param in DidReflow declarations (automated change). r=dholbert
MozReview-Commit-ID: 44pchGXzYL7
2017-12-14 16:21:49 +01:00
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