2010-07-15  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        Printing test results differ between machines, we should use ImageDiff instead
        https://bugs.webkit.org/show_bug.cgi?id=20011

        Added printing/setPrinting.html to check there is the page boundary.

        Enabled printing/composite-layer-printing.html with setPrinting.

        The result of printing/media-queries-print.html shrunk because of
        PrintingMinimumShrinkFactor in PrintContext::begin().

        * platform/mac/Skipped:
        * platform/mac/printing/compositing-layer-printing-expected.checksum: Added.
        * platform/mac/printing/compositing-layer-printing-expected.png: Added.
        * platform/mac/printing/compositing-layer-printing-expected.txt: Added.
        * platform/mac/printing/media-queries-print-expected.checksum:
        * platform/mac/printing/media-queries-print-expected.png:
        * platform/mac/printing/setPrinting-expected.checksum: Added.
        * platform/mac/printing/setPrinting-expected.png: Added.
        * platform/mac/printing/setPrinting-expected.txt: Added.
        * printing/compositing-layer-printing.html:
        * printing/setPrinting.html: Added.
2010-07-15  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        Printing test results differ between machines, we should use ImageDiff instead
        https://bugs.webkit.org/show_bug.cgi?id=20011

        Added spoolAllPagesWithBoundaries into PrintContext.

        Test: printing/setPrinting.html

        * WebCore.base.exp:
        * page/PrintContext.cpp:
        (WebCore::PrintContext::spoolAllPagesWithBoundaries):
        * page/PrintContext.h:
2010-07-15  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        Printing test results differ between machines, we should use ImageDiff instead
        https://bugs.webkit.org/show_bug.cgi?id=20011

        * Misc/WebCoreStatistics.h:
        * Misc/WebCoreStatistics.mm:
        (-[WebFrame printToCGContext:cgContext:pageWidthInPixels:]):
2010-07-15  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        Printing test results differ between machines, we should use ImageDiff instead
        https://bugs.webkit.org/show_bug.cgi?id=20011

        * DumpRenderTree/PixelDumpSupport.cpp:
        (dumpWebViewAsPixelsAndCompareWithExpected):
        * DumpRenderTree/PixelDumpSupport.h:
        * DumpRenderTree/mac/PixelDumpSupportMac.mm:
        (createBitmapContext): This function was added to share bitmap context creation code.
        (createBitmapContextFromWebView):
        (createPagedBitmapContext):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63521 268f45cc-cd09-0410-ab3c-d52691b4dbfc
26 files changed