Bug 1300869 - don't allow whitespace wrapping in find toolbar modal highlighting boxes. r=jaws
authorMike de Boer <mdeboer@mozilla.com>
Tue, 13 Sep 2016 14:57:19 +0200
changeset 355266 8f7f5ce39b7d4e1dc2e12d9ac4f5fed945867a18
parent 355197 3b3e87b91108ced2173ae34357cfed8db7cfe6c0
child 355267 d9a19f976f1e30e01b240372099098e67c167603
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1300869
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1300869 - don't allow whitespace wrapping in find toolbar modal highlighting boxes. r=jaws MozReview-Commit-ID: BBGViJgsGOF
toolkit/modules/FinderHighlighter.jsm
--- a/toolkit/modules/FinderHighlighter.jsm
+++ b/toolkit/modules/FinderHighlighter.jsm
@@ -44,16 +44,17 @@ const kModalStyles = {
     ["color", "#000"],
     ["display", "-moz-box"],
     ["margin", "-2px 0 0 -2px !important"],
     ["padding", "2px !important"],
     ["pointer-events", "none"],
     ["transition-property", "opacity, transform, top, left"],
     ["transition-duration", "50ms"],
     ["transition-timing-function", "linear"],
+    ["white-space", "nowrap"],
     ["z-index", 2]
   ],
   outlineNodeDebug: [ ["z-index", 2147483647] ],
   outlineText: [
     ["margin", "0 !important"],
     ["padding", "0 !important"],
     ["vertical-align", "top !important"]
   ],
@@ -71,17 +72,18 @@ const kModalStyles = {
     ["left", 0]
   ],
   maskNodeBrightText: [ ["background", "#fff"] ],
   maskRect: [
     ["background", "#fff"],
     ["border-radius", "3px"],
     ["margin", "-1px 0 0 -1px !important"],
     ["padding", "0 1px 2px 1px !important"],
-    ["position", "absolute"]
+    ["position", "absolute"],
+    ["white-space", "nowrap"]
   ],
   maskRectBrightText: [ ["background", "#000"] ]
 };
 const kModalOutlineAnim = {
   "keyframes": [
     { transform: "scaleX(1) scaleY(1)" },
     { transform: "scaleX(1.5) scaleY(1.5)", offset: .5, easing: "ease-in" },
     { transform: "scaleX(1) scaleY(1)" }