Bug 945105 patch 1:  Revert the changes to RestyleManager::ComputeStyleChangeFor from bug 898333, patch 2, since they cause skipping (in addition to the desired skipping) of continuations that do need restyling, in the case of directly restyling an element where continuations have different styles.  r=heycam  approval-mozilla-beta=lsblakk

--HG--
extra : transplant_source : %FA%AD%E7%9C%91e%BC%18%D2c%B4B%B5%03%E96U%A4%5D%8A
Bug 945105 patch 2:  Convert RestyleManager::ComputeStyleChangeFor from while loops to for loops to make it easier to add continue statements to it.  r=heycam  approval-mozilla-beta=lsblakk

--HG--
extra : transplant_source : %0B%B8%7F%9B%1F%AE%0C%E3%86%C2%B0%BC%92.%D5%94k%3FN%F2
Bug 945105 patch 3:  Replace changes to ComputeStyleChangeFor with a check of GetPrevContinuationWithSameStyle to avoid the duplication in a way that still doesn't break direct restyling of an element whose continuations have different styles.  r=heycam  approval-mozilla-beta=lsblakk

--HG--
extra : transplant_source : %03%BD%BA%AB%BF%C2%EB%E2%90%B0%C0h%9Fg%2C%12%00iA%13
Bug 945105 patch 4:  Add reftest.  r=heycam  approval-mozilla-beta=test-only

I confirmed that the test fails as expected without the patch, and
passes with the patch.

--HG--
extra : transplant_source : %F2l%B9_ZV%EC%86%D9%E9%0F%FD%3B%7E%1D%C3%04%E4M%92