Bug 1438193 - turn Accessible::FirstChild & LastChild into const functions, r=surkov
authorTokio Kajitsuka <kajitsuka-tokio@g.ecc.u-tokyo.ac.jp>
Fri, 04 May 2018 22:06:49 +0900
changeset 473123 46c5ffbe6cbfabc355649597a44c63ee8d62873d
parent 473122 71c0102f7c8a3c13c3d28f94fc3042bc17ff3ae1
child 473124 e568ee5e7499966c5f0bc4bf57059dbcad2da715
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs1438193
milestone61.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 1438193 - turn Accessible::FirstChild & LastChild into const functions, r=surkov
accessible/generic/Accessible.h
--- a/accessible/generic/Accessible.h
+++ b/accessible/generic/Accessible.h
@@ -439,19 +439,19 @@ public:
 
   /**
    * Return first/last/next/previous sibling of the accessible.
    */
   inline Accessible* NextSibling() const
     {  return GetSiblingAtOffset(1); }
   inline Accessible* PrevSibling() const
     { return GetSiblingAtOffset(-1); }
-  inline Accessible* FirstChild()
+  inline Accessible* FirstChild() const
     { return GetChildAt(0); }
-  inline Accessible* LastChild()
+  inline Accessible* LastChild() const
   {
     uint32_t childCount = ChildCount();
     return childCount != 0 ? GetChildAt(childCount - 1) : nullptr;
   }
 
   /**
    * Return embedded accessible children count.
    */