Commit Graph

51680 Commits

Author SHA1 Message Date
Kartikaya Gupta
c372a788a5 Bug 1292781 - Add a test. r=tnikkel
MozReview-Commit-ID: f0UvsKMwAL
2016-08-24 09:15:42 -04:00
Kartikaya Gupta
4600f9a2b5 Bug 1292781 - Send scroll-position-restore updates to APZ, but don't allow them to clobber user scrolls. r=tnikkel
Previously we weren't sending scroll position updates with origin nsGkAtoms::restore
over to the APZ at all, on the assumption that they should never clobber an APZ
scroll offset. However, there are scenarios where that is not true.

In particular, during a frame reconstruction, a layers update may be sent to the
compositor between the time a scrollframe has RestoreState() called on it, and
the time the scrollframe has ScrollToRestoredPosition() called on it. The layers
update that happens during this interval (correctly) sends a scroll position of
(0,0), and forces the APZ to scroll to that position. This is necessary to
prevent APZ from remaining at an invalid scroll offset while the frame is still
being rebuilt.

However, once ScrollToRestoredPosition() is called and the old scroll offset is
restored, that restored scroll position needs to get sent to the APZ in order to
have it properly restore to the original scroll position. In order to do this,
the main thread must flag the metrics with a scroll offset update. Since the user
may have scrolled concurrently in the compositor from the (0,0) position, we also
need to check for that case in the APZ code and avoid restoring the scroll
position. This is equivalent to the corresponding main-thread code in
ScrollToRestoredPosition().

MozReview-Commit-ID: LxRapVSrsJ3
2016-08-24 09:15:29 -04:00
Ryan VanderMeulen
69113163cf Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
Sebastian Hengst
6a0063fcbb Backed out changeset 4e7efbee95fd (bug 1294660) 2016-08-24 13:19:30 +02:00
Olli Pettay
213b519c21 Bug 1297367 - Call iCC slice and forgetSkippable right after paint, r=mccr8
--HG--
extra : rebase_source : c0613da305fc8a2292a9dcb67a0d26a6c74fc69b
2016-08-24 02:50:50 +03:00
Jonathan Kew
16e54d15ce Bug 1297365 followup - Update font used in bidi-004 reftest for current OS X and Windows; mark test as fuzzy on Linux due to inconsistent glyphs in Hebrew font used. no_r=me 2016-08-24 11:44:29 +01:00
tlin@mozilla.com
a3c24f6f2e Bug 1297340 - Revise ParseClipPath(). r=dholbert
--HG--
extra : rebase_source : aa34d6d6b5471972432bd3d1de1dbf53fc7e479a
2016-08-23 09:27:07 +00:00
Xidorn Quan
611f544c5d Bug 1296173 part 2 - Rename the servo binding functions. r=bholley
MozReview-Commit-ID: Gxqx52v3sDQ

--HG--
extra : rebase_source : 98fdf4a1463680b629c4986df2b2b9c3b306c64e
2016-08-23 13:14:27 +10:00
Xidorn Quan
22456d1070 Bug 1296173 part 1 - Change StyleSet manipulation functions to be prefixed by Servo_StyleSet_. r=bholley
MozReview-Commit-ID: C1PPJltyodE

--HG--
extra : rebase_source : 9aef052b0b41d52ec3dbd90baeec5f4067f03a26
2016-08-23 13:10:49 +10:00
Kartikaya Gupta
a94bb8dfec Bug 1286179 - Update an existing test to catch this new instance of the bug. r=tnikkel
MozReview-Commit-ID: 90ian6KN91C

--HG--
extra : rebase_source : 6fa6b361561acc44298440c4fe11922afee64a63
2016-08-18 17:00:38 -04:00
Phil Ringnalda
96baa636b6 Merge m-c to a CLOSED TREE autoland 2016-08-23 23:00:12 -07:00
Wes Kocher
3de1ea925a Backed out changeset 54933b5b96f1 (bug 1260324) for frequent windows reftest failures a=backout CLOSED TREE 2016-08-23 13:50:14 -07:00
Ryan VanderMeulen
82663d8710 Merge inbound to m-c. a=merge 2016-08-23 10:05:18 -04:00
Timothy Nikkel
9e89a17b91 Bug 1260324. Don't draw garbage to the screen if an image doesn't happen to be decoded. r=seth
Layout has been using imgIContainer::IsOpaque to determine if the image will draw opaquely to all pixels it covers, and doing culling based on this.

