mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove unnecessary method argument. Bug 613149, r=roc
This commit is contained in:
parent
e1abcb4f3d
commit
7a7f91df8a
@ -272,22 +272,22 @@ struct BidiParagraphData {
|
||||
|
||||
void AppendString(const nsDependentSubstring& aString){ mBuffer.Append(aString); }
|
||||
|
||||
void AppendUnicharFrame(nsIFrame* aFrame, PRUnichar aCh)
|
||||
void AppendControlChar(PRUnichar aCh)
|
||||
{
|
||||
mLogicalFrames.AppendElement(aFrame);
|
||||
mLogicalFrames.AppendElement(NS_BIDI_CONTROL_FRAME);
|
||||
mLinePerFrame.AppendElement((nsLineBox*)nsnull);
|
||||
AppendUnichar(aCh);
|
||||
}
|
||||
|
||||
void PushBidiControl(PRUnichar aCh)
|
||||
{
|
||||
AppendUnicharFrame(NS_BIDI_CONTROL_FRAME, aCh);
|
||||
AppendControlChar(aCh);
|
||||
mEmbeddingStack.AppendElement(aCh);
|
||||
}
|
||||
|
||||
void PopBidiControl()
|
||||
{
|
||||
AppendUnicharFrame(NS_BIDI_CONTROL_FRAME, kPDF);
|
||||
AppendControlChar(kPDF);
|
||||
NS_ASSERTION(mEmbeddingStack.Length(), "embedding/override underflow");
|
||||
mEmbeddingStack.TruncateLength(mEmbeddingStack.Length() - 1);
|
||||
}
|
||||
@ -295,7 +295,7 @@ struct BidiParagraphData {
|
||||
void ClearBidiControls()
|
||||
{
|
||||
for (PRUint32 i = 0; i < mEmbeddingStack.Length(); ++i) {
|
||||
AppendUnicharFrame(NS_BIDI_CONTROL_FRAME, kPDF);
|
||||
AppendControlChar(kPDF);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1098,8 +1098,7 @@ nsBidiPresUtils::TraverseFrames(nsBlockFrame* aBlockFrame,
|
||||
|
||||
// Treat an element with unicode-bidi: isolate as a neutral character
|
||||
// within its containing paragraph
|
||||
aContainingParagraph->AppendUnicharFrame(NS_BIDI_CONTROL_FRAME,
|
||||
kObjectSubstitute);
|
||||
aContainingParagraph->AppendControlChar(kObjectSubstitute);
|
||||
}
|
||||
}
|
||||
childFrame = nextSibling;
|
||||
|
Loading…
Reference in New Issue
Block a user