summaryrefslogtreecommitdiff
path: root/gfx/thebes/gfxTextRun.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-10-03 12:45:27 +0000
committerMoonchild <moonchild@palemoon.org>2020-10-03 12:45:27 +0000
commit8e18743ab871bed1e1858ed2714a81f017433a2d (patch)
treea87331b71a4b5abd85ea07f53d4043c1f2b0cb7a /gfx/thebes/gfxTextRun.h
parent15acac52b1f92410f9c0e46737dd5e8413eb6c46 (diff)
downloaduxp-8e18743ab871bed1e1858ed2714a81f017433a2d.tar.gz
Issue #1665 - Take overflow-wrap into account when calculating min-content intrinsic size.
Diffstat (limited to 'gfx/thebes/gfxTextRun.h')
-rw-r--r--gfx/thebes/gfxTextRun.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gfx/thebes/gfxTextRun.h b/gfx/thebes/gfxTextRun.h
index beeaad04b1..7217eca747 100644
--- a/gfx/thebes/gfxTextRun.h
+++ b/gfx/thebes/gfxTextRun.h
@@ -298,6 +298,12 @@ public:
}
/**
+ * Computes the minimum advance width for a substring assuming line
+ * breaking is allowed everywhere.
+ */
+ gfxFloat GetMinAdvanceWidth(Range aRange);
+
+ /**
* Clear all stored line breaks for the given range (both before and after),
* and then set the line-break state before aRange.start to aBreakBefore and
* after the last cluster to aBreakAfter.