Bug 993390 - Don't do a sync reflow if we just cleared the element
Merge pull request #18077 from comoyo/bug993390

Bug 993390 - Don't do a sync reflow if we just cleared the element. r=timdream