Commit Graph

2307 Commits

Author SHA1 Message Date
Timothy Nikkel
4674aaa593 Bug 1364295. Simplify some code now that we don't create displayports during display list building. r=mstange 2017-10-02 16:00:16 -05:00
Timothy Nikkel
adcc3e778d Bug 1364295. Walk the frame tree looking for a scrollframe to add a displayport to, or one that already has a displayport before displaylist building. r=mstange
And stop creating displayports during display list building.

One thing we can investigate in the future is whether we should use the value of mHaveScrollableDisplayPort stored on the display list builder retained between paints. If it's true then we could potentially skip this pass. It would mean that if there are large changes to the page we wouldn't set a displayport. And we'd need to make sure the value is cleared when we load a new page.
2017-05-19 17:04:19 -05:00
David Major
f26d864ed9 Bug 1403220 followup: Limit the PGO workaround to just where it's needed.
No rush merging this one around. Feel free to back this out if the crashes come back.
2017-09-28 13:27:01 -04:00
Sebastian Hengst
f5f5013cf9 Backed out changeset 45a57448087d (bug 1364295) for failing mochitest gfx/layers/apz/test/mochitest/test_bug982141.html on Android 4.3 API 16. r=backout 2017-09-28 10:06:14 +02:00
Sebastian Hengst
ade505e775 Backed out changeset e7be72224105 (bug 1364295) 2017-09-28 10:05:22 +02:00
Timothy Nikkel
e47e609bc6 Bug 1364295. Simplify some code now that we don't create displayports during display list building. r=mstange 2017-09-28 01:25:39 -05:00
Timothy Nikkel
d4f3d72a26 Bug 1364295. Walk the frame tree looking for a scrollframe to add a displayport to, or one that already has a displayport before displaylist building. r=mstange
And stop creating displayports during display list building.

One thing we can investigate in the future is whether we should use the value of mHaveScrollableDisplayPort stored on the display list builder retained between paints. If it's true then we could potentially skip this pass. It would mean that if there are large changes to the page we wouldn't set a displayport. And we'd need to make sure the value is cleared when we load a new page.
2017-05-19 17:04:19 -05:00
Brad Werth
48fa7765f8 Bug 1302470 Part 3: Fix the case where HTML buttons need to generate display item children when doing opaque hit tests. r=mattwoodrow
MozReview-Commit-ID: HwDYsnMJkM8
2016-11-30 14:35:37 -08:00
Ryan VanderMeulen
fe955b203d Merge m-c to inbound. a=merge 2017-09-27 13:24:21 -04:00
David Major
bb343e20a7 Bug 1403220 - De-optimize some font functions to work around an MSVC PGO crash. r+a=RyanVM 2017-09-27 10:17:00 -04:00
Mats Palmgren
feaa9c8873 Bug 1398520 part 4 - Rename nsFormControlFrame to nsCheckboxRadioFrame. r=dholbert
MozReview-Commit-ID: 9nwikVD1cd9
2017-09-27 14:12:00 +02:00
Matt Woodrow
0f1d10a5a9 Bug 1402199 - Move code for adding extra background items into a helper. r=mstange 2017-09-26 15:57:56 +13:00
Matt Woodrow
b14fd4ecb2 Bug 1402197 - Add an option for GetTransformToAncestor to stop at stacking contexts and displayport. r=mstange 2017-09-26 15:57:55 +13:00
Alexis Beingessner
285de9f30d Bug 1400382 - Implement CreateWebRenderCommands for nsDisplayTextOverflow. r=mstange
MozReview-Commit-ID: EQtFvLQCT2U
2017-09-21 15:15:58 -04:00
Louis Chang
990027c3f3 Bug 1290782 Part 2 - Remove redundant destCtx and IsEmpty check of snappedDestSize since it should always have a value. r=cjku
MozReview-Commit-ID: 25IlXeqURVa
2017-09-20 10:05:49 +08:00
Louis Chang
627b4a2ef8 Bug 1290782 Part 1 - When drawing a border-image using an SVG image, we should not take into account any transformation of currentMatrix when computing svg viewport size. r=cjku,dholbert
MozReview-Commit-ID: 8rkwQGKJOvo
2017-09-20 10:05:42 +08:00
Kevin Hsieh
78fb59fc56 Bug 1395777 (part 2) - Make orthogonal ruby annotations inter-character. r=xidorn
MozReview-Commit-ID: JjpEnQI9Dmv
2017-08-31 17:41:13 -07:00
Ting-Yu Lin
5262adc990 Bug 1399767 - Remove preference "layout.css.clip-path-shapes.enabled". r=heycam
The variables (basicShapeSVGBoxValues, etc.) in property_database.js are
moved to the beginning of the file so that they're defined before usage.

