[Webkit-unassigned] [Bug 51566] New: TextMetrics::width is an integer, but the member is a float

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 23 15:20:43 PST 2010


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

           Summary: TextMetrics::width is an integer, but the member is a
                    float
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: evan at chromium.org


In WebCore/html/TextMetrics.idl it says:
    readonly attribute float width;
in .../TextMetrics.h:
    float m_width;

But there's a getter with this confusing comment:

    // FIXME: Is coercing to an integer value intentional? If so, there should be a static_cast<unsigned>() here.
    unsigned width() const { return m_width; }

>From my greps around, it appears this getter is unused, but I unsure how the idl interacts with this (perhaps the idl generates code that calls width().)

-- 
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