diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /toolkit/actors/SelectChild.sys.mjs | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/actors/SelectChild.sys.mjs')
-rw-r--r-- | toolkit/actors/SelectChild.sys.mjs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/toolkit/actors/SelectChild.sys.mjs b/toolkit/actors/SelectChild.sys.mjs index a6d96d1b79..1bc80001ae 100644 --- a/toolkit/actors/SelectChild.sys.mjs +++ b/toolkit/actors/SelectChild.sys.mjs @@ -15,7 +15,7 @@ ChromeUtils.defineESModuleGetters(lazy, { const kStateActive = 0x00000001; // ElementState::ACTIVE const kStateHover = 0x00000004; // ElementState::HOVER -// Duplicated in SelectParent.jsm +// Duplicated in SelectParent.sys.mjs // Please keep these lists in sync. const SUPPORTED_OPTION_OPTGROUP_PROPERTIES = [ "direction", @@ -277,7 +277,7 @@ SelectContentHelper.prototype = { InspectorUtils.removeContentState(this.element, kStateHover); break; - case "Forms:MouseUp": + case "Forms:MouseUp": { let win = this.element.ownerGlobal; if (message.data.onAnchor) { this.dispatchMouseEvent(win, this.element, "mouseup"); @@ -287,6 +287,7 @@ SelectContentHelper.prototype = { this.dispatchMouseEvent(win, this.element, "click"); } break; + } case "Forms:SearchFocused": this._closeAfterBlur = false; @@ -346,6 +347,13 @@ function getComputedStyles(element) { function supportedStyles(cs, supportedProps) { let styles = {}; for (let property of supportedProps) { + if (property == "font-size") { + let usedSize = cs.usedFontSize; + if (usedSize >= 0.0) { + styles[property] = usedSize + "px"; + continue; + } + } styles[property] = cs.getPropertyValue(property); } return styles; |