Bug 839958 - Prevent infinite invalidation loops when using SVG text inside a mask or pattern. r=jwatt