Avoid containingBlock() calls when no writing mode flipping is needed
Created attachment 251983 [details] Patch
Created attachment 251984 [details] Patch
Fixed in r183636.