MozReview-Commit-ID: 7L3obIY1alP
2017-09-15 15:00:30 +08:00
Matt Woodrow
c1428d377d Bug 1397054 - Reset nsDisplayListBuilder state each frame so that we can use it multiple times. r=mstange
MozReview-Commit-ID: Gb7AnKoZaPu
2017-09-12 14:10:39 -04:00
Kartikaya Gupta
6acddc7f74 Bug 1395670 - In webrender layers-free mode, don't add a root scroll metadata if we already have it elsewhere in the tree. r=mstange
MozReview-Commit-ID: B9LY4v9t11Y
2017-08-31 17:07:41 -04:00
Phil Ringnalda
cf0ba65c47 Backed out 6 changesets (bug 1302470) for mochitest-chrome failures
CLOSED TREE

Backed out changeset 3aab8b1494ef (bug 1302470)
Backed out changeset fdd40abac611 (bug 1302470)
Backed out changeset a67bc2f1b624 (bug 1302470)
Backed out changeset 160522290018 (bug 1302470)
Backed out changeset 6b948c533944 (bug 1302470)
Backed out changeset 399011313b3c (bug 1302470)

MozReview-Commit-ID: 2B3uMAkzNGv
2017-08-31 20:04:24 -07:00
Brad Werth
f4ed808fd8 Bug 1302470 Part 3: Fix the case where HTML buttons need to generate display item children when doing opaque hit tests. r=mattwoodrow
MozReview-Commit-ID: HwDYsnMJkM8
2016-11-30 14:35:37 -08:00
Kartikaya Gupta
a31a2e4c39 Bug 1394011 - Place the root ScrollMetadata on the tree we send to APZ in layers-free webrender mode. r=mstange
MozReview-Commit-ID: i6BDSDgKiu
2017-08-28 17:17:37 -04:00
Kartikaya Gupta
cd9f1d9d79 Bug 1394011 - Extract helper function to compute the root ScrollMetadata. r=mstange
MozReview-Commit-ID: G8G7hI0aBWY
2017-08-28 17:17:34 -04:00
J. Ryan Stinnett
4d25c11fbf Bug 1393233 - Add env var to disable Stylo. r=bholley
MozReview-Commit-ID: BjNWGh3LQIj
2017-08-23 17:58:32 -05:00
Kevin Chen
0403a71b83 Bug 1362321 - Do not crash in gfxPlatform:Init if there is a TDR happening; r=bas
MozReview-Commit-ID: 9gJCErHosg1
2017-08-09 18:00:01 +08:00
Kartikaya Gupta
2095dc7653 Bug 1323320 - Skip displayport size assertions when getting the displayport for visibility testing. r=tnikkel
MozReview-Commit-ID: 1GbXxlqdOzq
2017-08-14 14:29:20 -04:00
Matt Woodrow
8370362323 Bug 1388162 - Add a Destroy function to nsDisplayItem to use instead of manually invoking the destructor, this will allow us to recycle them in the future. r=mstange
* * *
[mq]: fix

