Bug 826093 (Part 1) - Add ClippedImage. r=joe
Bug 826093 (Part 2) - Create a static utility class for image operations. r=joe, sr=bz
Bug 826093 (Part 3) - Use ClippedImage instead of ExtractFrame for -moz-image-rect. r=bz
Bug 826093 (Part 4) - Use ClippedImage instead of ExtractFrame for border-image. r=bz
Bug 826093 (Part 5) - Remove imgIContainer::ExtractFrame. r=joe, sr=bz
Additional patch for Bug 767944 (Fix compilation on gcc 4.7.x), r=Ms2ger

--HG--
extra : rebase_source : be9d00ca80306dfe57ed917b588cfd30ec8eb8d0
Backed out changeset 93cbcd7f34b3 (bug 828508) on suspicion of making bug 807442 nearly perma-fail on debug builds on a CLOSED TREE.
Backed out changeset 74ca9737e076 (bug 829456)on suspicion of making bug 807442 nearly perma-fail on debug builds on a CLOSED TREE.