However imgIContainer::IsOpaque doesn't guarantee anything. It only describes if the image, when in a decoded state, has all opaque pixels. So if the image doesn't have fully decoded frames around (because they got discarded) it may not draw opaquely to all of its pixels.

So we create a new function that first checks if there is a fully decoded frame.
2016-08-22 21:15:38 -05:00
Xidorn Quan
0adbbea38f Bug 1297049 - Include tests with query string and hash string when specifying test path. r=dbaron
MozReview-Commit-ID: 27x0vTs1aDa

--HG--
extra : rebase_source : a426489c01260df302f790b0a28b262cbbe723fc
extra : source : 61c7ab9bea3f154aef14f425875100b0ac824674
2016-08-23 10:32:43 +10:00
Xidorn Quan
b1014aeb0c Bug 1296186 part 2 - Make ServoDeclarationBlock refcounted. r=heycam
MozReview-Commit-ID: 2X0JX8HA4ej

--HG--
extra : rebase_source : e5e888be0fb98f995a7ac17bd0985177206914a2
extra : source : 53ce9619813b91b26a5bc51b7417c55e8b9cb505
2016-08-23 10:32:20 +10:00
Xidorn Quan
0fab79f248 Bug 1296186 part 1 - Make borrowed type just alias of corresponding pointer type. r=bholley
Compilers would complain about using user-defined type as return type
of extern "C" functions. A struct is considered a user-defined type if
there is any non-trivial constructor.

Having a type without non-trivial constructor for borrowed type would
be very inconvenient. Actually the currently borrowed type doesn't seem
to provide any additional safety / benefit over a plain pointer.

MozReview-Commit-ID: ncxmCEWCkv

--HG--
extra : rebase_source : 43a95bbcb05759f27837629daec6ce915a68b062
extra : source : 2a544c24bfb6a3412e59acbee89a5a393c31d5b6
2016-08-23 10:32:20 +10:00
Xidorn Quan
928683d762 Bug 1291707 part 4 - Not recalc quotes and counters in EndUpdate. r=bz
It will be called in the next flush, so no need to do it eagerly.

MozReview-Commit-ID: 1B8pzn0dqBO

--HG--
extra : rebase_source : 79a4203d13a2b9d48cd9c9d6fa5c5e08974d4765
extra : source : 162b17483adb18d3d05d866853fb8f841dee846d
2016-08-23 10:31:26 +10:00
Xidorn Quan
9d87478fb9 Bug 1291707 part 3 - Use hashtable to track nsGenConNodes related to a frame. r=bz
MozReview-Commit-ID: IgT90GN2R4Z

--HG--
extra : rebase_source : a17776e7a8723f9487100862b630857a85eded98
extra : source : 31269f41019ac267264cafb5f97dd602ba5ec212
2016-08-23 10:31:26 +10:00
Xidorn Quan
a0c0bf51d9 Bug 1291707 part 1 - Change nsGenConList::Remove to Destroy and make it private. r=bz
MozReview-Commit-ID: FxXizoXjRoh

--HG--
extra : rebase_source : 2ee88b7358d9bc92d563546582485ff6e499a667
extra : source : ad53afc0ba0547d0fc992b5dce575e7b65957fea
2016-08-23 10:31:26 +10:00
Emilio Cobos Álvarez
c74f7fc2ae Bug 1292618: followup: Use IsGeneratedContentContainerForBefore/After in ServoStyleSet. r=me
MozReview-Commit-ID: AU8YKQBvXX7
2016-08-22 10:42:18 -07:00
Henri Sivonen
a3b8292670 Bug 1191841 - Perform label resolution in scriptable charset setters of nsIContentViewer. r=emk.
MozReview-Commit-ID: facCC1K7Dk
2016-08-22 20:18:24 +03:00
Manish Goregaokar
a66a27b114 Bug 1246762 - Add reftests for |clip-path: inset()|s with rounded corners ; r=dholbert
MozReview-Commit-ID: G6LhuffpQfe

