LayoutTests:
- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=10158
REGRESSION: Selection highlight is dark and opaque when solid-color images are used
Reviewed by Darin.
* fast/backgrounds/solid-color-context-restore-expected.checksum: Added.
* fast/backgrounds/solid-color-context-restore-expected.png: Added.
* fast/backgrounds/solid-color-context-restore-expected.txt: Added.
* fast/backgrounds/solid-color-context-restore.html: Added.
WebCore:
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10158
REGRESSION: Selection highlight is dark and opaque when solid-color images are used
Reviewed by Darin.
Pixel test: fast/backgrounds/solid-color-context-restore.html
* platform/mac/ImageMac.mm:
(WebCore::Image::draw): Added calls to preserve the graphics context
around the painting of a solid color image.
(WebCore::Image::drawTiled): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15733
268f45cc-cd09-0410-ab3c-
d52691b4dbfc