зеркало из https://github.com/mozilla/gecko-dev.git
Bug 575294 - s/mFocused/sFocused/. part=4/4 r=smaug
This commit is contained in:
Родитель
07de03112a
Коммит
f1803c5e39
|
@ -116,7 +116,7 @@ NS_IMPL_ISUPPORTS1(nsComboButtonListener,
|
|||
nsIDOMEventListener)
|
||||
|
||||
// static class data member for Bug 32920
|
||||
nsComboboxControlFrame * nsComboboxControlFrame::mFocused = nsnull;
|
||||
nsComboboxControlFrame* nsComboboxControlFrame::sFocused = nsnull;
|
||||
|
||||
nsIFrame*
|
||||
NS_NewComboboxControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, PRUint32 aStateFlags)
|
||||
|
@ -330,7 +330,7 @@ nsComboboxControlFrame::SetFocus(bool aOn, bool aRepaint)
|
|||
nsWeakFrame weakFrame(this);
|
||||
if (aOn) {
|
||||
nsListControlFrame::ComboboxFocusSet();
|
||||
mFocused = this;
|
||||
sFocused = this;
|
||||
if (mDelayedShowDropDown) {
|
||||
ShowDropDown(true); // might destroy us
|
||||
if (!weakFrame.IsAlive()) {
|
||||
|
@ -338,7 +338,7 @@ nsComboboxControlFrame::SetFocus(bool aOn, bool aRepaint)
|
|||
}
|
||||
}
|
||||
} else {
|
||||
mFocused = nsnull;
|
||||
sFocused = nsnull;
|
||||
mDelayedShowDropDown = false;
|
||||
if (mDroppedDown) {
|
||||
mListControlFrame->ComboboxFinish(mDisplayedIndex); // might destroy us
|
||||
|
@ -629,7 +629,7 @@ nsComboboxControlFrame::GetAvailableDropdownSpace(nscoord* aAbove,
|
|||
nscoord* aBelow,
|
||||
nsPoint* aTranslation)
|
||||
{
|
||||
// Note: As first glance, it appears that you could simply get the absolute
|
||||
// Note: At first glance, it appears that you could simply get the absolute
|
||||
// bounding box for the dropdown list by first getting its view, then getting
|
||||
// the view's nsIWidget, then asking the nsIWidget for its AbsoluteBounds.
|
||||
// The problem with this approach, is that the dropdown lists y location can
|
||||
|
@ -969,7 +969,7 @@ nsComboboxControlFrame::ShowDropDown(bool aDoDropDown)
|
|||
}
|
||||
|
||||
if (!mDroppedDown && aDoDropDown) {
|
||||
if (mFocused == this) {
|
||||
if (sFocused == this) {
|
||||
DropDownPositionState state = AbsolutelyPositionDropDown();
|
||||
if (state == eDropDownPositionFinal) {
|
||||
ShowList(aDoDropDown); // might destroy us
|
||||
|
@ -1613,7 +1613,7 @@ void nsComboboxControlFrame::PaintFocus(nsRenderingContext& aRenderingContext,
|
|||
{
|
||||
/* Do we need to do anything? */
|
||||
nsEventStates eventStates = mContent->AsElement()->State();
|
||||
if (eventStates.HasState(NS_EVENT_STATE_DISABLED) || mFocused != this)
|
||||
if (eventStates.HasState(NS_EVENT_STATE_DISABLED) || sFocused != this)
|
||||
return;
|
||||
|
||||
aRenderingContext.PushState();
|
||||
|
|
|
@ -281,7 +281,7 @@ protected:
|
|||
|
||||
// static class data member for Bug 32920
|
||||
// only one control can be focused at a time
|
||||
static nsComboboxControlFrame * mFocused;
|
||||
static nsComboboxControlFrame* sFocused;
|
||||
|
||||
#ifdef DO_REFLOW_COUNTER
|
||||
PRInt32 mReflowId;
|
||||
|
|
Загрузка…
Ссылка в новой задаче