In bug 241110 we had to use const_cast to take a strong reference on a SharedBuffer. The various SharedBuffer received from networking are const, but Image related classes take a non-const SharedBuffer reference. SharedBuffer is an immutable object, but passing the objects as const reference is the right thing to do.
<rdar://problem/94324781>
Pull request: https://github.com/WebKit/WebKit/pull/1350