summaryrefslogtreecommitdiffstats
path: root/layout/generic/nsIFrame.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-08-03 11:04:41 +0200
committerGitHub <noreply@github.com>2020-08-03 11:04:41 +0200
commit2e1c5dafc6d0795b7b73223e734bb5771948688b (patch)
treee35cf37eb6d2466363ea6887d08536eff8ee2e4a /layout/generic/nsIFrame.h
parent02bd56c442d777daa2b94cf3962430e1d81b6811 (diff)
parenta90b8d98e859ae71c74f2a8cb78b24899d879185 (diff)
downloadUXP-2e1c5dafc6d0795b7b73223e734bb5771948688b.tar
UXP-2e1c5dafc6d0795b7b73223e734bb5771948688b.tar.gz
UXP-2e1c5dafc6d0795b7b73223e734bb5771948688b.tar.lz
UXP-2e1c5dafc6d0795b7b73223e734bb5771948688b.tar.xz
UXP-2e1c5dafc6d0795b7b73223e734bb5771948688b.zip
Merge pull request #1622 from RealityRipple/master
Convert Intrinsic Ratio from nsSize to Float
Diffstat (limited to 'layout/generic/nsIFrame.h')
-rw-r--r--layout/generic/nsIFrame.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/layout/generic/nsIFrame.h b/layout/generic/nsIFrame.h
index dfe83bcbe..d54ddc2b5 100644
--- a/layout/generic/nsIFrame.h
+++ b/layout/generic/nsIFrame.h
@@ -27,6 +27,7 @@
#include "FrameProperties.h"
#include "LayoutConstants.h"
#include "mozilla/layout/FrameChildList.h"
+#include "mozilla/AspectRatio.h"
#include "mozilla/Maybe.h"
#include "mozilla/WritingModes.h"
#include "nsDirection.h"
@@ -2063,15 +2064,14 @@ public:
virtual mozilla::IntrinsicSize GetIntrinsicSize() = 0;
/**
- * Get the intrinsic ratio of this element, or nsSize(0,0) if it has
- * no intrinsic ratio. The intrinsic ratio is the ratio of the
- * height/width of a box with an intrinsic size or the intrinsic
- * aspect ratio of a scalable vector image without an intrinsic size.
+ * Get the intrinsic ratio of this element, or a default-constructed
+ * AspectRatio if it has no intrinsic ratio.
*
- * Either one of the sides may be zero, indicating a zero or infinite
- * ratio.
+ * The intrinsic ratio is the ratio of the width/height of a box with an
+ * intrinsic size or the intrinsic aspect ratio of a scalable vector image
+ * without an intrinsic size.
*/
- virtual nsSize GetIntrinsicRatio() = 0;
+ virtual mozilla::AspectRatio GetIntrinsicRatio() = 0;
/**
* Bit-flags to pass to ComputeSize in |aFlags| parameter.