Bug 1491688 - Introduce ::-moz-tree-row(blur) selector. r=emilio
authorTim Nguyen <ntim.bugs@gmail.com>
Wed, 03 Oct 2018 08:55:43 +0200
changeset 495109 82a9e5de506a02333fcbf95ebf62ad73b5d130b9
parent 495108 f7fd7d2cbc2ef4737be60b0ec5d432ba4fccaee2
child 495110 0438e11c91251842a22125cbab18f44ef265fa9b
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1491688
milestone64.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 1491688 - Introduce ::-moz-tree-row(blur) selector. r=emilio
layout/xul/tree/nsTreeBodyFrame.cpp
xpcom/ds/StaticAtoms.py
--- a/layout/xul/tree/nsTreeBodyFrame.cpp
+++ b/layout/xul/tree/nsTreeBodyFrame.cpp
@@ -1843,16 +1843,18 @@ void
 nsTreeBodyFrame::PrefillPropertyArray(int32_t aRowIndex, nsTreeColumn* aCol)
 {
   MOZ_ASSERT(!aCol || aCol->GetFrame(), "invalid column passed");
   mScratchArray.Clear();
 
   // focus
   if (mFocused)
     mScratchArray.AppendElement(nsGkAtoms::focus);
+  else
+    mScratchArray.AppendElement(nsGkAtoms::blur);
 
   // sort
   bool sorted = false;
   mView->IsSorted(&sorted);
   if (sorted)
     mScratchArray.AppendElement(nsGkAtoms::sorted);
 
   // drag session
--- a/xpcom/ds/StaticAtoms.py
+++ b/xpcom/ds/StaticAtoms.py
@@ -160,16 +160,17 @@ STATIC_ATOMS = [
     Atom("bgcolor", "bgcolor"),
     Atom("bgsound", "bgsound"),
     Atom("big", "big"),
     Atom("binding", "binding"),
     Atom("bindings", "bindings"),
     Atom("bindToUntrustedContent", "bindToUntrustedContent"),
     Atom("block", "block"),
     Atom("blockquote", "blockquote"),
+    Atom("blur", "blur"),
     Atom("body", "body"),
     Atom("boolean", "boolean"),
     Atom("border", "border"),
     Atom("bordercolor", "bordercolor"),
     Atom("both", "both"),
     Atom("bottom", "bottom"),
     Atom("bottomend", "bottomend"),
     Atom("bottomstart", "bottomstart"),