зеркало из https://github.com/mozilla/pjs.git
Bug 327943, remove grippy frame, r=neil,sr=roc
This commit is contained in:
Родитель
4dcff1e570
Коммит
1669208216
|
@ -330,9 +330,6 @@ NS_NewGroupBoxFrame (nsIPresShell* aPresShell);
|
|||
nsIFrame*
|
||||
NS_NewButtonBoxFrame (nsIPresShell* aPresShell);
|
||||
|
||||
nsIFrame*
|
||||
NS_NewGrippyFrame (nsIPresShell* aPresShell);
|
||||
|
||||
nsIFrame*
|
||||
NS_NewSplitterFrame (nsIPresShell* aPresShell);
|
||||
|
||||
|
@ -3458,7 +3455,6 @@ IsSpecialContent(nsIContent* aContent,
|
|||
aTag == nsXULAtoms::scrollbarbutton ||
|
||||
#ifdef MOZ_XUL
|
||||
aTag == nsXULAtoms::splitter ||
|
||||
aTag == nsXULAtoms::grippy ||
|
||||
#endif
|
||||
PR_FALSE;
|
||||
|
||||
|
@ -6361,13 +6357,6 @@ nsCSSFrameConstructor::ConstructXULFrame(nsFrameConstructorState& aState,
|
|||
}
|
||||
// End of SPLITTER CONSTRUCTION logic
|
||||
|
||||
// GRIPPY CONSTRUCTION
|
||||
else if (aTag == nsXULAtoms::grippy) {
|
||||
isReplaced = PR_TRUE;
|
||||
newFrame = NS_NewGrippyFrame(mPresShell);
|
||||
}
|
||||
// End of GRIPPY CONSTRUCTION logic
|
||||
|
||||
else {
|
||||
triedFrame = PR_FALSE;
|
||||
}
|
||||
|
|
|
@ -115,7 +115,6 @@ CPPSRCS += \
|
|||
nsGroupBoxFrame.cpp \
|
||||
nsFrameNavigator.cpp \
|
||||
nsSplitterFrame.cpp \
|
||||
nsGrippyFrame.cpp \
|
||||
nsDeckFrame.cpp \
|
||||
nsProgressMeterFrame.cpp \
|
||||
nsMenuPopupFrame.cpp \
|
||||
|
|
|
@ -10,10 +10,24 @@
|
|||
</resources>
|
||||
</binding>
|
||||
|
||||
<binding id="grippy">
|
||||
<binding id="grippy" extends="xul:button">
|
||||
<resources>
|
||||
<stylesheet src="chrome://global/skin/splitter.css"/>
|
||||
</resources>
|
||||
<handlers>
|
||||
<handler event="command">
|
||||
<![CDATA[
|
||||
var splitter = this.parentNode;
|
||||
if (splitter) {
|
||||
var state = splitter.getAttribute("state");
|
||||
if (state == "collapsed")
|
||||
splitter.setAttribute("state", "open");
|
||||
else
|
||||
splitter.setAttribute("state", "collapsed");
|
||||
}
|
||||
]]>
|
||||
</handler>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
</bindings>
|
||||
|
|
|
@ -10,10 +10,24 @@
|
|||
</resources>
|
||||
</binding>
|
||||
|
||||
<binding id="grippy">
|
||||
<binding id="grippy" extends="xul:button">
|
||||
<resources>
|
||||
<stylesheet src="chrome://global/skin/splitter.css"/>
|
||||
</resources>
|
||||
<handlers>
|
||||
<handler event="command">
|
||||
<![CDATA[
|
||||
var splitter = this.parentNode;
|
||||
if (splitter) {
|
||||
var state = splitter.getAttribute("state");
|
||||
if (state == "collapsed")
|
||||
splitter.setAttribute("state", "open");
|
||||
else
|
||||
splitter.setAttribute("state", "collapsed");
|
||||
}
|
||||
]]>
|
||||
</handler>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
</bindings>
|
||||
|
|
Загрузка…
Ссылка в новой задаче