зеркало из https://github.com/mozilla/gecko-dev.git
Backed out 2 changesets (bug 1695292, bug 1696438) for causing xpcshell failures in test_trr_cancel.js
CLOSED TREE Backed out changeset 48c2e15e0472 (bug 1695292) Backed out changeset 4b1eb7d5fe2d (bug 1696438)
This commit is contained in:
Родитель
6cc119870c
Коммит
0a0ec7a076
|
@ -1328,7 +1328,7 @@
|
||||||
|
|
||||||
_positionPinnedTabs() {
|
_positionPinnedTabs() {
|
||||||
let tabs = this._getVisibleTabs();
|
let tabs = this._getVisibleTabs();
|
||||||
let numPinned = gBrowser._numPinnedTabs;
|
let numPinned = tabs.filter(t => t.pinned).length;
|
||||||
let doPosition =
|
let doPosition =
|
||||||
this.getAttribute("overflow") == "true" &&
|
this.getAttribute("overflow") == "true" &&
|
||||||
tabs.length > numPinned &&
|
tabs.length > numPinned &&
|
||||||
|
@ -1343,15 +1343,13 @@
|
||||||
let uiDensity = document.documentElement.getAttribute("uidensity");
|
let uiDensity = document.documentElement.getAttribute("uidensity");
|
||||||
if (!layoutData || layoutData.uiDensity != uiDensity) {
|
if (!layoutData || layoutData.uiDensity != uiDensity) {
|
||||||
let arrowScrollbox = this.arrowScrollbox;
|
let arrowScrollbox = this.arrowScrollbox;
|
||||||
|
let firstTab = tabs[0];
|
||||||
|
let firstTabCS = getComputedStyle(firstTab);
|
||||||
layoutData = this._pinnedTabsLayoutCache = {
|
layoutData = this._pinnedTabsLayoutCache = {
|
||||||
uiDensity,
|
uiDensity,
|
||||||
pinnedTabWidth: tabs[0].getBoundingClientRect().width,
|
pinnedTabWidth: parseFloat(firstTabCS.width),
|
||||||
scrollStartOffset:
|
scrollButtonWidth: arrowScrollbox._scrollButtonDown.getBoundingClientRect()
|
||||||
arrowScrollbox.scrollbox.getBoundingClientRect().left -
|
.width,
|
||||||
arrowScrollbox.getBoundingClientRect().left +
|
|
||||||
parseFloat(
|
|
||||||
getComputedStyle(arrowScrollbox.scrollbox).paddingInlineStart
|
|
||||||
),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1361,7 +1359,7 @@
|
||||||
width += layoutData.pinnedTabWidth;
|
width += layoutData.pinnedTabWidth;
|
||||||
tab.style.setProperty(
|
tab.style.setProperty(
|
||||||
"margin-inline-start",
|
"margin-inline-start",
|
||||||
-(width + layoutData.scrollStartOffset) + "px",
|
-(width + layoutData.scrollButtonWidth) + "px",
|
||||||
"important"
|
"important"
|
||||||
);
|
);
|
||||||
tab._pinnedUnscrollable = true;
|
tab._pinnedUnscrollable = true;
|
||||||
|
|
|
@ -105,7 +105,6 @@
|
||||||
width: 12px;
|
width: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media not (-moz-proton) {
|
|
||||||
#TabsToolbar .toolbarbutton-1,
|
#TabsToolbar .toolbarbutton-1,
|
||||||
#tabbrowser-arrowscrollbox::part(scrollbutton-up),
|
#tabbrowser-arrowscrollbox::part(scrollbutton-up),
|
||||||
#tabbrowser-arrowscrollbox::part(scrollbutton-down) {
|
#tabbrowser-arrowscrollbox::part(scrollbutton-down) {
|
||||||
|
@ -117,7 +116,6 @@
|
||||||
appearance: none;
|
appearance: none;
|
||||||
padding: 0 var(--toolbarbutton-inner-padding) !important;
|
padding: 0 var(--toolbarbutton-inner-padding) !important;
|
||||||
}
|
}
|
||||||
} /*** END !proton ***/
|
|
||||||
|
|
||||||
#navigator-toolbox:not(:hover) #tabbrowser-arrowscrollbox:not([highlight])::part(scrollbutton-down) {
|
#navigator-toolbox:not(:hover) #tabbrowser-arrowscrollbox:not([highlight])::part(scrollbutton-down) {
|
||||||
transition: 1s background-color ease-out;
|
transition: 1s background-color ease-out;
|
||||||
|
@ -134,20 +132,6 @@ toolbar .toolbarbutton-1 {
|
||||||
-moz-box-pack: center;
|
-moz-box-pack: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (-moz-proton) {
|
|
||||||
#TabsToolbar .toolbarbutton-1 {
|
|
||||||
margin: 0 0 var(--tabs-navbar-shadow-size) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tabbrowser-arrowscrollbox::part(scrollbutton-up),
|
|
||||||
#tabbrowser-arrowscrollbox::part(scrollbutton-down) {
|
|
||||||
appearance: none;
|
|
||||||
margin: 4px;
|
|
||||||
padding: var(--toolbarbutton-inner-padding) calc(var(--toolbarbutton-inner-padding) - 4px);
|
|
||||||
border-radius: var(--tab-border-radius);
|
|
||||||
}
|
|
||||||
} /*** END proton ***/
|
|
||||||
|
|
||||||
@media not (-moz-proton) {
|
@media not (-moz-proton) {
|
||||||
:root:not([uidensity=compact]) #PanelUI-button {
|
:root:not([uidensity=compact]) #PanelUI-button {
|
||||||
padding-inline-start: 5px;
|
padding-inline-start: 5px;
|
||||||
|
@ -243,8 +227,6 @@ toolbar .toolbarbutton-1:not([disabled=true], [checked], [open], :active):hover
|
||||||
}
|
}
|
||||||
|
|
||||||
#PersonalToolbar .toolbarbutton-1:not([disabled=true]):is([open],[checked],:hover:active),
|
#PersonalToolbar .toolbarbutton-1:not([disabled=true]):is([open],[checked],:hover:active),
|
||||||
#tabbrowser-arrowscrollbox:not([scrolledtostart=true])::part(scrollbutton-up):hover:active,
|
|
||||||
#tabbrowser-arrowscrollbox:not([scrolledtoend=true])::part(scrollbutton-down):hover:active,
|
|
||||||
toolbarbutton.bookmark-item:hover:active:not(.subviewbutton, [disabled="true"]),
|
toolbarbutton.bookmark-item:hover:active:not(.subviewbutton, [disabled="true"]),
|
||||||
toolbarbutton.bookmark-item[open="true"],
|
toolbarbutton.bookmark-item[open="true"],
|
||||||
toolbar .toolbarbutton-1:not([disabled=true]):is([open],[checked],:hover:active) > .toolbarbutton-icon,
|
toolbar .toolbarbutton-1:not([disabled=true]):is([open],[checked],:hover:active) > .toolbarbutton-icon,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче