From ddfefbb3fc13fca8ce6aa3094d43772e7e5e5cf7 Mon Sep 17 00:00:00 2001 From: "aaronleventhal%moonset.net" Date: Wed, 13 Oct 2004 02:24:38 +0000 Subject: [PATCH] Fixing bustage git-svn-id: svn://10.0.0.236/trunk@163643 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCaret.cpp | 5 +++++ mozilla/layout/base/nsCaret.h | 1 - mozilla/layout/base/src/nsCaret.cpp | 5 +++++ mozilla/layout/base/src/nsCaret.h | 1 - 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsCaret.cpp b/mozilla/layout/base/nsCaret.cpp index 7e74e9fe00e..770403a3488 100644 --- a/mozilla/layout/base/nsCaret.cpp +++ b/mozilla/layout/base/nsCaret.cpp @@ -65,6 +65,11 @@ #include "nsCaret.h" +// The bidi indicator hangs off the caret to one side, to show which +// direction the typing is in. It needs to be at least 2x2 to avoid looking like +// an insignificant dot +static const PRUint32 kMinBidiIndicatorPixels = 2; + #if !defined(XP_UNIX) || defined(XP_MACOSX) // Because of drawing issues, we currently always make a new RC. See bug 28068 // Before removing this, stuff will need to be fixed and tested on all platforms. diff --git a/mozilla/layout/base/nsCaret.h b/mozilla/layout/base/nsCaret.h index d00c9ef98d8..79c522325d8 100644 --- a/mozilla/layout/base/nsCaret.h +++ b/mozilla/layout/base/nsCaret.h @@ -112,7 +112,6 @@ protected: nscoord mCaretTwipsWidth; // caret width in twips. this gets calculated laziiy nscoord mBidiIndicatorTwipsSize; // width and height of bidi indicator - static const kMinBidiIndicatorPixels = 2; PRPackedBool mVisible; // is the caret blinking PRPackedBool mDrawn; // this should be mutable diff --git a/mozilla/layout/base/src/nsCaret.cpp b/mozilla/layout/base/src/nsCaret.cpp index 7e74e9fe00e..770403a3488 100644 --- a/mozilla/layout/base/src/nsCaret.cpp +++ b/mozilla/layout/base/src/nsCaret.cpp @@ -65,6 +65,11 @@ #include "nsCaret.h" +// The bidi indicator hangs off the caret to one side, to show which +// direction the typing is in. It needs to be at least 2x2 to avoid looking like +// an insignificant dot +static const PRUint32 kMinBidiIndicatorPixels = 2; + #if !defined(XP_UNIX) || defined(XP_MACOSX) // Because of drawing issues, we currently always make a new RC. See bug 28068 // Before removing this, stuff will need to be fixed and tested on all platforms. diff --git a/mozilla/layout/base/src/nsCaret.h b/mozilla/layout/base/src/nsCaret.h index d00c9ef98d8..79c522325d8 100644 --- a/mozilla/layout/base/src/nsCaret.h +++ b/mozilla/layout/base/src/nsCaret.h @@ -112,7 +112,6 @@ protected: nscoord mCaretTwipsWidth; // caret width in twips. this gets calculated laziiy nscoord mBidiIndicatorTwipsSize; // width and height of bidi indicator - static const kMinBidiIndicatorPixels = 2; PRPackedBool mVisible; // is the caret blinking PRPackedBool mDrawn; // this should be mutable