fixup! Bug 1371130: Get restyle hints right in presence of XBL. r?heycam draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 19 Jun 2017 15:43:54 +0200
changeset 596588 3fe36f7d44eae4767c4757a1d9652521a6b5b262
parent 596587 eb7c3af44287861e53a32ab5cbec59f53b98fa26
child 596589 70e9a2c1a1b21e28ff813c5b2186140a75223c8a
push id64686
push userbmo:emilio+bugs@crisal.io
push dateMon, 19 Jun 2017 13:47:25 +0000
reviewersheycam
bugs1371130
milestone56.0a1
fixup! Bug 1371130: Get restyle hints right in presence of XBL. r?heycam
layout/style/ServoBindings.cpp
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -278,21 +278,16 @@ Gecko_ElementBindingAnonymousContent(Raw
   MOZ_ASSERT(aElement->HasFlag(NODE_MAY_BE_IN_BINDING_MNGR));
   nsBindingManager* manager = aElement->OwnerDoc()->BindingManager();
   if (nsXBLBinding* binding = manager->GetBindingWithContent(aElement)) {
     return binding->GetAnonymousContent();
   }
   return nullptr;
 }
 
-  nsBindingManager* manager = aElement->OwnerDoc()->BindingManager();
-  nsXBLBinding* binding = manager->GetBindingWithContent(aElement);
-  return binding && binding->GetAnonymousContent();
-}
-
 RawGeckoNodeBorrowed
 Gecko_GetNextStyleChild(StyleChildrenIteratorBorrowedMut aIterator)
 {
   MOZ_ASSERT(aIterator);
   return aIterator->GetNextChild();
 }
 
 EventStates::ServoType