Skip to content
  • eric@webkit.org's avatar
    2010-03-18 Kenneth Rohde Christiansen <kenneth@webkit.org> · f6a6237c
    eric@webkit.org authored
            Reviewed by Darin Adler.
    
            Add a new test for testing whether the media type is restores
            properly after printing a page (changing media type to 'print').
    
            Add expected result and skip the test for platform that do not
            implement setMediaType().
    
            * fast/media/print-restores-previous-mediatype-expected.txt: Added.
            * fast/media/print-restores-previous-mediatype.html: Added.
            * platform/gtk/Skipped:
            * platform/mac/Skipped:
            * platform/win/Skipped:
    2010-03-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
    
            Reviewed by Darin Adler.
    
            Make setPrinting() with printing=false, restore the previous
            media type in use.
    
            Test: fast/media/print-restores-previous-mediatype.html
    
            * page/Frame.cpp:
            (WebCore::Frame::setPrinting):
            * page/FrameView.cpp:
            (WebCore::FrameView::adjustMediaTypeForPrinting):
            * page/FrameView.h:
    2010-03-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
    
            Reviewed by Darin Adler.
    
            Make it possible for the Qt DRT to set the media type from
            the LayoutTestController.
    
            * Api/qwebframe.cpp:
            (qt_drt_setMediaType):
    2010-03-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
    
            Reviewed by Darin Adler.
    
            Add a new method to the Qt LayoutTestController for
            changing media type and make the DRT support dry-run printing.
    
            * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
            (WebCore::DumpRenderTree::DumpRenderTree):
            (WebCore::DumpRenderTree::dryRunPrint):
            * DumpRenderTree/qt/DumpRenderTreeQt.h:
            * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
            (LayoutTestController::setMediaType):
            * DumpRenderTree/qt/LayoutTestControllerQt.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f6a6237c