Bug 1590376 part 1 - Add a XULResizerElement and move all nsResizerFrame's event handling code there. r=ntim,smaug
I'm mostly moving the code verbatim, but I excluded a few bits that handled resizers inside menu popup frames, e.g. https://searchfox.org/mozilla-central/rev/7bb1cc6abf6634b2a20f71935e1e519e73402b63/layout/xul/nsResizerFrame.cpp#165-170 I don't think we need that functionallity anymore and it simplifies the code to exclude it. Differential Revision: https://phabricator.services.mozilla.com/D105926
This commit is contained in:
@@ -244,8 +244,6 @@ nsIFrame* NS_NewTreeBodyFrame(PresShell* aPresShell, ComputedStyle* aStyle);
|
||||
|
||||
nsIFrame* NS_NewTitleBarFrame(PresShell* aPresShell, ComputedStyle* aStyle);
|
||||
|
||||
nsIFrame* NS_NewResizerFrame(PresShell* aPresShell, ComputedStyle* aStyle);
|
||||
|
||||
nsHTMLScrollFrame* NS_NewHTMLScrollFrame(PresShell* aPresShell,
|
||||
ComputedStyle* aStyle, bool aIsRoot);
|
||||
|
||||
@@ -4127,7 +4125,6 @@ nsCSSFrameConstructor::FindXULTagData(const Element& aElement,
|
||||
SCROLLABLE_XUL_CREATE(checkbox, NS_NewButtonBoxFrame),
|
||||
SCROLLABLE_XUL_CREATE(radio, NS_NewButtonBoxFrame),
|
||||
SCROLLABLE_XUL_CREATE(titlebar, NS_NewTitleBarFrame),
|
||||
SCROLLABLE_XUL_CREATE(resizer, NS_NewResizerFrame),
|
||||
SCROLLABLE_XUL_CREATE(toolbarpaletteitem, NS_NewBoxFrame),
|
||||
SCROLLABLE_XUL_CREATE(treecolpicker, NS_NewButtonBoxFrame),
|
||||
SIMPLE_XUL_CREATE(image, NS_NewImageBoxFrame),
|
||||
|
||||
Reference in New Issue
Block a user