зеркало из https://github.com/mozilla/pjs.git
fix bug 80552 r=ftang r/sr=jst
check in for simon@softel.co.il change BidiEnable to GetBidiEnable
This commit is contained in:
Родитель
3fc561d8e2
Коммит
36ab05611e
|
@ -3316,10 +3316,7 @@ nsDocument::GetBidiEnabled(PRBool* aBidiEnabled) const
|
|||
NS_IMETHODIMP
|
||||
nsDocument::SetBidiEnabled(PRBool aBidiEnabled)
|
||||
{
|
||||
NS_ASSERTION(aBidiEnabled, "cannot disable bidi once enabled");
|
||||
if (aBidiEnabled) {
|
||||
mBidiEnabled = PR_TRUE;
|
||||
}
|
||||
mBidiEnabled = aBidiEnabled;
|
||||
return NS_OK;
|
||||
}
|
||||
#endif // IBMBIDI
|
||||
|
|
|
@ -1586,7 +1586,7 @@ nsSelection::MoveCaret(PRUint32 aKeycode, PRBool aContinue, nsSelectionAmount aA
|
|||
mHint = (HINT)pos.mPreferLeft;
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled = PR_FALSE;
|
||||
context->BidiEnabled(bidiEnabled);
|
||||
context->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled)
|
||||
{
|
||||
nsIFrame *theFrame;
|
||||
|
@ -2612,7 +2612,7 @@ nsSelection::HandleDrag(nsIPresContext *aPresContext, nsIFrame *aFrame, nsPoint&
|
|||
{
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled = PR_FALSE;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled) {
|
||||
long level;
|
||||
nsPeekOffsetStruct pos;
|
||||
|
|
|
@ -3034,7 +3034,7 @@ nsGenericHTMLElement::MapCommonAttributesInto(const nsIHTMLMappedAttributes* aAt
|
|||
display->mExplicitDirection = display->mDirection;
|
||||
|
||||
if (NS_STYLE_DIRECTION_RTL == display->mDirection) {
|
||||
aPresContext->EnableBidi();
|
||||
aPresContext->SetBidiEnabled(PR_TRUE);
|
||||
}
|
||||
#endif // IBMBIDI
|
||||
}
|
||||
|
|
|
@ -2200,7 +2200,7 @@ MapDeclarationDisplayInto(nsICSSDeclaration* aDeclaration,
|
|||
display->mExplicitDirection = display->mDirection;
|
||||
|
||||
if (NS_STYLE_DIRECTION_RTL == display->mDirection) {
|
||||
aPresContext->EnableBidi();
|
||||
aPresContext->SetBidiEnabled(PR_TRUE);
|
||||
}
|
||||
#endif // IBMBIDI
|
||||
}
|
||||
|
|
|
@ -893,7 +893,7 @@ nsTextEditRules::WillDeleteSelection(nsISelection *aSelection,
|
|||
if (context)
|
||||
{
|
||||
PRBool bidiEnabled;
|
||||
context->BidiEnabled(bidiEnabled);
|
||||
context->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled)
|
||||
{
|
||||
nsCOMPtr<nsIFrameSelection> frameSelection;
|
||||
|
|
|
@ -893,7 +893,7 @@ nsTextEditRules::WillDeleteSelection(nsISelection *aSelection,
|
|||
if (context)
|
||||
{
|
||||
PRBool bidiEnabled;
|
||||
context->BidiEnabled(bidiEnabled);
|
||||
context->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled)
|
||||
{
|
||||
nsCOMPtr<nsIFrameSelection> frameSelection;
|
||||
|
|
|
@ -562,7 +562,7 @@ PRBool nsCaret::SetupDrawingFrameAndOffset()
|
|||
|
||||
PRBool bidiEnabled = PR_FALSE;
|
||||
if (presContext)
|
||||
presContext->BidiEnabled(bidiEnabled);
|
||||
presContext->GetBidiEnabled(&bidiEnabled);
|
||||
|
||||
if (bidiEnabled)
|
||||
{
|
||||
|
@ -1007,11 +1007,11 @@ void nsCaret::DrawCaret()
|
|||
mBidiKeyboard->IsLangRTL(&bidiLevel);
|
||||
if (bidiLevel)
|
||||
{
|
||||
presContext->EnableBidi();
|
||||
bidiEnabled = PR_TRUE;
|
||||
presContext->SetBidiEnabled(bidiEnabled);
|
||||
}
|
||||
else
|
||||
presContext->BidiEnabled(bidiEnabled);
|
||||
presContext->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled)
|
||||
{
|
||||
if (bidiLevel != mKeyboardRTL)
|
||||
|
|
|
@ -1457,29 +1457,30 @@ nsPresContext::IsVisRTL(PRBool& aResult)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPresContext::BidiEnabled(PRBool& aBidiEnabled) const
|
||||
nsPresContext::GetBidiEnabled(PRBool* aBidiEnabled) const
|
||||
{
|
||||
aBidiEnabled = PR_FALSE;
|
||||
NS_ASSERTION(mShell, "PresShell must be set on PresContext before calling nsPresContext::BidiEnabled");
|
||||
NS_ENSURE_ARG_POINTER(aBidiEnabled);
|
||||
*aBidiEnabled = PR_FALSE;
|
||||
NS_ASSERTION(mShell, "PresShell must be set on PresContext before calling nsPresContext::GetBidiEnabled");
|
||||
if (mShell) {
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
mShell->GetDocument(getter_AddRefs(doc) );
|
||||
NS_ASSERTION(doc, "PresShell has no document in nsPresContext::BidiEnabled");
|
||||
NS_ASSERTION(doc, "PresShell has no document in nsPresContext::GetBidiEnabled");
|
||||
if (doc) {
|
||||
doc->GetBidiEnabled(&aBidiEnabled);
|
||||
doc->GetBidiEnabled(aBidiEnabled);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPresContext::EnableBidi() const
|
||||
nsPresContext::SetBidiEnabled(PRBool aBidiEnabled) const
|
||||
{
|
||||
if (mShell) {
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
mShell->GetDocument(getter_AddRefs(doc) );
|
||||
if (doc) {
|
||||
doc->SetBidiEnabled(PR_TRUE);
|
||||
doc->SetBidiEnabled(aBidiEnabled);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
|
@ -1519,7 +1520,7 @@ NS_IMETHODIMP nsPresContext::SetBidi(PRUint32 aSource, PRBool aForceReflow)
|
|||
mBidi = aSource;
|
||||
if (IBMBIDI_TEXTDIRECTION_RTL == GET_BIDI_OPTION_DIRECTION(mBidi)
|
||||
|| IBMBIDI_NUMERAL_HINDI == GET_BIDI_OPTION_NUMERAL(mBidi)) {
|
||||
EnableBidi();
|
||||
SetBidiEnabled(PR_TRUE);
|
||||
}
|
||||
if (IBMBIDI_TEXTTYPE_VISUAL == GET_BIDI_OPTION_TEXTTYPE(mBidi)) {
|
||||
SetVisualMode(PR_TRUE);
|
||||
|
|
|
@ -393,14 +393,14 @@ public:
|
|||
*
|
||||
* @lina 07/12/2000
|
||||
*/
|
||||
NS_IMETHOD BidiEnabled(PRBool& aBidiEnabled) const = 0;
|
||||
NS_IMETHOD GetBidiEnabled(PRBool* aBidiEnabled) const = 0;
|
||||
|
||||
/**
|
||||
* Set bidi enabled. This means we should apply the Unicode Bidi Algorithm
|
||||
*
|
||||
* @lina 07/12/2000
|
||||
*/
|
||||
NS_IMETHOD EnableBidi(void) const = 0;
|
||||
NS_IMETHOD SetBidiEnabled(PRBool aBidiEnabled) const = 0;
|
||||
|
||||
/**
|
||||
* Set visual or implicit mode into the pres context.
|
||||
|
|
|
@ -393,14 +393,14 @@ public:
|
|||
*
|
||||
* @lina 07/12/2000
|
||||
*/
|
||||
NS_IMETHOD BidiEnabled(PRBool& aBidiEnabled) const = 0;
|
||||
NS_IMETHOD GetBidiEnabled(PRBool* aBidiEnabled) const = 0;
|
||||
|
||||
/**
|
||||
* Set bidi enabled. This means we should apply the Unicode Bidi Algorithm
|
||||
*
|
||||
* @lina 07/12/2000
|
||||
*/
|
||||
NS_IMETHOD EnableBidi(void) const = 0;
|
||||
NS_IMETHOD SetBidiEnabled(PRBool aBidiEnabled) const = 0;
|
||||
|
||||
/**
|
||||
* Set visual or implicit mode into the pres context.
|
||||
|
|
|
@ -393,14 +393,14 @@ public:
|
|||
*
|
||||
* @lina 07/12/2000
|
||||
*/
|
||||
NS_IMETHOD BidiEnabled(PRBool& aBidiEnabled) const = 0;
|
||||
NS_IMETHOD GetBidiEnabled(PRBool* aBidiEnabled) const = 0;
|
||||
|
||||
/**
|
||||
* Set bidi enabled. This means we should apply the Unicode Bidi Algorithm
|
||||
*
|
||||
* @lina 07/12/2000
|
||||
*/
|
||||
NS_IMETHOD EnableBidi(void) const = 0;
|
||||
NS_IMETHOD SetBidiEnabled(PRBool aBidiEnabled) const = 0;
|
||||
|
||||
/**
|
||||
* Set visual or implicit mode into the pres context.
|
||||
|
|
|
@ -562,7 +562,7 @@ PRBool nsCaret::SetupDrawingFrameAndOffset()
|
|||
|
||||
PRBool bidiEnabled = PR_FALSE;
|
||||
if (presContext)
|
||||
presContext->BidiEnabled(bidiEnabled);
|
||||
presContext->GetBidiEnabled(&bidiEnabled);
|
||||
|
||||
if (bidiEnabled)
|
||||
{
|
||||
|
@ -1007,11 +1007,11 @@ void nsCaret::DrawCaret()
|
|||
mBidiKeyboard->IsLangRTL(&bidiLevel);
|
||||
if (bidiLevel)
|
||||
{
|
||||
presContext->EnableBidi();
|
||||
bidiEnabled = PR_TRUE;
|
||||
presContext->SetBidiEnabled(bidiEnabled);
|
||||
}
|
||||
else
|
||||
presContext->BidiEnabled(bidiEnabled);
|
||||
presContext->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled)
|
||||
{
|
||||
if (bidiLevel != mKeyboardRTL)
|
||||
|
|
|
@ -1457,29 +1457,30 @@ nsPresContext::IsVisRTL(PRBool& aResult)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPresContext::BidiEnabled(PRBool& aBidiEnabled) const
|
||||
nsPresContext::GetBidiEnabled(PRBool* aBidiEnabled) const
|
||||
{
|
||||
aBidiEnabled = PR_FALSE;
|
||||
NS_ASSERTION(mShell, "PresShell must be set on PresContext before calling nsPresContext::BidiEnabled");
|
||||
NS_ENSURE_ARG_POINTER(aBidiEnabled);
|
||||
*aBidiEnabled = PR_FALSE;
|
||||
NS_ASSERTION(mShell, "PresShell must be set on PresContext before calling nsPresContext::GetBidiEnabled");
|
||||
if (mShell) {
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
mShell->GetDocument(getter_AddRefs(doc) );
|
||||
NS_ASSERTION(doc, "PresShell has no document in nsPresContext::BidiEnabled");
|
||||
NS_ASSERTION(doc, "PresShell has no document in nsPresContext::GetBidiEnabled");
|
||||
if (doc) {
|
||||
doc->GetBidiEnabled(&aBidiEnabled);
|
||||
doc->GetBidiEnabled(aBidiEnabled);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPresContext::EnableBidi() const
|
||||
nsPresContext::SetBidiEnabled(PRBool aBidiEnabled) const
|
||||
{
|
||||
if (mShell) {
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
mShell->GetDocument(getter_AddRefs(doc) );
|
||||
if (doc) {
|
||||
doc->SetBidiEnabled(PR_TRUE);
|
||||
doc->SetBidiEnabled(aBidiEnabled);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
|
@ -1519,7 +1520,7 @@ NS_IMETHODIMP nsPresContext::SetBidi(PRUint32 aSource, PRBool aForceReflow)
|
|||
mBidi = aSource;
|
||||
if (IBMBIDI_TEXTDIRECTION_RTL == GET_BIDI_OPTION_DIRECTION(mBidi)
|
||||
|| IBMBIDI_NUMERAL_HINDI == GET_BIDI_OPTION_NUMERAL(mBidi)) {
|
||||
EnableBidi();
|
||||
SetBidiEnabled(PR_TRUE);
|
||||
}
|
||||
if (IBMBIDI_TEXTTYPE_VISUAL == GET_BIDI_OPTION_TEXTTYPE(mBidi)) {
|
||||
SetVisualMode(PR_TRUE);
|
||||
|
|
|
@ -177,8 +177,8 @@ public:
|
|||
const PRUnichar* aData);
|
||||
|
||||
#ifdef IBMBIDI
|
||||
NS_IMETHOD BidiEnabled(PRBool& aBidiEnabled) const;
|
||||
NS_IMETHOD EnableBidi(void) const;
|
||||
NS_IMETHOD GetBidiEnabled(PRBool* aBidiEnabled) const;
|
||||
NS_IMETHOD SetBidiEnabled(PRBool aBidiEnabled) const;
|
||||
NS_IMETHOD IsVisualMode(PRBool& aIsVisual) const;
|
||||
NS_IMETHOD SetVisualMode(PRBool aIsVisual);
|
||||
NS_IMETHOD GetBidiUtils(nsBidiPresUtils** aBidiUtils);
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
#ifdef DEBUG
|
||||
#include "nsBlockDebugFlags.h"
|
||||
|
||||
|
||||
PRBool nsBlockFrame::gLamePaintMetrics;
|
||||
PRBool nsBlockFrame::gLameReflowMetrics;
|
||||
PRBool nsBlockFrame::gNoisy;
|
||||
|
@ -698,7 +699,7 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
#ifdef IBMBIDI
|
||||
if (mLines) {
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled) {
|
||||
nsBidiPresUtils* bidiUtils;
|
||||
aPresContext->GetBidiUtils(&bidiUtils);
|
||||
|
@ -3838,7 +3839,7 @@ nsBlockFrame::PlaceLine(nsBlockReflowState& aState,
|
|||
#ifdef IBMBIDI
|
||||
else {
|
||||
PRBool bidiEnabled;
|
||||
aState.mPresContext->BidiEnabled(bidiEnabled);
|
||||
aState.mPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
|
||||
if (bidiEnabled) {
|
||||
PRBool isVisual;
|
||||
|
|
|
@ -2855,7 +2855,7 @@ nsFrame::GetNextPrevLineFromeBlockFrame(nsIPresContext* aPresContext,
|
|||
nscoord newDesiredX = aPos->mDesiredX - offset.x;//get desired x into blockframe coordinates!
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
result = it->FindFrameAt(searchingLine, newDesiredX, bidiEnabled, &resultFrame, &isBeforeFirstFrame, &isAfterLastFrame);
|
||||
#else
|
||||
result = it->FindFrameAt(searchingLine, newDesiredX, &resultFrame, &isBeforeFirstFrame, &isAfterLastFrame);
|
||||
|
|
|
@ -924,7 +924,7 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
|||
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled;
|
||||
mPresContext->BidiEnabled(bidiEnabled);
|
||||
mPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
PRBool visual;
|
||||
PRBool setMode = PR_FALSE;
|
||||
PRInt32 start, end;
|
||||
|
|
|
@ -1586,7 +1586,7 @@ nsSelection::MoveCaret(PRUint32 aKeycode, PRBool aContinue, nsSelectionAmount aA
|
|||
mHint = (HINT)pos.mPreferLeft;
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled = PR_FALSE;
|
||||
context->BidiEnabled(bidiEnabled);
|
||||
context->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled)
|
||||
{
|
||||
nsIFrame *theFrame;
|
||||
|
@ -2612,7 +2612,7 @@ nsSelection::HandleDrag(nsIPresContext *aPresContext, nsIFrame *aFrame, nsPoint&
|
|||
{
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled = PR_FALSE;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled) {
|
||||
long level;
|
||||
nsPeekOffsetStruct pos;
|
||||
|
|
|
@ -1381,7 +1381,7 @@ nsTextFrame::Paint(nsIPresContext* aPresContext,
|
|||
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled) {
|
||||
PaintUnicodeText(aPresContext, aRenderingContext, sc, ts, 0, 0);
|
||||
} else
|
||||
|
@ -2142,7 +2142,7 @@ nsTextFrame::PaintUnicodeText(nsIPresContext* aPresContext,
|
|||
aRenderingContext.GetHints(hints);
|
||||
isBidiSystem = (hints & NS_RENDERING_HINT_BIDI_REORDERING);
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
//ahmed
|
||||
aPresContext->SetIsBidiSystem(isBidiSystem);
|
||||
if (bidiEnabled) {
|
||||
|
@ -2795,7 +2795,7 @@ nsTextFrame::PaintTextSlowly(nsIPresContext* aPresContext,
|
|||
#ifdef IBMBIDI
|
||||
PRBool isRightToLeft = PR_FALSE;
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
|
||||
if (bidiEnabled) {
|
||||
nsBidiPresUtils* bidiUtils;
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
#ifdef DEBUG
|
||||
#include "nsBlockDebugFlags.h"
|
||||
|
||||
|
||||
PRBool nsBlockFrame::gLamePaintMetrics;
|
||||
PRBool nsBlockFrame::gLameReflowMetrics;
|
||||
PRBool nsBlockFrame::gNoisy;
|
||||
|
@ -698,7 +699,7 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
#ifdef IBMBIDI
|
||||
if (mLines) {
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled) {
|
||||
nsBidiPresUtils* bidiUtils;
|
||||
aPresContext->GetBidiUtils(&bidiUtils);
|
||||
|
@ -3838,7 +3839,7 @@ nsBlockFrame::PlaceLine(nsBlockReflowState& aState,
|
|||
#ifdef IBMBIDI
|
||||
else {
|
||||
PRBool bidiEnabled;
|
||||
aState.mPresContext->BidiEnabled(bidiEnabled);
|
||||
aState.mPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
|
||||
if (bidiEnabled) {
|
||||
PRBool isVisual;
|
||||
|
|
|
@ -2855,7 +2855,7 @@ nsFrame::GetNextPrevLineFromeBlockFrame(nsIPresContext* aPresContext,
|
|||
nscoord newDesiredX = aPos->mDesiredX - offset.x;//get desired x into blockframe coordinates!
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
result = it->FindFrameAt(searchingLine, newDesiredX, bidiEnabled, &resultFrame, &isBeforeFirstFrame, &isAfterLastFrame);
|
||||
#else
|
||||
result = it->FindFrameAt(searchingLine, newDesiredX, &resultFrame, &isBeforeFirstFrame, &isAfterLastFrame);
|
||||
|
|
|
@ -924,7 +924,7 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
|||
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled;
|
||||
mPresContext->BidiEnabled(bidiEnabled);
|
||||
mPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
PRBool visual;
|
||||
PRBool setMode = PR_FALSE;
|
||||
PRInt32 start, end;
|
||||
|
|
|
@ -1381,7 +1381,7 @@ nsTextFrame::Paint(nsIPresContext* aPresContext,
|
|||
|
||||
#ifdef IBMBIDI
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
if (bidiEnabled) {
|
||||
PaintUnicodeText(aPresContext, aRenderingContext, sc, ts, 0, 0);
|
||||
} else
|
||||
|
@ -2142,7 +2142,7 @@ nsTextFrame::PaintUnicodeText(nsIPresContext* aPresContext,
|
|||
aRenderingContext.GetHints(hints);
|
||||
isBidiSystem = (hints & NS_RENDERING_HINT_BIDI_REORDERING);
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
//ahmed
|
||||
aPresContext->SetIsBidiSystem(isBidiSystem);
|
||||
if (bidiEnabled) {
|
||||
|
@ -2795,7 +2795,7 @@ nsTextFrame::PaintTextSlowly(nsIPresContext* aPresContext,
|
|||
#ifdef IBMBIDI
|
||||
PRBool isRightToLeft = PR_FALSE;
|
||||
PRBool bidiEnabled;
|
||||
aPresContext->BidiEnabled(bidiEnabled);
|
||||
aPresContext->GetBidiEnabled(&bidiEnabled);
|
||||
|
||||
if (bidiEnabled) {
|
||||
nsBidiPresUtils* bidiUtils;
|
||||
|
|
|
@ -2200,7 +2200,7 @@ MapDeclarationDisplayInto(nsICSSDeclaration* aDeclaration,
|
|||
display->mExplicitDirection = display->mDirection;
|
||||
|
||||
if (NS_STYLE_DIRECTION_RTL == display->mDirection) {
|
||||
aPresContext->EnableBidi();
|
||||
aPresContext->SetBidiEnabled(PR_TRUE);
|
||||
}
|
||||
#endif // IBMBIDI
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче