summaryrefslogtreecommitdiffstats
path: root/layout/base/nsLayoutUtils.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-02-03 08:34:51 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-02-03 08:34:51 +0100
commit23f587278abc939b5499e51863e3e63619be8a95 (patch)
tree94d51331f38585695339742e26c0b1498d32abaf /layout/base/nsLayoutUtils.h
parent9a8a050294414a7d248a4ec872744b43e1b9bfb1 (diff)
parent4874970d329943e08bcca7c61e7b7d2bc0f7c9d3 (diff)
downloadUXP-23f587278abc939b5499e51863e3e63619be8a95.tar
UXP-23f587278abc939b5499e51863e3e63619be8a95.tar.gz
UXP-23f587278abc939b5499e51863e3e63619be8a95.tar.lz
UXP-23f587278abc939b5499e51863e3e63619be8a95.tar.xz
UXP-23f587278abc939b5499e51863e3e63619be8a95.zip
Merge branch 'master' of https://github.com/MoonchildProductions/UXP
Diffstat (limited to 'layout/base/nsLayoutUtils.h')
-rw-r--r--layout/base/nsLayoutUtils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/layout/base/nsLayoutUtils.h b/layout/base/nsLayoutUtils.h
index 97fc410b0..63253fd10 100644
--- a/layout/base/nsLayoutUtils.h
+++ b/layout/base/nsLayoutUtils.h
@@ -30,6 +30,7 @@
#include "mozilla/ReflowOutput.h"
#include "ImageContainer.h"
#include "gfx2DGlue.h"
+#include "nsStyleConsts.h"
#include <limits>
#include <algorithm>
@@ -152,6 +153,7 @@ public:
typedef mozilla::CSSRect CSSRect;
typedef mozilla::ScreenMargin ScreenMargin;
typedef mozilla::LayoutDeviceIntSize LayoutDeviceIntSize;
+ typedef mozilla::StyleGeometryBox StyleGeometryBox;
/**
* Finds previously assigned ViewID for the given content element, if any.
@@ -2870,6 +2872,9 @@ public:
*/
static bool IsInvisibleBreak(nsINode* aNode, nsIFrame** aNextLineFrame = nullptr);
+ static nsRect ComputeGeometryBox(nsIFrame* aFrame,
+ StyleGeometryBox aGeometryBox);
+
private:
static uint32_t sFontSizeInflationEmPerLine;
static uint32_t sFontSizeInflationMinTwips;