mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-23 23:11:35 +00:00
17 lines
894 B
C++
17 lines
894 B
C++
diff --git a/layout/generic/nsIFrame.cpp b/layout/generic/nsIFrame.cpp
|
|
index a7b60e40e6947754374dcda2fc69cdb329c337ac..c7e025109c4c43865205cbd445d9d20305974974 100644
|
|
--- a/layout/generic/nsIFrame.cpp
|
|
+++ b/layout/generic/nsIFrame.cpp
|
|
@@ -11899,6 +11899,11 @@ gfx::Matrix nsIFrame::ComputeWidgetTransform() const {
|
|
gfx::Matrix4x4 matrix = nsStyleTransformMatrix::ReadTransforms(
|
|
uiReset->mMozWindowTransform, refBox, float(appUnitsPerDevPixel));
|
|
|
|
+ const StyleTransformOrigin& origin = uiReset->mWindowTransformOrigin;
|
|
+ Point transformOrigin = nsStyleTransformMatrix::Convert2DPosition(
|
|
+ origin.horizontal, origin.vertical, refBox, appUnitsPerDevPixel);
|
|
+ matrix.ChangeBasis(Point3D(transformOrigin.x, transformOrigin.y, 0));
|
|
+
|
|
gfx::Matrix result2d;
|
|
if (!matrix.CanDraw2D(&result2d)) {
|
|
// FIXME: It would be preferable to reject non-2D transforms at parse time.
|