diff options
author | Moonchild <moonchild@palemoon.org> | 2020-08-03 11:04:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 11:04:41 +0200 |
commit | 2e1c5dafc6d0795b7b73223e734bb5771948688b (patch) | |
tree | e35cf37eb6d2466363ea6887d08536eff8ee2e4a /layout/generic/nsIFrame.h | |
parent | 02bd56c442d777daa2b94cf3962430e1d81b6811 (diff) | |
parent | a90b8d98e859ae71c74f2a8cb78b24899d879185 (diff) | |
download | UXP-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.h | 14 |
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. |