2007-06-12 10:10:23 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-02-23 19:09:14 +03:00
|
|
|
|
|
|
|
#ifndef nsMathMLFrame_h___
|
|
|
|
#define nsMathMLFrame_h___
|
|
|
|
|
2012-09-14 20:10:08 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2011-04-08 05:05:49 +04:00
|
|
|
#include "nsFontMetrics.h"
|
2001-02-23 19:09:14 +03:00
|
|
|
#include "nsMathMLOperators.h"
|
|
|
|
#include "nsIMathMLFrame.h"
|
2011-08-14 21:08:04 +04:00
|
|
|
#include "nsLayoutUtils.h"
|
2013-10-01 01:26:04 +04:00
|
|
|
#include "nsBoundingMetrics.h"
|
|
|
|
#include "nsIFrame.h"
|
2002-01-09 21:51:30 +03:00
|
|
|
|
|
|
|
class nsMathMLChar;
|
2013-10-01 01:26:04 +04:00
|
|
|
class nsCSSValue;
|
|
|
|
class nsDisplayListSet;
|
2001-02-23 19:09:14 +03:00
|
|
|
|
|
|
|
// Concrete base class with default methods that derived MathML frames can override
|
|
|
|
class nsMathMLFrame : public nsIMathMLFrame {
|
|
|
|
public:
|
|
|
|
// nsIMathMLFrame ---
|
|
|
|
|
2011-09-29 10:19:26 +04:00
|
|
|
virtual bool
|
2015-03-21 19:28:04 +03:00
|
|
|
IsSpaceLike() override {
|
2011-03-25 06:38:59 +03:00
|
|
|
return NS_MATHML_IS_SPACE_LIKE(mPresentationData.flags);
|
|
|
|
}
|
|
|
|
|
2001-02-23 19:09:14 +03:00
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
GetBoundingMetrics(nsBoundingMetrics& aBoundingMetrics) override {
|
2001-02-23 19:09:14 +03:00
|
|
|
aBoundingMetrics = mBoundingMetrics;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
SetBoundingMetrics(const nsBoundingMetrics& aBoundingMetrics) override {
|
2001-02-23 19:09:14 +03:00
|
|
|
mBoundingMetrics = aBoundingMetrics;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
SetReference(const nsPoint& aReference) override {
|
2001-02-23 19:09:14 +03:00
|
|
|
mReference = aReference;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual eMathMLFrameType GetMathMLFrameType() override;
|
2006-08-15 08:49:43 +04:00
|
|
|
|
2001-02-23 19:09:14 +03:00
|
|
|
NS_IMETHOD
|
2015-12-16 00:56:41 +03:00
|
|
|
Stretch(mozilla::gfx::DrawTarget* aDrawTarget,
|
2001-02-23 19:09:14 +03:00
|
|
|
nsStretchDirection aStretchDirection,
|
|
|
|
nsBoundingMetrics& aContainerSize,
|
2016-07-21 13:36:38 +03:00
|
|
|
mozilla::ReflowOutput& aDesiredStretchSize) override
|
2001-02-23 19:09:14 +03:00
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
GetEmbellishData(nsEmbellishData& aEmbellishData) override {
|
2001-02-23 19:09:14 +03:00
|
|
|
aEmbellishData = mEmbellishData;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
GetPresentationData(nsPresentationData& aPresentationData) override {
|
2001-02-23 19:09:14 +03:00
|
|
|
aPresentationData = mPresentationData;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2002-02-01 18:10:50 +03:00
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
InheritAutomaticData(nsIFrame* aParent) override;
|
2002-02-01 18:10:50 +03:00
|
|
|
|
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
TransmitAutomaticData() override
|
2002-02-01 18:10:50 +03:00
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2001-02-23 19:09:14 +03:00
|
|
|
NS_IMETHOD
|
2012-08-22 19:56:38 +04:00
|
|
|
UpdatePresentationData(uint32_t aFlagsValues,
|
2015-03-21 19:28:04 +03:00
|
|
|
uint32_t aFlagsToUpdate) override;
|
2001-02-23 19:09:14 +03:00
|
|
|
|
|
|
|
NS_IMETHOD
|
2012-08-22 19:56:38 +04:00
|
|
|
UpdatePresentationDataFromChildAt(int32_t aFirstIndex,
|
|
|
|
int32_t aLastIndex,
|
|
|
|
uint32_t aFlagsValues,
|
2015-03-21 19:28:04 +03:00
|
|
|
uint32_t aFlagsToUpdate) override
|
2001-02-23 19:09:14 +03:00
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2014-01-15 18:49:00 +04:00
|
|
|
uint8_t
|
2015-03-21 19:28:04 +03:00
|
|
|
ScriptIncrement(nsIFrame* aFrame) override
|
2014-01-15 18:49:00 +04:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-04 19:54:00 +04:00
|
|
|
bool
|
2015-03-21 19:28:04 +03:00
|
|
|
IsMrowLike() override
|
2014-04-04 19:54:00 +04:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2002-01-09 21:51:30 +03:00
|
|
|
// helper to give a style context suitable for doing the stretching to the
|
|
|
|
// MathMLChar. Frame classes that use this should make the extra style contexts
|
|
|
|
// accessible to the Style System via Get/Set AdditionalStyleContext.
|
2002-02-07 07:38:08 +03:00
|
|
|
static void
|
2004-08-01 03:15:21 +04:00
|
|
|
ResolveMathMLCharStyle(nsPresContext* aPresContext,
|
2002-01-09 21:51:30 +03:00
|
|
|
nsIContent* aContent,
|
2003-02-22 03:32:13 +03:00
|
|
|
nsStyleContext* aParenStyleContext,
|
2014-04-24 23:30:00 +04:00
|
|
|
nsMathMLChar* aMathMLChar);
|
2002-01-09 21:51:30 +03:00
|
|
|
|
2002-04-02 07:57:56 +04:00
|
|
|
// helper to get the mEmbellishData of a frame
|
2002-02-07 07:38:08 +03:00
|
|
|
// The MathML REC precisely defines an "embellished operator" as:
|
|
|
|
// - an <mo> element;
|
|
|
|
// - or one of the elements <msub>, <msup>, <msubsup>, <munder>, <mover>,
|
|
|
|
// <munderover>, <mmultiscripts>, <mfrac>, or <semantics>, whose first
|
|
|
|
// argument exists and is an embellished operator;
|
|
|
|
//- or one of the elements <mstyle>, <mphantom>, or <mpadded>, such that
|
|
|
|
// an <mrow> containing the same arguments would be an embellished
|
|
|
|
// operator;
|
|
|
|
// - or an <maction> element whose selected subexpression exists and is an
|
|
|
|
// embellished operator;
|
|
|
|
// - or an <mrow> whose arguments consist (in any order) of one embellished
|
|
|
|
// operator and zero or more spacelike elements.
|
|
|
|
static void
|
|
|
|
GetEmbellishDataFrom(nsIFrame* aFrame,
|
|
|
|
nsEmbellishData& aEmbellishData);
|
|
|
|
|
|
|
|
// helper to get the presentation data of a frame. If aClimbTree is
|
|
|
|
// set to true and the frame happens to be surrounded by non-MathML
|
|
|
|
// helper frames needed for its support, we walk up the frame hierarchy
|
|
|
|
// until we reach a MathML ancestor or the <root> math element.
|
2002-01-12 11:06:08 +03:00
|
|
|
static void
|
|
|
|
GetPresentationDataFrom(nsIFrame* aFrame,
|
2002-02-07 07:38:08 +03:00
|
|
|
nsPresentationData& aPresentationData,
|
2011-09-29 10:19:26 +04:00
|
|
|
bool aClimbTree = true);
|
2002-02-07 07:38:08 +03:00
|
|
|
|
2002-01-09 21:51:30 +03:00
|
|
|
// utilities to parse and retrieve numeric values in CSS units
|
|
|
|
// All values are stored in twips.
|
2012-05-16 02:30:14 +04:00
|
|
|
// @pre aLengthValue is the default length value of the attribute.
|
|
|
|
// @post aLengthValue is the length value computed from the attribute.
|
|
|
|
static void ParseNumericValue(const nsString& aString,
|
|
|
|
nscoord* aLengthValue,
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t aFlags,
|
2012-05-16 02:30:14 +04:00
|
|
|
nsPresContext* aPresContext,
|
2014-10-25 10:29:00 +04:00
|
|
|
nsStyleContext* aStyleContext,
|
|
|
|
float aFontSizeInflation);
|
2002-01-09 21:51:30 +03:00
|
|
|
|
|
|
|
static nscoord
|
2004-08-01 03:15:21 +04:00
|
|
|
CalcLength(nsPresContext* aPresContext,
|
2003-02-22 03:32:13 +03:00
|
|
|
nsStyleContext* aStyleContext,
|
2014-10-25 10:29:00 +04:00
|
|
|
const nsCSSValue& aCSSValue,
|
|
|
|
float aFontSizeInflation);
|
2002-01-09 21:51:30 +03:00
|
|
|
|
2006-08-15 08:49:43 +04:00
|
|
|
static eMathMLFrameType
|
|
|
|
GetMathMLFrameTypeFor(nsIFrame* aFrame)
|
|
|
|
{
|
|
|
|
if (aFrame->IsFrameOfType(nsIFrame::eMathML)) {
|
2009-01-12 22:20:59 +03:00
|
|
|
nsIMathMLFrame* mathMLFrame = do_QueryFrame(aFrame);
|
2006-08-15 08:49:43 +04:00
|
|
|
if (mathMLFrame)
|
|
|
|
return mathMLFrame->GetMathMLFrameType();
|
|
|
|
}
|
|
|
|
return eMathMLFrameType_UNKNOWN;
|
|
|
|
}
|
|
|
|
|
2002-01-09 21:51:30 +03:00
|
|
|
// estimate of the italic correction
|
|
|
|
static void
|
|
|
|
GetItalicCorrection(nsBoundingMetrics& aBoundingMetrics,
|
|
|
|
nscoord& aItalicCorrection)
|
|
|
|
{
|
|
|
|
aItalicCorrection = aBoundingMetrics.rightBearing - aBoundingMetrics.width;
|
|
|
|
if (0 > aItalicCorrection) {
|
|
|
|
aItalicCorrection = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
GetItalicCorrection(nsBoundingMetrics& aBoundingMetrics,
|
|
|
|
nscoord& aLeftItalicCorrection,
|
|
|
|
nscoord& aRightItalicCorrection)
|
|
|
|
{
|
|
|
|
aRightItalicCorrection = aBoundingMetrics.rightBearing - aBoundingMetrics.width;
|
|
|
|
if (0 > aRightItalicCorrection) {
|
|
|
|
aRightItalicCorrection = 0;
|
|
|
|
}
|
|
|
|
aLeftItalicCorrection = -aBoundingMetrics.leftBearing;
|
|
|
|
if (0 > aLeftItalicCorrection) {
|
|
|
|
aLeftItalicCorrection = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// helper methods for getting sup/subdrop's from a child
|
|
|
|
static void
|
2005-02-07 04:57:50 +03:00
|
|
|
GetSubDropFromChild(nsIFrame* aChild,
|
2014-10-25 10:29:00 +04:00
|
|
|
nscoord& aSubDrop,
|
|
|
|
float aFontSizeInflation)
|
2002-01-09 21:51:30 +03:00
|
|
|
{
|
2016-03-17 08:55:48 +03:00
|
|
|
RefPtr<nsFontMetrics> fm =
|
|
|
|
nsLayoutUtils::GetFontMetricsForFrame(aChild, aFontSizeInflation);
|
2002-01-09 21:51:30 +03:00
|
|
|
GetSubDrop(fm, aSubDrop);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2005-02-07 04:57:50 +03:00
|
|
|
GetSupDropFromChild(nsIFrame* aChild,
|
2014-10-25 10:29:00 +04:00
|
|
|
nscoord& aSupDrop,
|
|
|
|
float aFontSizeInflation)
|
2002-01-09 21:51:30 +03:00
|
|
|
{
|
2016-03-17 08:55:48 +03:00
|
|
|
RefPtr<nsFontMetrics> fm =
|
|
|
|
nsLayoutUtils::GetFontMetricsForFrame(aChild, aFontSizeInflation);
|
2002-01-09 21:51:30 +03:00
|
|
|
GetSupDrop(fm, aSupDrop);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2005-02-07 04:57:50 +03:00
|
|
|
GetSkewCorrectionFromChild(nsIFrame* aChild,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& aSkewCorrection)
|
|
|
|
{
|
|
|
|
// default is 0
|
|
|
|
// individual classes should over-ride this method if necessary
|
|
|
|
aSkewCorrection = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 2 levels of subscript shifts
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetSubScriptShifts(nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& aSubScriptShift1,
|
|
|
|
nscoord& aSubScriptShift2)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
nscoord xHeight = fm->XHeight();
|
2002-01-09 21:51:30 +03:00
|
|
|
aSubScriptShift1 = NSToCoordRound(150.000f/430.556f * xHeight);
|
|
|
|
aSubScriptShift2 = NSToCoordRound(247.217f/430.556f * xHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 3 levels of superscript shifts
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetSupScriptShifts(nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& aSupScriptShift1,
|
|
|
|
nscoord& aSupScriptShift2,
|
|
|
|
nscoord& aSupScriptShift3)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
nscoord xHeight = fm->XHeight();
|
2002-01-09 21:51:30 +03:00
|
|
|
aSupScriptShift1 = NSToCoordRound(412.892f/430.556f * xHeight);
|
|
|
|
aSupScriptShift2 = NSToCoordRound(362.892f/430.556f * xHeight);
|
|
|
|
aSupScriptShift3 = NSToCoordRound(288.889f/430.556f * xHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
// these are TeX specific params not found in ordinary fonts
|
|
|
|
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetSubDrop(nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& aSubDrop)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
nscoord xHeight = fm->XHeight();
|
2002-01-09 21:51:30 +03:00
|
|
|
aSubDrop = NSToCoordRound(50.000f/430.556f * xHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetSupDrop(nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& aSupDrop)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
nscoord xHeight = fm->XHeight();
|
2002-01-09 21:51:30 +03:00
|
|
|
aSupDrop = NSToCoordRound(386.108f/430.556f * xHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetNumeratorShifts(nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& numShift1,
|
|
|
|
nscoord& numShift2,
|
|
|
|
nscoord& numShift3)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
nscoord xHeight = fm->XHeight();
|
2002-01-09 21:51:30 +03:00
|
|
|
numShift1 = NSToCoordRound(676.508f/430.556f * xHeight);
|
|
|
|
numShift2 = NSToCoordRound(393.732f/430.556f * xHeight);
|
|
|
|
numShift3 = NSToCoordRound(443.731f/430.556f * xHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetDenominatorShifts(nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& denShift1,
|
|
|
|
nscoord& denShift2)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
nscoord xHeight = fm->XHeight();
|
2002-01-09 21:51:30 +03:00
|
|
|
denShift1 = NSToCoordRound(685.951f/430.556f * xHeight);
|
|
|
|
denShift2 = NSToCoordRound(344.841f/430.556f * xHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetEmHeight(nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& emHeight)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
#if 0
|
2002-01-09 21:51:30 +03:00
|
|
|
// should switch to this API in order to scale with changes of TextZoom
|
2011-04-08 08:18:43 +04:00
|
|
|
emHeight = fm->EmHeight();
|
2002-01-09 21:51:30 +03:00
|
|
|
#else
|
2005-01-22 19:00:07 +03:00
|
|
|
emHeight = NSToCoordRound(float(fm->Font().size));
|
2002-01-09 21:51:30 +03:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetAxisHeight (nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& axisHeight)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
axisHeight = NSToCoordRound(250.000f/430.556f * fm->XHeight());
|
2002-01-09 21:51:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetBigOpSpacings(nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& bigOpSpacing1,
|
|
|
|
nscoord& bigOpSpacing2,
|
|
|
|
nscoord& bigOpSpacing3,
|
|
|
|
nscoord& bigOpSpacing4,
|
|
|
|
nscoord& bigOpSpacing5)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
nscoord xHeight = fm->XHeight();
|
2002-01-09 21:51:30 +03:00
|
|
|
bigOpSpacing1 = NSToCoordRound(111.111f/430.556f * xHeight);
|
|
|
|
bigOpSpacing2 = NSToCoordRound(166.667f/430.556f * xHeight);
|
|
|
|
bigOpSpacing3 = NSToCoordRound(200.000f/430.556f * xHeight);
|
|
|
|
bigOpSpacing4 = NSToCoordRound(600.000f/430.556f * xHeight);
|
|
|
|
bigOpSpacing5 = NSToCoordRound(100.000f/430.556f * xHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2011-04-08 05:05:49 +04:00
|
|
|
GetRuleThickness(nsFontMetrics* fm,
|
2002-01-09 21:51:30 +03:00
|
|
|
nscoord& ruleThickness)
|
|
|
|
{
|
2011-04-08 08:18:43 +04:00
|
|
|
nscoord xHeight = fm->XHeight();
|
2002-01-09 21:51:30 +03:00
|
|
|
ruleThickness = NSToCoordRound(40.000f/430.556f * xHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Some parameters are not accurately obtained using the x-height.
|
|
|
|
// Here are some slower variants to obtain the desired metrics
|
|
|
|
// by actually measuring some characters
|
|
|
|
static void
|
2015-12-16 00:56:41 +03:00
|
|
|
GetRuleThickness(mozilla::gfx::DrawTarget* aDrawTarget,
|
|
|
|
nsFontMetrics* aFontMetrics,
|
|
|
|
nscoord& aRuleThickness);
|
2002-01-09 21:51:30 +03:00
|
|
|
|
|
|
|
static void
|
2015-12-16 00:56:41 +03:00
|
|
|
GetAxisHeight(mozilla::gfx::DrawTarget* aDrawTarget,
|
|
|
|
nsFontMetrics* aFontMetrics,
|
|
|
|
nscoord& aAxisHeight);
|
2002-01-09 21:51:30 +03:00
|
|
|
|
2014-06-17 10:40:00 +04:00
|
|
|
static void
|
|
|
|
GetRadicalParameters(nsFontMetrics* aFontMetrics,
|
|
|
|
bool aDisplayStyle,
|
|
|
|
nscoord& aRadicalRuleThickness,
|
|
|
|
nscoord& aRadicalExtraAscender,
|
|
|
|
nscoord& aRadicalVerticalGap);
|
|
|
|
|
2001-02-23 19:09:14 +03:00
|
|
|
protected:
|
2012-06-25 23:59:42 +04:00
|
|
|
#if defined(DEBUG) && defined(SHOW_BOUNDING_BOX)
|
2016-03-31 05:04:00 +03:00
|
|
|
void DisplayBoundingMetrics(nsDisplayListBuilder* aBuilder,
|
|
|
|
nsIFrame* aFrame, const nsPoint& aPt,
|
|
|
|
const nsBoundingMetrics& aMetrics,
|
|
|
|
const nsDisplayListSet& aLists);
|
2006-01-26 05:29:17 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Display a solid rectangle in the frame's text color. Used for drawing
|
|
|
|
* fraction separators and root/sqrt overbars.
|
|
|
|
*/
|
2013-02-14 15:12:27 +04:00
|
|
|
void DisplayBar(nsDisplayListBuilder* aBuilder,
|
|
|
|
nsIFrame* aFrame, const nsRect& aRect,
|
|
|
|
const nsDisplayListSet& aLists);
|
2006-01-26 05:29:17 +03:00
|
|
|
|
2001-02-23 19:09:14 +03:00
|
|
|
// information about the presentation policy of the frame
|
|
|
|
nsPresentationData mPresentationData;
|
|
|
|
|
|
|
|
// information about a container that is an embellished operator
|
|
|
|
nsEmbellishData mEmbellishData;
|
|
|
|
|
|
|
|
// Metrics that _exactly_ enclose the text of the frame
|
|
|
|
nsBoundingMetrics mBoundingMetrics;
|
|
|
|
|
|
|
|
// Reference point of the frame: mReference.y is the baseline
|
|
|
|
nsPoint mReference;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLFrame_h___ */
|