Bug 1451256: Remove extends from toolbarpalleteitem. r=dao

Right now it uses extends="xul:button" so that the element it wraps doesn't get
mouse events. There's a way to do that with CSS, using pointer-events: none on
the child.

MozReview-Commit-ID: 29QZAoJPFt6

--HG--
extra : rebase_source : a23406b2c5bc9a6ca8d4a926b4867bc451cada8d
This commit is contained in:
Emilio Cobos Álvarez 2018-04-04 11:15:18 +02:00
parent b8ed325fb0
commit 2d7df71ab0
2 changed files with 6 additions and 1 deletions

View File

@ -169,7 +169,7 @@
</handlers> </handlers>
</binding> </binding>
<binding id="toolbarpaletteitem" extends="xul:button"> <binding id="toolbarpaletteitem">
<content> <content>
<xul:hbox class="toolbarpaletteitem-box" flex="1" xbl:inherits="type,place"> <xul:hbox class="toolbarpaletteitem-box" flex="1" xbl:inherits="type,place">
<children/> <children/>

View File

@ -321,6 +321,11 @@ toolbarpaletteitem[place="palette"] {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem-palette"); -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem-palette");
} }
.toolbarpaletteitem-box {
/* Prevent children from getting events */
pointer-events: none;
}
/********* menubar ***********/ /********* menubar ***********/
menubar { menubar {