Commit Graph

12832 Commits

Author SHA1 Message Date
Neil Rashbrook
bf6bdf8c7c Bug 1290158 Don't generate synthetic paint events for invisible documents r=mattwoodrow 2016-09-14 15:55:45 +01:00
Carsten "Tomcat" Book
9a2448ee1c Merge mozilla-central to mozilla-inbound 2016-09-14 12:11:09 +02:00
Mike Conley
3682283a8c Bug 1297996 - Add preference to show background colour between pageloads for non-e10s. r=tnikkel
Adds a hidden layout.show_previous_page pref for non-e10s that, when set to false,
will blank out the content area in between page loads instead of showing the
previous page.


MozReview-Commit-ID: 1EyDk4IabeK

--HG--
extra : rebase_source : efd4c745b2c249b1f57faedd8a3d5080c7445893
2016-08-17 17:55:49 -04:00
Carsten "Tomcat" Book
f77a18b1b7 merge mozilla-inbound to mozilla-central a=merge 2016-09-13 11:57:54 +02:00
Mats Palmgren
3f8612e2b9 Bug 1299133 - [css-grid] Subtract the grid-gaps in the span when collecting growable tracks. r=dholbert
--HG--
extra : source : 8898636baa30f66648f0265d48a050feac5dc76d
2016-09-12 23:13:08 +02:00
Wes Kocher
e03e64c99f Backed out 2 changesets (bug 1299133) for win vm reftest failures a=backout CLOSED TREE
Backed out changeset fa010785b1ed (bug 1299133)
Backed out changeset 8898636baa30 (bug 1299133)
2016-09-12 15:53:52 -07:00
Mats Palmgren
c6c6b4a4e4 Bug 1299133 - [css-grid] Subtract the grid-gaps in the span when collecting growable tracks. r=dholbert 2016-09-12 23:13:08 +02:00
Ting-Yu Lin
2884834832 Bug 1301630 - Remove nsBlockFrame::SetFlags(). r=bz
Per bug 1299753 comment 20, SetFlags() is designed for flag propagation
to continuations during block reflow. To avoid misuse, I expand
SetFlags() directly in the only reasonable caller nsBlackFrame::Init(),
and replace other usages by AddStateBits().

MozReview-Commit-ID: GsbE2Z0Rps1

--HG--
extra : rebase_source : 72a64e9218870d638f67d1b586f533cd7d16c491
2016-09-09 15:26:57 +08:00
Matt Woodrow
c0a7b324b9 Bug 1300611 - Move overflow rect into correct coordinate space when computing perspective overflows so that it's not affected by scroll position. r=dbaron 2016-09-14 18:00:17 +12:00
Kaku Kuo
66f48b21c6 Bug 1284350. Reland on top of backouts "Bug 1282710 - part 2 - Plumb the visibility event from nsIFrame to nsIDOMMediaElemnt; r=seth" r=kaku 2016-06-29 17:36:24 +08:00
Timothy Nikkel
97166ec5f2 Bug 1284350. Ensure that if a frame is painted it is added to the approximately visible list. r=mstange
This takes the second hunk of https://hg.mozilla.org/mozilla-central/rev/82c3b4b81d82 only, but instead of the "in displayport" list we are adding to the "approximately visible" list. The "in displayport" list doesn't exist after the backouts that need to be done.

This ensures that all visible frames are in the approximately visible list.

By not taking the first chunk of the aforementioned changeset we don't remove frames that aren't painted from the approximately visible list. So the list only grows during a paint. But the next time the we do a full update of approximately visible images it can shrink.

