No need to null-check aRuleWalker. (Bug 557154) r=bzbarsky
authorL. David Baron <dbaron@dbaron.org>
Tue, 06 Apr 2010 15:32:51 -0700
changeset 40518 be88ae1fc67538477799c4ef347729aa2951f967
parent 40517 6c32102f5594e1b4ff4b874c45615c67eb59baef
child 40519 1adc864a08ce2d6ffc7e9369f7912ea58d071bac
push id12643
push userdbaron@mozilla.com
push dateTue, 06 Apr 2010 22:33:39 +0000
treeherdermozilla-central@1adc864a08ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs557154
milestone1.9.3a4pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
No need to null-check aRuleWalker. (Bug 557154) r=bzbarsky
content/base/src/nsAttrAndChildArray.cpp
--- a/content/base/src/nsAttrAndChildArray.cpp
+++ b/content/base/src/nsAttrAndChildArray.cpp
@@ -595,17 +595,17 @@ nsAttrAndChildArray::SetMappedAttrStyleS
   mapped->SetStyleSheet(aSheet);
 
   return MakeMappedUnique(mapped);
 }
 
 void
 nsAttrAndChildArray::WalkMappedAttributeStyleRules(nsRuleWalker* aRuleWalker)
 {
-  if (mImpl && mImpl->mMappedAttrs && aRuleWalker) {
+  if (mImpl && mImpl->mMappedAttrs) {
     aRuleWalker->Forward(mImpl->mMappedAttrs);
   }
 }
 
 void
 nsAttrAndChildArray::Compact()
 {
   if (!mImpl) {