зеркало из https://github.com/mozilla/gecko-dev.git
Make sure scrollcorners are always boxes. Bug 310919, r=dbaron, sr=neil
This commit is contained in:
Родитель
4a968165ad
Коммит
ff4bb166e0
|
@ -2369,6 +2369,7 @@ nsGfxScrollFrameInner::LayoutScrollbars(nsBoxLayoutState& aState,
|
|||
scrollable->SetLineHeight(fontHeight);
|
||||
|
||||
if (mVScrollbarBox) {
|
||||
NS_PRECONDITION(mVScrollbarBox->IsBoxFrame(), "Must be a box frame!");
|
||||
if (!mHasVerticalScrollbar) {
|
||||
SetAttribute(mVScrollbarBox, nsXULAtoms::curpos, 0);
|
||||
}
|
||||
|
@ -2387,6 +2388,7 @@ nsGfxScrollFrameInner::LayoutScrollbars(nsBoxLayoutState& aState,
|
|||
}
|
||||
|
||||
if (mHScrollbarBox) {
|
||||
NS_PRECONDITION(mHScrollbarBox->IsBoxFrame(), "Must be a box frame!");
|
||||
if (!mHasHorizontalScrollbar) {
|
||||
SetAttribute(mHScrollbarBox, nsXULAtoms::curpos, 0);
|
||||
}
|
||||
|
@ -2406,6 +2408,7 @@ nsGfxScrollFrameInner::LayoutScrollbars(nsBoxLayoutState& aState,
|
|||
|
||||
// place the scrollcorner
|
||||
if (mScrollCornerBox) {
|
||||
NS_PRECONDITION(mScrollCornerBox->IsBoxFrame(), "Must be a box frame!");
|
||||
nsRect r(0, 0, 0, 0);
|
||||
if (aContentArea.x != aScrollArea.x) {
|
||||
// scrollbar (if any) on left
|
||||
|
|
|
@ -867,6 +867,14 @@ scrollbar, scrollbarbutton, scrollcorner, slider, thumb {
|
|||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
scrollcorner {
|
||||
display: -moz-box !important;
|
||||
}
|
||||
|
||||
scrollcorner[hidden="true"] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
scrollbar[value="hidden"] {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
|
|
@ -760,6 +760,14 @@ scrollbar, scrollbarbutton, scrollcorner, slider, thumb {
|
|||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
scrollcorner {
|
||||
display: -moz-box !important;
|
||||
}
|
||||
|
||||
scrollcorner[hidden="true"] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
scrollbar[value="hidden"] {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче