[Webkit-unassigned] [Bug 54587] New: [Qt] Tiled backing store area is too big.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 16 14:13:09 PST 2011


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

           Summary: [Qt] Tiled backing store area is too big.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: Qt
          Severity: Normal
          Priority: P3
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ostapenko.viatcheslav at nokia.com


Tiled backing store area is too big.

It calculated like this:
keepRect.inflateX(visibleRect.width() * (m_keepAreaMultiplier.width() - 1.f));
keepRect.inflateY(visibleRect.height() * (m_keepAreaMultiplier.height() - 1.f));

and original intention was to get rect of size keepAreaMultiplier * visibleRect, but inflateX and inflateY methods defined like this:

void inflateX(float dx) {
    m_location.setX(m_location.x() - dx);
    m_size.setWidth(m_size.width() + dx + dx);
}
void inflateY(float dy) {
    m_location.setY(m_location.y() - dy);
    m_size.setHeight(m_size.height() + dy + dy);
}

so, they add delta to width/height 2 times, so in real area is calculated like 

width + width * (ratio - 1) * 2 = width * (2 * ratio - 1)

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