Bug 607441 part 2. Mark the scoped sheet rule processor dirty when author styles are enabled or disabled. r=dbaron
authorBoris Zbarsky <bzbarsky@mit.edu>
Wed, 27 Mar 2013 22:47:26 -0400
changeset 126520 71cf55aee147ec0d781da69a3ea5a758efc2e905
parent 126519 423f679f1d443c48b2493dcb50e47a0fd31b92f9
child 126521 8ba09dac7d26a64866c3c416f648fe201d741b91
push id24485
push userryanvm@gmail.com
push dateThu, 28 Mar 2013 12:31:20 +0000
treeherdermozilla-central@293498096b28 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs607441
milestone22.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 607441 part 2. Mark the scoped sheet rule processor dirty when author styles are enabled or disabled. r=dbaron
layout/style/nsStyleSet.cpp
--- a/layout/style/nsStyleSet.cpp
+++ b/layout/style/nsStyleSet.cpp
@@ -508,16 +508,17 @@ nsStyleSet::GetAuthorStyleDisabled()
 
 nsresult
 nsStyleSet::SetAuthorStyleDisabled(bool aStyleDisabled)
 {
   if (aStyleDisabled == !mAuthorStyleDisabled) {
     mAuthorStyleDisabled = aStyleDisabled;
     BeginUpdate();
     mDirty |= 1 << eDocSheet |
+              1 << eScopedDocSheet |
               1 << eStyleAttrSheet;
     return EndUpdate();
   }
   return NS_OK;
 }
 
 // -------- Doc Sheets