зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1647525 - Use HasAnyStateBits() in nsComboboxControlFrame r=emilio
Depends on D81098 Differential Revision: https://phabricator.services.mozilla.com/D81099
This commit is contained in:
Родитель
c1fb8f39c5
Коммит
ec26e7ea7d
|
@ -428,7 +428,7 @@ void nsComboboxControlFrame::ReflowDropdown(nsPresContext* aPresContext,
|
|||
std::max(kidReflowInput.ComputedISize(), forcedISize));
|
||||
|
||||
// ensure we start off hidden
|
||||
if (!mDroppedDown && GetStateBits() & NS_FRAME_FIRST_REFLOW) {
|
||||
if (!mDroppedDown && HasAnyStateBits(NS_FRAME_FIRST_REFLOW)) {
|
||||
nsView* view = mDropdownFrame->GetView();
|
||||
nsViewManager* viewManager = view->GetViewManager();
|
||||
viewManager->SetViewVisibility(view, nsViewVisibility_kHide);
|
||||
|
@ -668,7 +668,7 @@ void nsComboboxControlFrame::NotifyGeometryChange() {
|
|||
// We don't need to resize if we're not dropped down since ShowDropDown
|
||||
// does that, or if we're dirty then the reflow callback does it,
|
||||
// or if we have a delayed ShowDropDown pending.
|
||||
if (IsDroppedDown() && !(GetStateBits() & NS_FRAME_IS_DIRTY) &&
|
||||
if (IsDroppedDown() && !HasAnyStateBits(NS_FRAME_IS_DIRTY) &&
|
||||
!mDelayedShowDropDown) {
|
||||
// Async because we're likely in a middle of a scroll here so
|
||||
// frame/view positions are in flux.
|
||||
|
|
Загрузка…
Ссылка в новой задаче