We need this because the video element uses visibility to start/stop decoding (bug 1282710, bug 1299065) and we want frames that are painted to for sure be marked as visible.
2016-09-12 00:19:08 -05:00
Timothy Nikkel
0b6fd97ae9 Bug 1284350. Backed out changeset 69abdc731a99 (Bug 1261554 (Part 1) - Prepare for implementing in-displayport visibility tracking. r=mstange) 2016-09-12 00:19:08 -05:00
Timothy Nikkel
154ad5a083 Bug 1284350. Backed out changeset 82c3b4b81d82 (Bug 1261554 (Part 2) - Mark frames which are added to the display list when painting to the window as having Visibility::IN_DISPLAYPORT. r=mstange) 2016-09-12 00:19:08 -05:00
Timothy Nikkel
c630475661 Bug 1284350. Backed out changeset bb3bf463c0ec (Bug 1261554 (Part 3) - Visualize Visibility::IN_DISPLAYPORT regions in the APZ minimap visibility debugger. r=botond) 2016-09-12 00:19:08 -05:00
Timothy Nikkel
cb67cca872 Bug 1284350. Backed out changeset d6a286242f2d (Bug 1268348 - Pass the previous visibility state to OnVisibilityChange(). r=mstange) 2016-09-12 00:19:07 -05:00
Timothy Nikkel
88bb36312b Bug 1284350. Backed out changeset 4517cddd204e (Bug 1269934 - Handle visible frame sets more generically in PresShell. r=mstange) 2016-09-12 00:19:07 -05:00
Timothy Nikkel
8c2253ad04 Bug 1284350. Backed out changeset 103dc4eddacf (Bug 1282710 - part 2 - Plumb the visibility event from nsIFrame to nsIDOMMediaElemnt; r=seth) 2016-07-26 17:43:58 -05:00
Kyle Machulis
f8661f72f8 Bug 820831 - Turn on ContentScaleFactor calculation on Windows; r=jimm
MozReview-Commit-ID: 5rqTURsO839

--HG--
extra : rebase_source : 2e2f71d825221723990049958d43d6e2eb40411d
2015-09-17 13:31:34 -07:00
Carsten "Tomcat" Book
c81bda3e2d Merge mozilla-central to autoland 2016-09-09 12:19:59 +02:00
Carsten "Tomcat" Book
0f2c669a48 merge mozilla-inbound to mozilla-central a=merge 2016-09-09 12:02:43 +02:00
Ting-Yu Lin
13f0d4632f Bug 1299753 Part 2 - Create block formatting context for DetailsFrame if needed. r=bz
nsCSSFrameConstructor::ConstructNonScrollableBlock() has logic to
determine whether to create a block formatting context for a block
frame. I refactor the function to make it reusable by
nsCSSFrameConstructor::ConstructDetailsFrame().

Also, make NS_NewBlockFrame() accept two arguments as other frame
factory functions so that it could be pointed by BlockFrameCreationFunc.
NS_NewBlockFormattingContext is changed accordingly.

The construction for a scrollable DetailsFrame will be further revised
in Part 3.

MozReview-Commit-ID: 8TwG9YMyGva

--HG--
extra : rebase_source : fffdd974df81a809a607491d2534aa8dd2d13ab1
2016-09-07 14:45:42 +08:00
Manish Goregaokar
aad318e17a Bug 1300337 - Replace None_ variants from nsStyleConsts.h with None; r=heycam,TYLin
MozReview-Commit-ID: CxHzbEzjLxT

--HG--
extra : rebase_source : 232f90b8b107f7fb49f47a29a4e493660b8a7d87
2016-09-04 00:16:58 +05:30
Nicholas Nethercote
f4ec41d9b5 Bug 1297300 - Add missing checks to GetSpec() calls in layout/. r=dholbert,heycam.
--HG--
extra : rebase_source : b3a26866746cde4337f5ffeff94f370b2eb7da3e
2016-08-31 20:10:10 +10:00
cku
069847c2be Bug 1295094 - Part 15. (follow up) Correct comments.(DONTBUILD) r=me
MozReview-Commit-ID: Kw8rrduASI2

