Changeset 58629 in webkit


Ignore:
Timestamp:
Apr 30, 2010 10:34:28 PM (14 years ago)
Author:
hamaji@chromium.org
Message:

2010-04-30 Shinichiro Hamaji <hamaji@chromium.org>

Reviewed by Darin Adler.

Add layoutTestController.setPrinting()
https://bugs.webkit.org/show_bug.cgi?id=37203

  • platform/mac/Skipped:
  • platform/mac/printing/media-queries-print-expected.txt:

2010-04-30 Shinichiro Hamaji <hamaji@chromium.org>

Reviewed by Darin Adler.

Add layoutTestController.setPrinting()
https://bugs.webkit.org/show_bug.cgi?id=37203

Use the renderer's width insteead of screen's width as the width of
a screen depends on machines.

  • rendering/RenderTreeAsText.cpp: (WebCore::externalRepresentation):
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r58627 r58629  
     12010-04-30  Shinichiro Hamaji  <hamaji@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Add layoutTestController.setPrinting()
     6        https://bugs.webkit.org/show_bug.cgi?id=37203
     7
     8        * platform/mac/Skipped:
     9        * platform/mac/printing/media-queries-print-expected.txt:
     10
    1112010-04-28  Joseph Pecoraro  <joepeck@webkit.org>
    212
  • trunk/LayoutTests/platform/mac/Skipped

    r58548 r58629  
    176176fast/css/font-face-woff.html
    177177
    178 # It seems this depends on the size of physical screen?
    179 printing/media-queries-print.html
    180 
    181178# EventSendingController does not send events on areas outside the WebView.
    182179scrollbars/scrollbar-click-does-not-blur-content.html
  • trunk/LayoutTests/platform/mac/printing/media-queries-print-expected.txt

    r58396 r58629  
    1 layer at (0,0) size 2400x585
    2   RenderView at (0,0) size 2400x585
    3 layer at (0,0) size 2400x585
    4   RenderBlock {HTML} at (0,0) size 2400x585
    5     RenderBody {BODY} at (8,8) size 2384x569
     1layer at (0,0) size 1000x585
     2  RenderView at (0,0) size 1000x585
     3layer at (0,0) size 1000x585
     4  RenderBlock {HTML} at (0,0) size 1000x585
     5    RenderBody {BODY} at (8,8) size 984x569
    66      RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#008000]
    7       RenderBlock (anonymous) at (0,100) size 2384x18
     7      RenderBlock (anonymous) at (0,100) size 984x18
    88        RenderInline {SPAN} at (0,0) size 533x18
    99          RenderText {#text} at (0,0) size 533x18
  • trunk/WebCore/ChangeLog

    r58628 r58629  
     12010-04-30  Shinichiro Hamaji  <hamaji@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Add layoutTestController.setPrinting()
     6        https://bugs.webkit.org/show_bug.cgi?id=37203
     7
     8        Use the renderer's width insteead of screen's width as the width of
     9        a screen depends on machines.
     10
     11        * rendering/RenderTreeAsText.cpp:
     12        (WebCore::externalRepresentation):
     13
    1142010-04-30  Joseph Pecoraro  <joepeck@webkit.org>
    215
  • trunk/WebCore/rendering/RenderTreeAsText.cpp

    r58389 r58629  
    3030#include "CharacterNames.h"
    3131#include "Document.h"
    32 #include "DOMWindow.h"
    3332#include "Frame.h"
    3433#include "FrameView.h"
     
    4645#include "RenderView.h"
    4746#include "RenderWidget.h"
    48 #include "Screen.h"
    4947#include "SelectionController.h"
    5048#include "TextStream.h"
     
    622620{
    623621    PrintContext printContext(frame);
    624     if (behavior & RenderAsTextPrintingMode)
    625         printContext.begin(frame->domWindow()->screen()->width());
     622    if (behavior & RenderAsTextPrintingMode) {
     623        if (!frame->contentRenderer())
     624            return String();
     625        printContext.begin(frame->contentRenderer()->width());
     626    }
    626627
    627628    frame->document()->updateLayout();
Note: See TracChangeset for help on using the changeset viewer.