[Webkit-unassigned] [Bug 128896] New: TextAutosizer: avoid unnecessary calls to containerShouldBeAutosized.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 17 02:34:56 PST 2014


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

           Summary: TextAutosizer: avoid unnecessary calls to
                    containerShouldBeAutosized.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: lvidacs.u-szeged at partner.samsung.com


Blink merge candidate: https://codereview.chromium.org/134153006/ by timvolodine

This patch adds a simple check to ensure that the multiplier > 1 before calling containerShouldBeAutosized() inside processContainer().
If the multiplier is exactly 1 the return value of containerShouldBeAutosized does not matter. Due to the cascading structure of the algorithm quite a few unnecessary calls to containerShouldBeAutosized are avoided in this way, reducing the text autosizing times by up to 30% on some websites.

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