MozReview-Commit-ID: LUXZAIL73BJ
2017-08-07 16:07:43 +12:00
Matt Woodrow
e62cf6dd69 Bug 1388161 - Store the dirty rect on the display list builder rather than passing it as a parameter to BuildDisplayList. r=mstange 2017-08-07 14:23:35 +12:00
Sebastian Hengst
2e92d940f4 Backed out changeset 8f2dd8f13b53 (bug 1388161) for failing chrome's test_animation_performance_warning.html | preserve-3d transform. r=backout 2017-08-10 14:40:21 +02:00
Sebastian Hengst
1e52933103 Backed out changeset e9985564e081 (bug 1388162) for failing chrome's test_animation_performance_warning.html | preserve-3d transform. r=backout 2017-08-10 14:40:20 +02:00
Matt Woodrow
b0bdae09c7 Bug 1388162 - Add a Destroy function to nsDisplayItem to use instead of manually invoking the destructor, this will allow us to recycle them in the future. r=mstange 2017-08-07 16:07:43 +12:00
Matt Woodrow
61b7fddb66 Bug 1388161 - Store the dirty rect on the display list builder rather than passing it as a parameter to BuildDisplayList. r=mstange 2017-08-07 14:23:35 +12:00
Wes Kocher
8382b157bc Merge inbound to central, a=merge
MozReview-Commit-ID: DlSLhaepjeU
2017-08-03 18:06:53 -07:00
Ethan Lin
b35a73b97e Bug 1386477 - Add nullptr check for layerManager->GetRoot() to prevent crash when dumping display list data. r=kats
MozReview-Commit-ID: 6o0PwKvs0HQ
2017-08-03 15:41:01 +08:00
Kartikaya Gupta
b0f6c7e722 Bug 1383386 - Update null checks to check the correct IPC actor. r=billm
MozReview-Commit-ID: Dr3V9vgzdZC
2017-08-02 20:10:35 -04:00
Sebastian Hengst
15dae2ef73 Backed out changeset ecbeb9354c24 (bug 1383386) for mass-asserting at gfx/layers/ipc/CompositorBridgeChild.cpp:264. r=backout on a CLOSED TREE 2017-08-02 23:08:43 +02:00
Kartikaya Gupta
df714a5cf3 Bug 1383386 - Update null checks to check the correct IPC actor. r=billm
MozReview-Commit-ID: AZlFYkuzFVb
2017-08-02 09:53:00 -04:00
Kartikaya Gupta
8aa79d54f2 Bug 1384616 - Save APZ-relevant data from fixed-pos items in the WR scroll data for layers-free transactions. r=jrmuizel
MozReview-Commit-ID: HAFnrCVM9pZ
2017-07-31 15:27:29 -04:00
Manish Goregaokar
35d4e13ff5 Bug 1383492: stylo: Change nscoord_MAX to 1<<30 - 1 ; r=emilio,dbaron
nscoord_MAX is (1<<30) so that we can check for overflow *after* adding
two nscoords. However, (nscoord_MAX + nscoord_MAX) will still overflow.
Subtracting one makes this no longer possible.

MozReview-Commit-ID: BtbQRMp5kWm
2017-07-27 18:57:32 -07:00
Wes Kocher
9a60d18b76 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 418vKEKrk3n
2017-07-24 18:10:56 -07:00
Mason Chang
dc86d1dd59 Bug 1365876. Blur text shadows on the CPU. r=lsalzman 2017-07-24 13:48:14 -07:00
Kartikaya Gupta
4ff424cc8f Bug 1382682 - Move ViewIDForASR into nsLayoutUtils for reuse. r=mstange
MozReview-Commit-ID: IcYqDO1D2SB
2017-07-20 12:33:09 -04:00
Kris Maglione
81578b8f6b Bug 1379508: Part 1 - Apply the correct client offsets to remote frameloaders in popup widgets. r=kats
On-screen coordinates for points in remote frameloads are calculated relative
to the screen origin of the top-level window, while event coordinates are
calculated relative to the nearest widget. Since popups have their own widgets
separate from the top-level window, their native client offsets have no
particular relation to the origin of the top-level window, and we need to
manually calculate them relative to the origin of the top-level widget
instead.

MozReview-Commit-ID: EDyEyu37XuY
2017-07-13 15:31:55 -07:00
Louis Chang
3e447440a4 Bug 1319407 - Apply clip-path to each frame when box-decoration-break is clone. r=cjku,heycam
MozReview-Commit-ID: E7IR49MzkWm
2017-07-24 11:14:47 +08:00
Andrew Osmond
dcd98428a8 Bug 1183378 - Part 1. Add nsLayoutUtils::ComputeImageContainerDrawingParameters which generates the parameters needed for GetImageContainerAtSize. r=tnikkel 2017-11-23 06:55:06 -05:00
Masayuki Nakano
f4a5a8a21e Bug 1377989 - part2: Rename nsRange::GetEndParent() to nsRange::GetEndContainer() r=smaug
MozReview-Commit-ID: K4qPjtZ62yO
2017-07-11 21:11:37 +09:00
Masayuki Nakano
7015ac1e62 Bug 1377989 - part1: Rename nsRange::GetStartParent() to nsRange::GetStartContainer() r=smaug
Web standards use "Container" instead of "Parent".  So, nsRange shouldn't use "Parent" for its members and methods.

MozReview-Commit-ID: Ho6N0diuWtE
2017-07-11 20:53:04 +09:00
Kartikaya Gupta
bcd255399d Bug 1378355 - Update GetMaxDisplayPortSize to respect the gfx.max-texture-size pref. r=tnikkel
MozReview-Commit-ID: D6wF4QrnGSw
2017-07-10 10:15:25 -04:00
Kartikaya Gupta
c099b9bc14 Bug 1378355 - Move the safe-maximum displayport fallback code into the GetMaxDisplayPortSize function. r=tnikkel
MozReview-Commit-ID: LdHQuuunl3E
2017-07-10 10:15:24 -04:00