Bug 1280746 - Remove Gecko_HashAtom in favor of stylo poking at mHash directly. r=dholbert
authorCameron McCormack <cam@mcc.id.au>
Wed, 22 Jun 2016 09:36:43 +1000
changeset 302253 2a2a78a056ed37c7113020c41c07abd1fc382b05
parent 302252 ed58e94694a84ed9b8a88fdf8e07a51aa96d39ff
child 302254 452bee781482d95bff6bb6c3bee985f92d28ad52
push id78665
push usercmccormack@mozilla.com
push dateTue, 21 Jun 2016 23:37:10 +0000
treeherdermozilla-inbound@2a2a78a056ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1280746
milestone50.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 1280746 - Remove Gecko_HashAtom in favor of stylo poking at mHash directly. r=dholbert
layout/style/ServoBindings.cpp
layout/style/ServoBindings.h
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -242,22 +242,16 @@ Gecko_AddRefAtom(nsIAtom* aAtom)
 }
 
 void
 Gecko_ReleaseAtom(nsIAtom* aAtom)
 {
   NS_RELEASE(aAtom);
 }
 
-uint32_t
-Gecko_HashAtom(nsIAtom* aAtom)
-{
-  return aAtom->hash();
-}
-
 const uint16_t*
 Gecko_GetAtomAsUTF16(nsIAtom* aAtom, uint32_t* aLength)
 {
   static_assert(sizeof(char16_t) == sizeof(uint16_t), "Servo doesn't know what a char16_t is");
   MOZ_ASSERT(aAtom);
   *aLength = aAtom->GetLength();
 
   // We need to manually cast from char16ptr_t to const char16_t* to handle the
--- a/layout/style/ServoBindings.h
+++ b/layout/style/ServoBindings.h
@@ -118,17 +118,16 @@ uint32_t Gecko_ClassOrClassList(RawGecko
 ServoNodeData* Gecko_GetNodeData(RawGeckoNode* node);
 void Gecko_SetNodeData(RawGeckoNode* node, ServoNodeData* data);
 void Servo_DropNodeData(ServoNodeData* data);
 
 // Atoms.
 nsIAtom* Gecko_Atomize(const char* aString, uint32_t aLength);
 void Gecko_AddRefAtom(nsIAtom* aAtom);
 void Gecko_ReleaseAtom(nsIAtom* aAtom);
-uint32_t Gecko_HashAtom(nsIAtom* aAtom);
 const uint16_t* Gecko_GetAtomAsUTF16(nsIAtom* aAtom, uint32_t* aLength);
 bool Gecko_AtomEqualsUTF8(nsIAtom* aAtom, const char* aString, uint32_t aLength);
 bool Gecko_AtomEqualsUTF8IgnoreCase(nsIAtom* aAtom, const char* aString, uint32_t aLength);
 
 // Font style
 void Gecko_FontFamilyList_Clear(FontFamilyList* aList);
 void Gecko_FontFamilyList_AppendNamed(FontFamilyList* aList, nsIAtom* aName);
 void Gecko_FontFamilyList_AppendGeneric(FontFamilyList* list, FontFamilyType familyType);