MFH: r467273

www/waterfox: apply some FF60 fixes

Approved by:	ports-secteam blanket
This commit is contained in:
Jan Beich 2018-04-13 22:09:26 +00:00
parent 06914a57da
commit 562f9180c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q2/; revision=467275
3 changed files with 81 additions and 1 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= waterfox
DISTVERSION= 56.1.0
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= www ipv6
MAINTAINER= jbeich@FreeBSD.org

View File

@ -0,0 +1,52 @@
commit d09c62cb1ed0
Author: Lee Salzman <lsalzman@mozilla.com>
Date: Tue Apr 10 12:43:59 2018 -0400
Bug 1449352 - always composite 24 depth WindowSurfaceX11 as BGRX. r=jrmuizel a=jcristau
MozReview-Commit-ID: 3xeE3EEttR6
--HG--
extra : source : c6860625a6fd2bcb64f23e9a621521741ae7503e
---
widget/gtk/WindowSurfaceX11.cpp | 8 +-------
widget/gtk/WindowSurfaceX11Image.cpp | 4 ++++
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git widget/gtk/WindowSurfaceX11.cpp widget/gtk/WindowSurfaceX11.cpp
index 32e3c43ef9ef..a5616f77a6ed 100644
--- widget/gtk/WindowSurfaceX11.cpp
+++ widget/gtk/WindowSurfaceX11.cpp
@@ -36,16 +36,10 @@ WindowSurfaceX11::GetVisualFormat(const Visual* aVisual, unsigned int aDepth)
}
break;
case 24:
- // Only support the BGRX layout, and report it as BGRA to the compositor.
- // The alpha channel will be discarded when we put the image.
- // Cairo/pixman lacks some fast paths for compositing BGRX onto BGRA, so
- // just report it as BGRX directly in that case.
if (aVisual->red_mask == 0xff0000 &&
aVisual->green_mask == 0xff00 &&
aVisual->blue_mask == 0xff) {
- gfx::BackendType backend = gfxPlatform::GetPlatform()->GetDefaultContentBackend();
- return backend == gfx::BackendType::CAIRO ? gfx::SurfaceFormat::B8G8R8X8
- : gfx::SurfaceFormat::B8G8R8A8;
+ return gfx::SurfaceFormat::B8G8R8X8;
}
break;
case 16:
diff --git widget/gtk/WindowSurfaceX11Image.cpp widget/gtk/WindowSurfaceX11Image.cpp
index 59db17b642f2..f89d0d1a13d5 100644
--- widget/gtk/WindowSurfaceX11Image.cpp
+++ widget/gtk/WindowSurfaceX11Image.cpp
@@ -58,6 +58,10 @@ WindowSurfaceX11Image::Lock(const LayoutDeviceIntRegion& aRegion)
gfxImageFormat format = mImageSurface->Format();
// Cairo prefers compositing to BGRX instead of BGRA where possible.
+ // Cairo/pixman lacks some fast paths for compositing BGRX onto BGRA, so
+ // just report it as BGRX directly in that case.
+ // Otherwise, for Skia, report it as BGRA to the compositor. The alpha
+ // channel will be discarded when we put the image.
if (format == gfx::SurfaceFormat::X8R8G8B8_UINT32) {
gfx::BackendType backend = gfxVars::ContentBackend();
if (!gfx::Factory::DoesBackendSupportDataDrawtarget(backend)) {

View File

@ -0,0 +1,28 @@
commit 5dbb51979bb7
Author: alexander :surkov <surkov.alexander@gmail.com>
Date: Thu Apr 5 10:24:00 2018 +0300
Bug 1451673 - "Crash in mozilla::a11y::HTMLTableAccessible::IsProbablyLayoutTable" r=MarcoZ a=jcristau
--HG--
extra : source : 5a6db1121fcede3d0844ec1be195ab7858cd1e19
---
accessible/html/HTMLTableAccessible.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git accessible/html/HTMLTableAccessible.cpp accessible/html/HTMLTableAccessible.cpp
index 18c7c71a0ae2..1647f3251ec8 100644
--- accessible/html/HTMLTableAccessible.cpp
+++ accessible/html/HTMLTableAccessible.cpp
@@ -1063,6 +1063,11 @@ HTMLTableAccessible::IsProbablyLayoutTable()
if (child->Role() == roles::ROW) {
prevRowColor = rowColor;
nsIFrame* rowFrame = child->GetFrame();
+ MOZ_ASSERT(rowFrame, "Table hierarchy got screwed up");
+ if (!rowFrame) {
+ RETURN_LAYOUT_ANSWER(false, "Unexpected table hierarchy");
+ }
+
rowColor = rowFrame->StyleBackground()->BackgroundColor(rowFrame);
if (childIdx > 0 && prevRowColor != rowColor)