[Webkit-unassigned] [Bug 33840] Provide a way to get page number with layoutTestController

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 28 19:49:56 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=33840





--- Comment #12 from Shinichiro Hamaji <hamaji at chromium.org>  2010-01-28 19:49:56 PST ---
Thanks for the review!

> Why not use a FloatSize here?
>  83 void PrintContext::computePageRectsWithPageSize(float pageWidth, float
> pageHeight, float userScaleFactor)

Done.

> And what are the units?  Pixels?

I added InPixels suffix for all value names in headers.

> 85      float printedPagesHeight = 0.0;
>  102     float printedPagesHeight = 0;
> Is the compiler smart enough to amke that 0.0f?
> 
> Likewise here?
>  92     if (userScaleFactor <= 0) {
> 0.0f?
> (the compiler may be smart, I don't know).

Yes, it seems the compiler works for this case.

> Why?
> 2   * Copyright (C) 2005, 2006 Apple Computer, Inc.  All rights reserved.
>  2  * copyright (C) 2005, 2006 Apple Computer, Inc.  All rights reserved.

I'm not sure why this happened... Sorry, fixed.

> What do these defaults mean?
>  469     float pageWidth = 982;
>  470     float pageHeight = 1291;

We chatted in #webkit and decided to use 800x600 as the default value. I put a
FIXME here. I think we want to define this value in a header file (not sure,
but maybe LayoutTestContoller.h ?) and share this value between all ports. But,
I'd like to do this refactoring later as this change will touch many files.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list