--HG--
extra : rebase_source : c67b6b09563f223434889124d2c9f68e8a8fe9a9
extra : amend_source : dcb23bf43c12e527550f130793d61f10e4a395c1
2016-09-09 11:24:15 +08:00
Brad Werth
4ca89baabe Bug 1281446 - Resolved value of grid-template-columns/rows now lists removed auto-fit tracks as 0px. r=mats
--HG--
extra : rebase_source : 1590c0690945a702ab519b6aa66c90e2a2e86222
2016-09-08 08:40:06 -07:00
Wes Kocher
c067786818 Merge m-c to inbound, a=merge CLOSED TREE 2016-09-08 15:28:31 -07:00
Daniel Holbert
f94ce2e824 (no bug) minor whitespace cleanup in nsVideoFrame.cpp. (no review, whitespace-only) DONTBUILD
MozReview-Commit-ID: EuW9ZzKcClm
2016-09-08 10:21:52 -07:00
Bas Schouten
4d5484cc37 Bug 1297427: Discount border dots with negative radii. r=jrmuizel
MozReview-Commit-ID: 1CONhbL8ZAb

--HG--
extra : rebase_source : 07766295f9b7e238882f8711720bb1ce48977ade
2016-09-08 14:00:54 +02:00
Kartikaya Gupta
0de88e9b65 Bug 1295019 - Suppress the APZ displayport while doing main-thread async scrolling. r=BenWa
MozReview-Commit-ID: 4xbotjcH3ZU

--HG--
extra : rebase_source : 56efef087af9e2675810c85611ee4bb2712e27ac
2016-09-08 13:30:04 -04:00
Wes Kocher
5cbc382303 Merge inbound to m-c a=merge 2016-09-07 17:54:24 -07:00
Carsten "Tomcat" Book
7c6c7db247 Merge mozilla-central to autoland 2016-09-07 17:26:11 +02:00
Carsten "Tomcat" Book
1c61ba654e merge mozilla-inbound to mozilla-central a=merge 2016-09-07 17:20:12 +02:00
Kartikaya Gupta
f2a9facccf Bug 1297419 - Ensure that APZ smooth scrolls don't get clobbered by the main thread as a side-effect of reflow. r=tnikkel
MozReview-Commit-ID: 9124WMy8SmD

--HG--
extra : rebase_source : 848664a73b2357bbbc49604df03288fe5986053b
2016-09-06 14:43:41 -04:00
Carsten "Tomcat" Book
656d6db419 Merge mozilla-central to mozilla-inbound 2016-09-07 17:21:27 +02:00
Michael Layzell
118a8b7507 Bug 1018486 - Part 4: Changes in layout/, r=bz
MozReview-Commit-ID: BsaKGHsoqOq
2016-09-07 10:50:40 -04:00
Jeremy Chen
ff6fbed7e1 Bug 1297306 - part7:replace StyleClear related NS_ASSERTION with MOZ_ASSERT. r=xidorn
MozReview-Commit-ID: Dzd3uOoQCI

--HG--
extra : rebase_source : 821b1b69be94796c1bf7d28142c8653498fb1930
2016-09-07 10:20:17 +08:00
Jeremy Chen
c6d0429830 Bug 1297306 - part6:replace NS_STYLE_CLEAR_* with StyleClear enum class. r=xidorn
After using enum class, a switch-case warning in CombineBreakType is caught.
This is one of such kind safty checks that we would like to gain.
Fix it by adding default case for switch-case in CombineBreakType.

MozReview-Commit-ID: BdS3LPN6qzX

--HG--
extra : rebase_source : 17f24a0d482ed6eb51b23e6942d0ac1c87375e0b
2016-09-07 10:20:17 +08:00
Jeremy Chen
59704a5d4b Bug 1297306 - part3:make BreakTypeToString() to be a member of nsLineBox. r=xidorn
With this change, we could export BreakTypeToString() to other files that desire
to print break type for debugging.

MozReview-Commit-ID: 34m1BWAmZTB

--HG--
extra : rebase_source : 2d613e7caffb36ec23b684dab538a9f5d6e34f65
2016-09-07 10:20:16 +08:00
Jeremy Chen
0cd76e6b59 Bug 1297306 - part2:make the implementation of nsLineBox::LastChild() be behind DEBUG_FRAME_DUMP flag. r=xidorn
This should've been covered in Bug 956447. The declaration is already behind
DEBUG_FRAME_DUMP in nsLineBox.h. Just move the implementation to agreee with that.

