зеркало из https://github.com/mozilla/gecko-dev.git
Bug 674578 - Support resizer[dir="bottomstart"].
r=enn
This commit is contained in:
Родитель
763aa4b97e
Коммит
76e359171e
|
@ -154,6 +154,7 @@ GK_ATOM(bordercolor, "bordercolor")
|
|||
GK_ATOM(both, "both")
|
||||
GK_ATOM(bottom, "bottom")
|
||||
GK_ATOM(bottomend, "bottomend")
|
||||
GK_ATOM(bottomstart, "bottomstart")
|
||||
GK_ATOM(bottomleft, "bottomleft")
|
||||
GK_ATOM(bottommargin, "bottommargin")
|
||||
GK_ATOM(bottompadding, "bottompadding")
|
||||
|
|
|
@ -51,12 +51,20 @@ fails-if(Android) != 492155-4.html about:blank
|
|||
skip-if(!cocoaWidget) == menulist-mirrored-when-rtl.xul menulist-mirrored-when-rtl-ref.xul
|
||||
skip-if(!cocoaWidget) == searchfield-mirrored-when-rtl.xul searchfield-mirrored-when-rtl-ref.xul
|
||||
skip-if(!cocoaWidget) == select-mirrored-when-rtl.html select-mirrored-when-rtl-ref.html
|
||||
|
||||
!= resizer-bottomend.xul blank-window.xul
|
||||
random-if(d2d) == resizer-bottomend.xul resizer-bottomright.xul # bug 581086
|
||||
!= resizer-bottomend.xul resizer-bottomend-rtl.xul
|
||||
skip-if(gtk2Widget) != resizer-bottomend-rtl.xul blank-window.xul
|
||||
skip-if(gtk2Widget) random-if(d2d) == resizer-bottomend-rtl.xul resizer-bottomend-flipped.xul # bug 581086
|
||||
|
||||
!= resizer-bottomstart.xul blank-window.xul
|
||||
random-if(d2d) == resizer-bottomstart.xul resizer-bottomleft.xul
|
||||
random-if(d2d) == resizer-bottomstart.xul resizer-left.xul
|
||||
!= resizer-bottomstart.xul resizer-bottomstart-rtl.xul
|
||||
skip-if(gtk2Widget) != resizer-bottomstart-rtl.xul blank-window.xul
|
||||
skip-if(gtk2Widget) random-if(d2d) == resizer-bottomstart-rtl.xul resizer-bottomend.xul
|
||||
|
||||
# Windows-only, depends on native scrollbar metrics
|
||||
skip-if(!winWidget) == scroll-thumb-minimum-size-notheme.html scroll-thumb-minimum-size-notheme-ref.html
|
||||
# skip-if(!winWidget) == scroll-thumb-minimum-size-theme.html scroll-thumb-minimum-size-theme-ref.html # Bug 512206
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
||||
|
||||
<window title="Resizer"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<hbox>
|
||||
<resizer dir="bottomleft"/>
|
||||
<spacer flex="1"/>
|
||||
</hbox>
|
||||
</window>
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
||||
|
||||
<window title="Resizer"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<hbox>
|
||||
<resizer dir="bottomstart" style="direction: rtl"/>
|
||||
<spacer flex="1"/>
|
||||
</hbox>
|
||||
</window>
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
||||
|
||||
<window title="Resizer"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<hbox>
|
||||
<resizer dir="bottomstart"/>
|
||||
<spacer flex="1"/>
|
||||
</hbox>
|
||||
</window>
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
||||
|
||||
<window title="Resizer"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<hbox>
|
||||
<resizer dir="left"/>
|
||||
<spacer flex="1"/>
|
||||
</hbox>
|
||||
</window>
|
|
@ -330,7 +330,7 @@ nsResizerFrame::HandleEvent(nsPresContext* aPresContext,
|
|||
|
||||
if (doDefault && weakFrame.IsAlive())
|
||||
return nsTitleBarFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
|
||||
else
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -427,14 +427,14 @@ nsResizerFrame::GetDirection()
|
|||
{&nsGkAtoms::topleft, &nsGkAtoms::top, &nsGkAtoms::topright,
|
||||
&nsGkAtoms::left, &nsGkAtoms::right,
|
||||
&nsGkAtoms::bottomleft, &nsGkAtoms::bottom, &nsGkAtoms::bottomright,
|
||||
&nsGkAtoms::bottomend,
|
||||
&nsGkAtoms::bottomstart, &nsGkAtoms::bottomend,
|
||||
nsnull};
|
||||
|
||||
static const Direction directions[] =
|
||||
{{-1, -1}, {0, -1}, {1, -1},
|
||||
{-1, 0}, {1, 0},
|
||||
{-1, 1}, {0, 1}, {1, 1},
|
||||
{1, 1}
|
||||
{-1, 1}, {1, 1}
|
||||
};
|
||||
|
||||
if (!GetContent())
|
||||
|
|
|
@ -17,7 +17,14 @@ resizer[dir="bottomend"]:-moz-locale-dir(rtl) {
|
|||
background: url("chrome://global/skin/icons/resizer-rtl.png") no-repeat;
|
||||
}
|
||||
|
||||
resizer[dir="left"],
|
||||
resizer[dir="bottomleft"],
|
||||
resizer[dir="bottomstart"] {
|
||||
-moz-transform: scaleX(-1);
|
||||
}
|
||||
|
||||
resizer[dir="bottomleft"],
|
||||
resizer[dir="bottomstart"]:not([rtl="true"]):not(:-moz-locale-dir(rtl)),
|
||||
resizer[dir="bottomend"][rtl="true"] {
|
||||
cursor: sw-resize;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,14 @@ resizer[dir="bottomend"]:-moz-locale-dir(rtl) {
|
|||
background: url("chrome://global/skin/icons/resizer-rtl.png") no-repeat;
|
||||
}
|
||||
|
||||
resizer[dir="left"],
|
||||
resizer[dir="bottomleft"],
|
||||
resizer[dir="bottomstart"] {
|
||||
-moz-transform: scaleX(-1);
|
||||
}
|
||||
|
||||
resizer[dir="bottomleft"],
|
||||
resizer[dir="bottomstart"]:not([rtl="true"]):not(:-moz-locale-dir(rtl)),
|
||||
resizer[dir="bottomend"][rtl="true"] {
|
||||
cursor: sw-resize;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче