зеркало из https://github.com/mozilla/gecko-dev.git
Bug 557474 - Add support for the voffset attribute, part 1. r=karlt
This commit is contained in:
Родитель
1ad17ada67
Коммит
d9982f34ed
|
@ -93,10 +93,11 @@ nsMathMLmpaddedFrame::ProcessAttributes()
|
|||
/*
|
||||
parse the attributes
|
||||
|
||||
width = [+|-] unsigned-number (% [pseudo-unit] | pseudo-unit | h-unit | namedspace)
|
||||
height= [+|-] unsigned-number (% [pseudo-unit] | pseudo-unit | v-unit)
|
||||
depth = [+|-] unsigned-number (% [pseudo-unit] | pseudo-unit | v-unit)
|
||||
lspace= [+|-] unsigned-number (% [pseudo-unit] | pseudo-unit | h-unit)
|
||||
width = [+|-] unsigned-number (% [pseudo-unit] | pseudo-unit | h-unit | namedspace)
|
||||
height = [+|-] unsigned-number (% [pseudo-unit] | pseudo-unit | v-unit | namedspace)
|
||||
depth = [+|-] unsigned-number (% [pseudo-unit] | pseudo-unit | v-unit | namedspace)
|
||||
lspace = [+|-] unsigned-number (% [pseudo-unit] | pseudo-unit | h-unit | namedspace)
|
||||
voffset= [+|-] unsigned-number (% [pseudo-unit] | pseudo-unit | v-unit | namedspace)
|
||||
*/
|
||||
|
||||
nsAutoString value;
|
||||
|
@ -137,6 +138,15 @@ nsMathMLmpaddedFrame::ProcessAttributes()
|
|||
if (!value.IsEmpty()) {
|
||||
ParseAttribute(value, mLeftSpaceSign, mLeftSpace, mLeftSpacePseudoUnit);
|
||||
}
|
||||
|
||||
// voffset
|
||||
mVerticalOffsetSign = NS_MATHML_SIGN_INVALID;
|
||||
GetAttribute(mContent, nsnull, nsGkAtoms::voffset_, value);
|
||||
if (!value.IsEmpty()) {
|
||||
ParseAttribute(value, mVerticalOffsetSign, mVerticalOffset,
|
||||
mVerticalOffsetPseudoUnit);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// parse an input string in the following format (see bug 148326 for testcases):
|
||||
|
|
|
@ -84,16 +84,19 @@ private:
|
|||
nsCSSValue mHeight;
|
||||
nsCSSValue mDepth;
|
||||
nsCSSValue mLeftSpace;
|
||||
nsCSSValue mVerticalOffset;
|
||||
|
||||
PRInt32 mWidthSign;
|
||||
PRInt32 mHeightSign;
|
||||
PRInt32 mDepthSign;
|
||||
PRInt32 mLeftSpaceSign;
|
||||
PRInt32 mVerticalOffsetSign;
|
||||
|
||||
PRInt32 mWidthPseudoUnit;
|
||||
PRInt32 mHeightPseudoUnit;
|
||||
PRInt32 mDepthPseudoUnit;
|
||||
PRInt32 mLeftSpacePseudoUnit;
|
||||
PRInt32 mVerticalOffsetPseudoUnit;
|
||||
|
||||
// helpers to process the attributes
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче