This simplifies the code a bit.
Created attachment 215423 [details] patch
Landed - https://github.com/WebKit/WebKit/commit/07f341ee42533dce30402155e482a79c0bf87827