2010-11-09 Yuzo Fujishima <yuzo@google.com>
authoryuzo@google.com <yuzo@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Nov 2010 12:21:21 +0000 (12:21 +0000)
committeryuzo@google.com <yuzo@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Nov 2010 12:21:21 +0000 (12:21 +0000)
commit788713cf0e4e2e086b56b96a4b047d7af177e7a7
tree0a1d9e7dc22b4f9c7160df1d6a1b6ccf22f7e601
parent3a0eea15beda91eb103d855eb35e6d6161581310
2010-11-09  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Fix for Bug 48984 - [Chromium] @media print crash due to paged media support
        https://bugs.webkit.org/show_bug.cgi?id=48984

        * printing/page-format-data-display-none-expected.txt: Added.
        * printing/page-format-data-display-none.html: Added.
2010-11-09  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Fix for Bug 48984 - [Chromium] @media print crash due to paged media support
        Page context has been inheriting from document element style that becomes null if display property is none.
        It should inherit from document style instead to properly handle direction property (and to avoid the null reference).
        https://bugs.webkit.org/show_bug.cgi?id=48984

        Test: printing/page-format-data-display-none.html

        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::styleForPage): Page context inherits from
        document style.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@71621 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/printing/page-format-data-display-none-expected.txt [new file with mode: 0644]
LayoutTests/printing/page-format-data-display-none.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/CSSStyleSelector.cpp