Bug 108446

Summary: [chromium] Rework page scale factor limits initialization
Product: WebKit Reporter: Alexandre Elias <aelias>
Component: New BugsAssignee: Alexandre Elias <aelias>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, aelias, jamesr, klobag
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 107922    
Bug Blocks:    
Attachments:
Description Flags
Patch jamesr: review+

Description Alexandre Elias 2013-01-31 02:26:33 PST
[chromium] Rework page scale factor limits initialization
Comment 1 Alexandre Elias 2013-01-31 02:38:21 PST
Created attachment 185727 [details]
Patch
Comment 2 Adam Barth 2013-01-31 10:27:28 PST
Comment on attachment 185727 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=185727&action=review

> Source/WebKit/chromium/src/WebViewImpl.cpp:3804
> +        if (view && view->needsLayout())
> +            view->layout();

Why doesn't this cause an infinite loop?
Comment 3 Alexandre Elias 2013-01-31 10:36:01 PST
Page scale factor limits are supposed to converge and it shouldn't set needsLayout() repeatedly.  What I expect to cause a layout right now is fixed-position element positioning, and that doesn't affect the inputs of computePageScaleFactorLimits.  If there's a bug and it doesn't converge, that would cause problems anyway and it's probably better to catch that issue via crash report than via reports of glitchniness or of very slow renderer due to repeated layout.
Comment 4 Alexandre Elias 2013-01-31 14:03:57 PST
Committed r141483: <http://trac.webkit.org/changeset/141483>