MozReview-Commit-ID: 9N0WxKkajF1

--HG--
extra : rebase_source : b79b068b8a84c66f289d40deb5b5b9347fb7c4a4
2016-09-07 10:20:16 +08:00
Jeremy Chen
9ab3247b7d Bug 1297306 - part1:remove unused NS_STYLE_CLEAR_* condition. r=xidorn
NS_STYLE_CLEAR_NONE has been defined to 0 for like forever, so this code should
never be run. Remove it.

MozReview-Commit-ID: IQ73H6QGsPX

--HG--
extra : rebase_source : 4a32e0e7cd4325b0741f542a796fd1da4de10075
2016-09-07 10:20:16 +08:00
Xidorn Quan
57e31c7faa Bug 1260031 followup - Remove unused parameter of BlockReflowInput::ComputeBlockAvailSpace. r=dbaron
MozReview-Commit-ID: 7ZZ0xw9l4YZ

--HG--
extra : rebase_source : 7b0c0138cf1af76608db4fb997c313a590ef054e
2016-08-22 21:39:54 +10:00
Xidorn Quan
4e5bd79656 Bug 1260031 - Not force break before a block when calculating intrinsic width if the current line is empty and the block cannot intersect floats. r=dbaron
MozReview-Commit-ID: 9rNUDK5t5jg

--HG--
extra : rebase_source : 2a852efe3f9801884e558f22ae7d9550fae87836
2016-08-23 09:29:45 +10:00
Daniel Holbert
5efd12c5f0 Bug 1300206: Add some missing #includes & namespaces in layout/generic, to prevent unified build bustage. r=mats
MozReview-Commit-ID: ETITppCzDjo

--HG--
extra : rebase_source : ca6f99991c9dfb1cf00c716c57b959d825560858
2016-09-02 15:01:09 -07:00
Wes Kocher
1c8f6396c3 Merge m-c to autoland, a=merge 2016-09-02 13:34:45 -07:00
cku
fecac37ed2 Bug 1295094 - Part 14. Skip any filter effect while generating glyph mask for bg-clip:text. r=jfkthame
MozReview-Commit-ID: CTzu7uhAaQM

--HG--
extra : rebase_source : cf935bf3e8cc2b7081bd016fea94b8d5062ad014
2016-09-01 14:54:11 +08:00
cku
5760f377d3 Bug 1295094 - Part 12. nsDisplayFilter creation flow. r=mstange
MozReview-Commit-ID: 3Ts8GqYyNej

--HG--
extra : rebase_source : 96a2f2c7ad69328a62a0033603fa572341b25099
2016-09-01 11:11:54 +08:00
cku
78ca020a31 Bug 1295094 - Part 10. nsDisplayMask creation flow. r=mstange
MozReview-Commit-ID: Jk9B54WtThK

--HG--
extra : rebase_source : 199b71fef0cce209b048dc362f89ecd700fda3e9
2016-08-16 13:56:11 +08:00
cku
40235c5c47 Bug 1295094 - Part 9. Implement nsDisplayMask. r=mstange
MozReview-Commit-ID: CBszApBehRE

--HG--
extra : rebase_source : 94a1aee20a569e0e061d20cae81b1112275cd1a6
2016-08-10 03:02:45 +08:00
Wes Kocher
c28fdd5c48 Merge inbound to m-c a=merge 2016-09-01 17:51:22 -07:00
Kartikaya Gupta
3a210fcece Bug 1247074 - When a compositor-based smooth scroll animation is in progress and the scrollframe is reconstructed, restore to the animation destination. r=tnikkel
MozReview-Commit-ID: 73juHWNfoQy

--HG--
extra : rebase_source : 2820533eeb48870956cd6e545bd7705c898a6cad
2016-08-29 20:28:40 -04:00