Fix Bug 22161: Assertion failure in RenderThemeWin::systemColor when loading microsof...
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Nov 2008 22:12:57 +0000 (22:12 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Nov 2008 22:12:57 +0000 (22:12 +0000)
commit26a448deef863de269c9bed3f1050a6763d2acfb
treee4ff608f45523a7f602a99d15335abb3e84cfe59
parent9e5215153daedbb76d51bd0da0d049228e0354fc
Fix Bug 22161: Assertion failure in RenderThemeWin::systemColor when loading microsoftpdc.com

WebCore:

        Fix Bug 22161: Assertion failure in RenderThemeWin::systemColor when
        loading microsoftpdc.com

        <https://bugs.webkit.org/show_bug.cgi?id=22161>

        Reviewed by Dan Bernstein.

        Test: fast/css/outline-invert-assertion.html

        * rendering/RenderThemeWin.cpp:
        (WebCore::RenderThemeWin::systemColor): If we can't determine a good
        Win32 system color to use, defer to RenderTheme instead of asserting.
        This matches what RenderThemeMac does.

LayoutTests:

        Test for Bug 22161: Assertion failure in RenderThemeWin::systemColor
        when loading microsoftpdc.com

        <https://bugs.webkit.org/show_bug.cgi?id=22161>

        Note that this test would only fail if DumpRenderTree used
        RenderThemeWin, which it doesn't. I did test that locally, though.

        Reviewed by Dan Bernstein.

        * fast/css/outline-invert-assertion-expected.txt: Added.
        * fast/css/outline-invert-assertion.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@38274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/outline-invert-assertion-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/outline-invert-assertion.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderThemeWin.cpp