--HG--
extra : rebase_source : 85961d29876221de3b7456b9b1760e8350196b34
2016-08-18 19:59:42 +05:30
Manish Goregaokar
be6e6006ea Bug 1246762 - Add reftests for non-rounded |clip-path: inset()|s ; r=dholbert
MozReview-Commit-ID: HSRZq2NLPcW

--HG--
extra : rebase_source : 93c497ddc35942d6298b87c5fcb813e061a328bc
2016-08-18 19:59:20 +05:30
Manish Goregaokar
b83e274dee Bug 1246762 - Add support for inset() in clip-path ; r=dholbert
MozReview-Commit-ID: 9AhkTu9gVVm

--HG--
extra : rebase_source : d9ee4f4b4f3654203d2cd1c0f915eea04374d5d0
2016-08-18 19:59:01 +05:30
Ryan VanderMeulen
833833b8c5 Merge inbound to m-c. a=merge 2016-08-22 09:40:41 -04:00
Ting-Yu Lin
2a80705ce0 Bug 1296990 - Make AppearanceString() return nsAutoString directly. r=mtseng
MozReview-Commit-ID: IQ3KrFnCswx

--HG--
extra : rebase_source : ed646cc89797c104708c55d50a058ddd6c76b5bd
2016-08-21 21:41:32 +08:00
Jeremy Chen
2cad5e8979 Bug 1296561 - calculate initial-letter's size according to specification. r=jfkthame
MozReview-Commit-ID: AtuY2UHCGaR

--HG--
extra : rebase_source : 2eecaf954695bb96aae1f1ce52a7b3df49e89618
2016-08-23 09:40:14 +08:00
Sylvestre Ledru
ad41a76c2c Bug 1296265 - Remove (unused) initial assignment to nsRuleNode.cpp variable "scriptLevelAdjustedParentSize". r=dholbert
MozReview-Commit-ID: 6YaYqkRGNlV

--HG--
extra : rebase_source : e120b896068574c15fb88b9238b8cb961432b146
2016-08-18 14:19:26 +02:00
Wes Kocher
bb22cc4067 Merge inbound to central, a=merge 2016-08-19 18:16:20 -07:00
Xidorn Quan
6cde2b431b Bug 1296594 - Move Servo binding functions to a list file. r=bholley
MozReview-Commit-ID: GvF8E7LXM1g

--HG--
extra : rebase_source : d2fbe617368bf8d216ca0d6ac6bc394dc4a26b24
2016-08-19 21:44:43 +10:00
Jesse Ruderman
3615ba53e6 Bug 1288608 - Crashtest. 2016-08-19 19:56:20 +02:00
Mats Palmgren
1b3197af3e Bug 1288608 - Ensure the normal position is stored on a property before setting the relative position. r=jfkthame 2016-08-19 19:56:20 +02:00
Mats Palmgren
e3a3b7c245 Bug 1293985 part 1 - Hold a strong ref on aDocument. r=tn 2016-08-19 19:56:20 +02:00
Ryan VanderMeulen
ce55e7b71a Merge m-c to inbound. a=merge 2016-08-19 09:59:49 -04:00
Ryan VanderMeulen
01c4e8cc1b Merge inbound to m-c. a=merge 2016-08-19 09:52:53 -04:00
Sebastian Hengst
775bb69951 Merge mozilla-central to autoland. r=merge a=merge 2016-08-19 12:38:47 +02:00
Sebastian Hengst
fdc5082122 Backed out changeset d1d614497fbf (bug 1046166) on request of developer for crashes. r=backout a=backout
MozReview-Commit-ID: IHG3TraKy6n
2016-08-19 12:35:34 +02:00
Sebastian Hengst
1dd98c7608 Merge mozilla-central to mozilla-inbound. r=merge a=merge 2016-08-19 12:39:57 +02:00
Jonathan Kew
0cb66c8d3a Bug 1280887 - patch 3 - Get rid of the mTextRunsToDelete array now that the frame's textruns are refcounted and will know when to die by themselves. r=mats 2016-08-19 13:14:37 +01:00
Jonathan Kew
95a82f84cc Bug 1280887 - patch 2 - Make gfxTextRun refcounted, replace usage of UniquePtr<> with RefPtr<> for textruns, and make nsTextFrame hold a strong reference to its run(s). r=mats 2016-08-19 13:14:22 +01:00
Cameron McCormack
d6d90e9bb0 Bug 1295852 - Part 5: Check for generated content containers more precisely in nsTransitionManager assertion. r=boris
MozReview-Commit-ID: 3GNdT8ubKDb

--HG--
extra : rebase_source : b2507e5a084a2a351e78522f64231b63b22ccdf4
2016-08-19 11:46:46 +08:00
Cameron McCormack
792c4f4eb0 Bug 1295852 - Part 4: Check for generated content containers more precisely when reflowing grid containers. r=me
I'm not convinced that we can actually get regular content
<_moz_generated_content_before> elements in here, since it's only if
CompareTreePosition returned 0 that we look at the element name,
but might be best to make this test stronger in any case.

MozReview-Commit-ID: 8CgxcU9AbDA

--HG--
extra : rebase_source : 4a47ed62895d83f720ec7ccfde253e2c1945b34f
2016-08-19 11:46:43 +08:00
cku
177446e0ae Bug 1294171 - Part 2. Create a reftest for data url mask. r=mstange
MozReview-Commit-ID: IcXmbVd9nUA

--HG--
extra : rebase_source : 9c5b71b3bc7d6a3548083747fb2d94da00604dd5
2016-08-18 12:14:19 +08:00
cku
3cd159aa2b Bug 1294171 - Part 1. Treat unresolvable mask as no mask before support image mask. r=mstange
MozReview-Commit-ID: 9f2k7NtpYuR

--HG--
extra : rebase_source : b39ef5f82382fd9d7f237d1dabd6d834b8bbefa0
2016-08-18 11:24:28 +08:00
Phil Ringnalda
b4f23026ee Backed out 5 changesets (bug 1292618) for !mImageTracked assertion failures
CLOSED TREE

Backed out changeset 1d767147e160 (bug 1292618)
Backed out changeset e6034e58efe4 (bug 1292618)
Backed out changeset 928dd363efa0 (bug 1292618)
Backed out changeset 8e274c66ae7f (bug 1292618)
Backed out changeset 6c347701d343 (bug 1292618)
2016-08-19 00:23:42 -07:00
Nicholas Nethercote
67af4817e9 Bug 1293596 (part 2) - Rework nsIWidget bounds getters. r=mstange.
This patch makes GetBounds(), GetScreenBounds() and GetClientBounds() more
obviously infallible, like existing functions such as GetNaturalBounds() and
GetClientSize(). This results in clearer behaviour in nsCocoaWindow.mm if
Objective C exceptions occur. Along the way, the patch removes some useless
failure checks for these functions.

The patch also removes the NS_IMETHOD from GetRestoredBounds and makes that
function MOZ_MUST_USE.
2016-08-19 09:03:04 +10:00
Wes Kocher
66098b3d43 Merge m-c to autoland, a=merge 2016-08-17 17:25:57 -07:00
Wes Kocher
07f8858bf6 Merge inbound to central, a=merge 2016-08-17 16:38:41 -07:00
Wes Kocher
b7ea1393f2 Backed out 3 changesets (bug 1286476) for frequent windows wpt failures in phases-and-states.html CLOSED TREE
Backed out changeset 53bbfa02d45d (bug 1286476)
Backed out changeset 3947ab570883 (bug 1286476)
Backed out changeset ffd8c37eb695 (bug 1286476)
2016-08-17 10:41:46 -07:00